SUMMARY: ho wto start automatically a daemon ...

From: Elena Gianolio (gianolio@ptsun00.cern.ch)
Date: Thu Aug 01 1996 - 03:10:20 CDT


Hello,
I sent already once the SUMMARY but it seems it didn't arrive ....

My original question:

> is it possible to automatically start a daemon after the boot
> as a "normal user" and not as root without doing it by hand?
> (Ultrasparc1 with solaris2.5)

The answer:
In /etc/rc2.d/ or /etc/rc3.d
put a file called S99whatever. (eg S99LOCAL which is where I put my "site local"
stuff)
This can be normally a soft link to the actual script file (in /etc/init.d/).

S99whatever will have code which looks like this:

su 'user' -c 'command to run'

Thanks for all the quick answers:
fpardo@mail.tisny.com (Frank Pardo)
sweh@mpn.com (Stephen Harris)
"Vaughn Eisler" <eisler@UU.NET>
 blplante@spatial.unisys.com (Brian L Plante)
John Bradley <john.bradley@sunman.chinalake.navy.mil>
Davin Milun <milun@cs.Buffalo.EDU>
Rahul Roy <roy@bluestone.com>
Roger Salisbury <rsalisbu@interramp.com>
Alex Finkel <afinkel@pfn.com>
ps4330@gdatabr.mmac2.jccbi.gov (Peter Schauss x 2014)
mike@trdlnk.com (Michael Sullivan)
scott.swoboda@edwardjones.com (Scott Swoboda)
gmp@adc.com (Gregory M Polanski)
jasonn@nabaus.com.au (Jason Noorman)
vqh@dwrock.dw.lucent.com (D461-Viet_Q_Hoang(0)82572)
gibian@stars1.hanscom.af.mil (Marc S. Gibian)
sesharao@lsil.com (Sesharao Patchipala)
Martin Espinoza <drink@sei.com>
Milt Webb <milt@iqsc.com>
Dan Pritts <danno@us.itd.umich.edu>
anderson@neon.mitre.org (Mark S. Anderson)
Maryanne.Baker@natwest.com.au
Anatoly.Lisovsky@kamaz.ru (Anatoly M. Lisovsky)
Jens Fischer <jefi@kat.ina.de>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:06 CDT