友链
导航
These are the good times in your life,
so put on a smile and it'll be alright
友链
导航
turns other processes into daemons
http://libslack.org/daemon/README
daemon 的运行步骤如下:
-n, –name=name
- Guarantee a single named instance, 服务运行后, 可用此 name 停止-X, –command=cmd
- Specify the client command as an option-u, –user=user[:[group]]
- Run the client as user[:group]-r, –respawn
- Respawn the client when it terminates–running
- Check if a named daemon is running–restart
- Restart a named daemon client–stop
- Terminate a named daemon process# 开启 $ /usr/bin/daemon --respawn --name=foo --command="/usr/share/foo/foo -o client_opts" # 停止 $ /usr/bin/daemon --name=foo --stop
# /etc/daemon.conf: system-wide daemon(1) configuration. # See daemon(1) for full documentation. # Format: <name|"*"> <option(","option)*> * errlog=daemon.err,output=local0.err,core test1 syslog=local0.debug,debug=9,verbose=9,respawn test2 syslog=local0.debug,debug=9,verbose=9,respawn