diff --git a/service_upstart_linux.go b/service_upstart_linux.go index 63ab325..b3190e1 100644 --- a/service_upstart_linux.go +++ b/service_upstart_linux.go @@ -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]