# startup script

**URL:** https://forums.suse.com/t/startup-script/24679
**Category:** SLES Configure-Administer
**Created:** [October 29, 2013, 12:41pm UTC](https://forums.suse.com/t/startup-script/24679 "2013-10-29T12:41:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hussainwadiwalla](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@hussainwadiwalla](https://forums.suse.com/u/hussainwadiwalla)
#### Post date: [October 29, 2013, 12:41pm UTC](https://forums.suse.com/t/startup-script/24679/1 "2013-10-29T12:41:48Z")

</div>

hi all,

I have a shell script, pretty simple, just one line command to start a application deamon. What is the best way to ensure this runs when the computer is booted.

Thanks.

---

<div class="post-metadata">

### Author: ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)
#### Post date: [October 29, 2013, 12:54pm UTC](https://forums.suse.com/t/startup-script/24679/2 "2013-10-29T12:54:21Z")

</div>

Hi hussainwadiwalla,

> just one line command to start a application deamon. What is the best way to ensure this runs when the computer is booted.

The _best_ way is to turn it into a LSB startup script. That way, you can use all run control features and have it integrated into your system, including dependencies to other services. See “/etc/init.d/skeleton”.

The lazy way to just have that single line executed after the run-level has been reached, is to add it to “/etc/init.d/after.local”. This may be dependant on the OS version, I assumed SLES11SP3.

Regards,  
Jens

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [October 29, 2013, 1:00pm UTC](https://forums.suse.com/t/startup-script/24679/3 "2013-10-29T13:00:07Z")

</div>

> [@](#):
>
> On Tue 29 Oct 2013 10:44:02 AM CDT, hussainwadiwalla wrote:
> 
> hi all,
> 
> I have a shell script, pretty simple, just one line command to start a  
> application deamon. What is the best way to ensure this runs when the  
> computer is booted.
> 
> Thanks.

Hi  
If your not concerned where is starts in the boot process, the edit/add  
to /etc/init.d/boot.local. Else if there are particular services to be  
up, or run before, then copy the /etc/init.d/skeleton to a suitable  
name in /etc/init.d and edit as required.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
SLED 11 SP3 (x86\_64) GNOME 2.28.0 Kernel 3.0.93-0.8-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
