sysv: support working directory.

This commit is contained in:
Daniel Theophanes
2015-04-19 17:14:10 -07:00
parent 09da6fcd5a
commit bf10e852e1
+1
View File
@@ -190,6 +190,7 @@ case "$1" in
echo "Already started"
else
echo "Starting $name"
{{if .WorkingDirectory}}cd '{{.WorkingDirectory}}'{{end}}
$cmd >> "$stdout_log" 2>> "$stderr_log" &
echo $! > "$pid_file"
if ! is_running; then