[CentOS] replacement for start-stop-daemon on CentOS
ad+lists at uni-x.org
Sun Apr 4 16:43:50 UTC 2010
Am 04.04.2010 18:10, schrieb Timothy Kesten:
> Am Sonntag, 4. April 2010 17:37:02 schrieb Kwan Lowe:
>> There's no real equivalent, but the "service" command is the main
>> method of starting/stopping processes/daemons. In itself it doesn't
>> do what the start-stop-daemon does, but the scripts associated with
>> the service utility can be customized to mimic some similar functions.
> My goal is:
> start a service/daemon using init.d-script with user != root in a correct way.
> One solution is using su/sudo - but is that "clean"?
Check /etc/init.d/functions for the declared "deamon()" function and you
will spot a correct and clean way to run a service as a user. daemon()
can make use of the "runuser" command.
More information about the CentOS