On Fri, Jul 05, 2002 at 01:09:24PM -0700, Mythran wrote: > How about in the next 2 hours? My employer might have something to say about that. ;) > Just kidding, yes, it would be nice to have > a snippet of that measure....but I would only use the portion that starts > the script up as the user circlemud. Hmm...I guess I can read up on it, > being that I have done it before and am just too lazy to remember anything > from my past MUD life :) (2 years ago) On Debian I accomplished it with the following in the initscript: start-stop-daemon --start --quiet --background --pidfile $RUNDIR/$PIDFILE \ --chuid $USER:$GROUP --exec $DAEMON Not sure if RedHat includes a start-stop-daemon executable or some semblance thereof. If you have any daemons running non-root from a SysV initscript then read through said script and see if you can pick out where it's running the process as that user and mimic it. Or you could probably hack something with 'su -c"$DAEMON" $USER' I would think... -- { IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657); SMTP(fungi@yuggoth.org); IRC(fungi@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fungi@yuggoth.org); MUD(Nergel@mud.yuggoth.org:2325); WWW(http://fungi.yuggoth.org/); } -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT