Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2016-05-17
2016-05-17 08:56:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
35ebfde3f08ef8fde49aba3c3c8eb30f24a9ef14 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
35ebfde3f08ef8fde49aba3c3c8eb30f24a9ef14
Start script: Use a subshell for the restart.
Fixes [bug
7689 (#7689)
].
1154:
fi # Avoid duplicate start scripts if we got a pid file. if [ -f "$pidfile" ]; then
-
{
+
(
if read roxenpid && read scriptpid; then if roxenp "$scriptpid" "start" "$canonicalconf" 2>/dev/null ; then if [ "$stop"x = x ]; then
1174:
exit 1 fi fi
-
}
< "$pidfile" || {
+
)
< "$pidfile" || {
# NB: The exits above just exit the subshell used for the # redirect. Adjust the exit codes and exit for real. [ "$?" = "2" ];