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: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy) Subject: Re: Invoking site-specific programs at reboot Date: 1995/07/02 Message-ID: <3t6es8$mfq@vertex.tor.hookup.net>#1/1 X-Deja-AN: 105521149 references: <3t31ma$1ful@ctsc.hkbc.hk> organization: HookUp Communication Corporation, Oakville, Ontario, CANADA nntp-posting-user: mskucher newsgroups: comp.unix.osf.osf1 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 >Now I am new to this OSF/1 way of doing such things, which not only >use the /etc/inittab , but complicate things further by having the >rc.n (n is run level) scripts and all those files under /sbin/rcn.d >(and these files are further links to other directories) >So, can someone recommend the best/neat way for me to start my >local scripts/programs when booting multi-user (Should I change the inittab, >or the rc.n scripts or put files under the rcn.d directories or a >combination of all these ways ? ) 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 You're all set. You can now do "/sbin/init.d/inn start" to start INN or "/sbin/init.d/inn stop" to stop INN. Also, inittab runs each file in /sbin/rc3.d with the "start" parameter at boot time. -- Murray S. Kucherawy ========================================================== Software Manager HookUp Communication Corporation - Ontario, CANADA E-mail: mskucher@hookup.net NIC Handle "MSK" (905) 847-8000 -- We are Intel of Borg. Division is futile. You will be approximated. --