Re: replacement for start-stop-daemon on CentOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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"?
> 
> Timothy

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.

Alexander
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux