Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!daver!kcdev!genco!rad From: rad@genco.uucp (Bob Daniel) Newsgroups: comp.unix.questions Subject: Re: Restarting a process after a shutdown Message-ID: <20@genco.uucp> Date: 29 Aug 90 18:06:13 GMT References: <5759@ethz.UUCP> Reply-To: rad@genco. (Bob Daniel) Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 24 In article <5759@ethz.UUCP> tilo@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.