Restarting a process after a shutdown

Bob Daniel rad at genco.uucp
Thu Aug 30 04:06:13 AEST 1990


In article <5759 at ethz.UUCP> tilo at tilo@nmr.lpc.ethz.ch (Tilo Levante) writes:
>
>Is there a way to save the status of a process and restart it
>after the shutdown?
>

The following is for SysV 3.2 UNIX:
To start processes at startup, you need to make a startup script in the
/etc/rc2.d directory.  The filename must start with an S and be followed
with a number which indicates the order that it will be executed.  Look at 
other files in that directory and you'll get the idea.

Refer to 'rc2' in your system manual for more info.  

BTW, to properly stop system services at shutdown script, you want to 
write a shutdown script in the /etc/rc0.d directory.  The filename must
start with a K and be followed by a number.

Also, to initiate an autostartup after shutdown, shutdown your system
using the -i6 option.

# shutdown -y -g0 -i6

Will shutdown your system with zero grace period and reboot.



More information about the Comp.unix.questions mailing list