-
Notifications
You must be signed in to change notification settings - Fork 16
/
upstart.txt
22 lines (19 loc) · 1.57 KB
/
upstart.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
UPSTART
In /etc/init/* (which runs /etc/init.d/rc)
Can use #Comment
Format is:
- exec COMMAND (must be either exec or script)
- [pre-start|post-stop] script
SH_SCRIPT
end script
- start on startup|runlevel [0-NUM]|stopped JOB|started JOB|EVENT
- custom EVENT can be fired with initctl emit EVENT
- console STR: where stdin|stdout, of "output" (/dev/console), "owner" (same but also manage CTRL-C) or "none" (/dev/null)
- description STR
Filename is JOB.conf
Control:
- start|stop JOB
- initctl list
- status JOB