ho wto start automatically a daemon ...

2007-12-25 10:42:00

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>

Comments

Got something to say?

You must be logged in to post a comment.