From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,939a759106e22823 X-Google-Attributes: gidfee84,public From: simon@locus.com (Simon Rosenthal) Subject: Re: Invoking site-specific programs at reboot Date: 1995/07/03 Message-ID: <3t904n$hr1@lccma.bos.locus.com>#1/1 X-Deja-AN: 105619474 references: <3t31ma$1ful@ctsc.hkbc.hk> <3t6es8$mfq@vertex.tor.hookup.net> organization: Locus Computing Corporation reply-to: simon@locus.com newsgroups: comp.unix.osf.osf1 Murray S. Kucherawy (mskucher@vertex.tor.hookup.net) wrote: : In article <3t31ma$1ful@ctsc.hkbc.hk>, : Wong Pui Ming wrote: : >The BSD way of doing it is so simple, i.e. put local stuff in file : >/etc/rc.local so they are invoked at system startup ... ... : Here's what I do: : (0) DO NOT touch /etc/inittab. : (1) Copy one of the scripts in /sbin/init.d to another file in the same : directory named after what it is you want to boot (e.g. inn). : (2) Modify the file you just created to startup/shutdown/restart/whatever : this new service, as appropriate. : (3) Look in /sbin/init.d/rc3.d; there are a ton of scripts there named : "Sxxyyy" where "xx" is a number and "yyy" is a service name. These : are actually symbolic links pointing to files in /sbin/init.d. : Pick a number that's not in use, and make a symlink to the service : script you created in /sbin/init.d. For example, let's say you want : to make INN start up at boot, and you created /sbin/init.d/inn, and : the number 41 is available; do: : cd /sbin/rc3.d : ln -s ../init.d/inn S41inn Just a warning... The scripts execute in order ; i.e. for f in /sbin/rc3.d/S* do