sysv: support working directory.
This commit is contained in:
@@ -190,6 +190,7 @@ case "$1" in
|
|||||||
echo "Already started"
|
echo "Already started"
|
||||||
else
|
else
|
||||||
echo "Starting $name"
|
echo "Starting $name"
|
||||||
|
{{if .WorkingDirectory}}cd '{{.WorkingDirectory}}'{{end}}
|
||||||
$cmd >> "$stdout_log" 2>> "$stderr_log" &
|
$cmd >> "$stdout_log" 2>> "$stderr_log" &
|
||||||
echo $! > "$pid_file"
|
echo $! > "$pid_file"
|
||||||
if ! is_running; then
|
if ! is_running; then
|
||||||
|
|||||||
Reference in New Issue
Block a user