Code cleanup.
This commit is contained in:
parent
c9bae6a005
commit
f84ea3fa3c
1 changed files with 8 additions and 1 deletions
|
@ -18,7 +18,14 @@ start() {
|
||||||
ebegin "Starting Tom Servo Bot"
|
ebegin "Starting Tom Servo Bot"
|
||||||
cd $workdir || exit 1
|
cd $workdir || exit 1
|
||||||
|
|
||||||
start-stop-daemon --start --user "$user" --make-pidfile --pidfile "$pidfile" --chdir "$workdir" --exec "$script_exec" -- $script_args >> /var/log/tomservobot/bot.log 2>&1 &
|
start-stop-daemon --start \
|
||||||
|
--user "$user" \
|
||||||
|
--make-pidfile \
|
||||||
|
--pidfile "$pidfile" \
|
||||||
|
--chdir "$workdir" \
|
||||||
|
--exec "$script_exec" \
|
||||||
|
-- $script_args \
|
||||||
|
>> /var/log/tomservobot/bot.log 2>&1 &
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue