關於upstart的問題。 - Linux

By Mia
at 2012-04-27T13:49
at 2012-04-27T13:49
Table of Contents
大家好,我是好久不見的天字第一號大淫魔。
我已經退伍回來啦~自從脊椎開刀後再也不敢騎車看檳榔西施了 :(
最近想了解了upstart job 的撰寫方式,google了滿多文章,
然後自己去挑了一個簡單的例子/etc/init/plymouth-stop.conf來看,
可是還是有一些地方看不太懂 :(
希望版上大大可以指導一下。
/*******************plymouth-stop.conf**************************/
start on (starting gdm
or starting kdm
or starting xdm
or starting lxdm
or starting lightdm
or starting uxlaunch
or starting ubiquity
or starting oem-config
or stopped rc RUNLEVEL=[2345]
or starting rcS
or starting mountall-shell)
stop on stopped plymouth
----上面我大致上知道,啟動時機是display manager啟動時觸發這個script----
pre-start script
case "$JOB" in
gdm|kdm|lightdm|ubiquity|oem-config)
exit 0
;;
*)
exec /bin/plymouth quit
;;
esac
end script
--------上面這一段就不太懂了 :(
$JOB這個變數怎麼憑空冒出來呢?我在鳥哥那邊也沒搜尋到什麼東西。
大大們可以給個方向或參考資料嗎?
--
我已經退伍回來啦~自從脊椎開刀後再也不敢騎車看檳榔西施了 :(
最近想了解了upstart job 的撰寫方式,google了滿多文章,
然後自己去挑了一個簡單的例子/etc/init/plymouth-stop.conf來看,
可是還是有一些地方看不太懂 :(
希望版上大大可以指導一下。
/*******************plymouth-stop.conf**************************/
start on (starting gdm
or starting kdm
or starting xdm
or starting lxdm
or starting lightdm
or starting uxlaunch
or starting ubiquity
or starting oem-config
or stopped rc RUNLEVEL=[2345]
or starting rcS
or starting mountall-shell)
stop on stopped plymouth
----上面我大致上知道,啟動時機是display manager啟動時觸發這個script----
pre-start script
case "$JOB" in
gdm|kdm|lightdm|ubiquity|oem-config)
exit 0
;;
*)
exec /bin/plymouth quit
;;
esac
end script
--------上面這一段就不太懂了 :(
$JOB這個變數怎麼憑空冒出來呢?我在鳥哥那邊也沒搜尋到什麼東西。
大大們可以給個方向或參考資料嗎?
--
Tags:
Linux
All Comments

By Mason
at 2012-04-28T23:46
at 2012-04-28T23:46

By Andy
at 2012-04-29T23:30
at 2012-04-29T23:30

By Oscar
at 2012-04-30T16:14
at 2012-04-30T16:14
Related Posts
新手問題 謝謝

By Aaliyah
at 2012-04-26T23:48
at 2012-04-26T23:48
Win7-Archlinux 互相 ping 錯誤

By Joseph
at 2012-04-26T20:31
at 2012-04-26T20:31
ubuntu 12.04出了

By Hedy
at 2012-04-26T20:12
at 2012-04-26T20:12
請問開機磁區MBR

By Dinah
at 2012-04-26T16:56
at 2012-04-26T16:56
cygwin的執行問題~!

By Oscar
at 2012-04-26T14:54
at 2012-04-26T14:54