upstart: add working dir and chroot dir.

This commit is contained in:
Daniel Theophanes
2015-04-19 17:25:11 -07:00
parent bf10e852e1
commit 3ed03fd6f7
+2
View File
@@ -150,6 +150,8 @@ const upstartScript = `# {{.Description}}
{{if .DisplayName}}description "{{.DisplayName}}"{{end}}
kill signal INT
{{if .ChRoot}}chroot {{.ChRoot}}{{end}}
{{if .WorkingDirectory}}chdir {{.WorkingDirectory}}{{end}}
start on filesystem or runlevel [2345]
stop on runlevel [!2345]