請問 killall 和 start-stop-daemon - Linux

Olivia avatar
By Olivia
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 的動作是一樣的。

--

人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。

阿爾風斯‧愛力克,《鋼之鍊金術師》開場白

--
Tags: Linux

All Comments

請問 killall 和 start-stop-daemon

Emma avatar
By Emma
at 2008-08-31T14:45
各位好 想請問一下 killall 和 start-stop-daemon 這兩個指令有什麼不同? 或者是說它有什麼特別的用處? 因為我在看一些前人寫的code 用 killall 就可以終止的行為 不知為何要用 start-stop-deamon ? 我想可能有什麼理由吧... 謝謝 ^^ ...

copy 字型的問題

Dorothy avatar
By Dorothy
at 2008-08-31T07:42
我知道了,用kile在存檔時,要選encoding。如果要用 big5字型 ,就 要選 big5 的編碼來存tex檔。 - ...

數位電視棒

Victoria avatar
By Victoria
at 2008-08-31T00:56
雖然之前有看過UBUNTU上面的文章教學 如何在LINUX上看數位電視 也看過網路的文章 怎麼大家都安裝得起來 我怎麼都不成功呢? 我的電視棒是 廣寰 VS-DVB-T 323U http://www.kworld.com.tw/Support_download.aspx?id=60andamp;d1=3an ...

copy 字型的問題

Linda avatar
By Linda
at 2008-08-30T21:52
sorry,因為是轉信版,所以另外po一篇。 上面字型的問題是因為我的 Ubuntu 設定為 zh_TW-UTF8 UTF8 的關係嗎 ??? - ...

copy 字型的問題

Carolina Franco avatar
By Carolina Franco
at 2008-08-30T21:43
我現在裝了cwkc。我開了 test-cjkb5.tex這個範例檔 (用終端機), 發現中文部分是亂碼。可是用 bg5latex 沒問題。用kdvi會開不起來,沒反應。 可是用 kile把div轉到 pdf,用 kpdf開又沒問題, 轉到 ps,出現 finished with exit status 1,此 ...