Re: [問題] 請問 killall 和 start-stop-daemon
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):