請問 killall 和 start-stop-daemon - Linux

By Olivia
at 2008-08-31T16:55
at 2008-08-31T16:55
Table of Contents
※ 引述《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 的動作是一樣的。
--
人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。
阿爾風斯‧愛力克,《鋼之鍊金術師》開場白
--
: 各位好
: 想請問一下 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 的動作是一樣的。
--
人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。
阿爾風斯‧愛力克,《鋼之鍊金術師》開場白
--
Tags:
Linux
All Comments
Related Posts
請問 killall 和 start-stop-daemon

By Emma
at 2008-08-31T14:45
at 2008-08-31T14:45
copy 字型的問題

By Dorothy
at 2008-08-31T07:42
at 2008-08-31T07:42
數位電視棒

By Victoria
at 2008-08-31T00:56
at 2008-08-31T00:56
copy 字型的問題

By Linda
at 2008-08-30T21:52
at 2008-08-30T21:52
copy 字型的問題

By Carolina Franco
at 2008-08-30T21:43
at 2008-08-30T21:43