upstart: add working dir and chroot dir.
This commit is contained in:
@@ -150,6 +150,8 @@ const upstartScript = `# {{.Description}}
|
|||||||
{{if .DisplayName}}description "{{.DisplayName}}"{{end}}
|
{{if .DisplayName}}description "{{.DisplayName}}"{{end}}
|
||||||
|
|
||||||
kill signal INT
|
kill signal INT
|
||||||
|
{{if .ChRoot}}chroot {{.ChRoot}}{{end}}
|
||||||
|
{{if .WorkingDirectory}}chdir {{.WorkingDirectory}}{{end}}
|
||||||
start on filesystem or runlevel [2345]
|
start on filesystem or runlevel [2345]
|
||||||
stop on runlevel [!2345]
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user