作者antontw (习惯)
站内Linux
标题Re: [问题] 请问 killall 和 start-stop-daemon
时间Sun Aug 31 16:55:41 2008
※ 引述《everydate (月)》之铭言:
: 各位好
: 想请问一下 killall 和 start-stop-daemon 这两个指令有什麽不同?
: 或者是说它有什麽特别的用处?
: 因为我在看一些前人写的code
: 用 killall 就可以终止的行为 不知为何要用 start-stop-deamon ?
: 我想可能有什麽理由吧...
: 谢谢 ^^
(local post)
manpage 有写了唷 ~
start-stop-daemon is used to control the creation and termination of
system-level processes. Using one of the matching options,
start-stop-daemon can be configured to find existing instances of a
running process.
Note: unless --pidfile is specified, start-stop-daemon behaves similar
to killall(1). start-stop-daemon will scan the process table looking
for any processes which match the process name, uid, and/or gid (if
specified). Any matching process will prevent --start from starting the
daemon. All matching processes will be sent the KILL signal if --stop
is specified. For daemons which have long-lived children which need to
live through a --stop you must specify a pidfile.
这个指令是可以用来控制启动﹑终止 system level 的行程。
如果不指定 --pidgile 的话,这个指令的行为和 killall 的动作是一样的。
--
人不作出牺牲,便得不到任何收获;如果要得到某种东西,就必须付出同等代价。这一点
,就是链金术的基本原则 ── 等价交换。当时我们深信这一点就是世界的真理。
阿尔风斯‧爱力克,《钢之链金术师》开场白
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.133.134.243