• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

startup scripts

I have placed my script in /sbin/init.d/ directory
but It doesn't start when I reboot system.
Maybe I have to register it somewhere?
Thanks
0
kako
Asked:
kako
  • 3
1 Solution
 
biraCommented:
Hi

  You must edit /etc/inittab and insert a line that
will call this script whenever the system reboot.
0
 
biraCommented:

 Dont forget to include this line as "once" , in order to
 run the script only once when system reboots.

  See man inittab
0
 
ahoffmannCommented:
bira, this is not the usual way to start scripts at boottime.

You need a symlink from /etc/rc2.d (for example) to the script in /sbin/init.d.
PLease refer to /sbin/init.d/README (or sometimes /sbin/init.d/skeleton) for details.

kako, which UNIX?
0
 
biraCommented:

 For me it works well.  may OS is AIX


0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now