From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,dfe3a054bac4c806 X-Google-Attributes: gid1103af,public X-Google-Thread: fe1d2,dfe3a054bac4c806 X-Google-Attributes: gidfe1d2,public X-Google-Thread: f678f,dfe3a054bac4c806 X-Google-Attributes: gidf678f,public X-Google-Thread: 115614,dfe3a054bac4c806 X-Google-Attributes: gid115614,public From: B.A.McCauley@bham.ac.uk Subject: Re: HELP! How to spawn server on reboot Date: 1997/01/29 Message-ID: #1/1 X-Deja-AN: 213016933 references: <01bc0d5b$e97e8820$eaa6d4cc@RICHARD.COMP-UNLTD.COM> to: "Richard Barndt" organization: The University of Birmingham, UK. newsgroups: comp.os.linux.misc,comp.unix.osf.misc,comp.unix.sco.misc,comp.unix.aix In article <01bc0d5b$e97e8820$eaa6d4cc@RICHARD.COMP-UNLTD.COM> "Richard Barndt" writes: >The problem is: every time one of our Unix machines is rebooted, someone >must remember to log in under the server's username and execute the >following commands: > % nohup bin/compit& > % exit > Jobs running > % exit > >Is there a way to do this automatically? Put in in your startup scripts. E.g. /etc/rc.d/rc.local (may have another name, start at /etc/inittab follow the calls.) Alternatively if you want it respawed whrn it dies put it directly in inittab. > The process must run under a >specific username (NOT root) to work correctly. su username -c /home/username/bin/compit & -- \\ ( ) No Bullshit! | Email: B.A.McCauley@bham.ac.uk . _\\__[oo from | Phones: +44 121 471 3789 (home) .__/ \\ /\@ /~) /~[ /\/[ | +44 121 627 2173 (voice) 2175 (fax) . l___\\ /~~) /~~[ / [ | PGP-fp: D7 03 2A 4B D8 3A 05 37... # ll l\\ ~~~~ ~ ~ ~ ~ | http://wcl-l.bham.ac.uk/~bam/ ###LL LL\\ (Brian McCauley) | Finger: bam@wcl-rs.bham.ac.uk