Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Daemon now runs in background, outputs to log file.

  • Loading branch information...
commit 0003e1b3d403497ce4df6b00161c8aa92e6b63a9 1 parent c13693a
@danbentley danbentley authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 config/init.d/redhat/shiny-server
View
9 config/init.d/redhat/shiny-server
@@ -8,13 +8,15 @@
. /etc/rc.d/init.d/functions
prog=shiny-server
+logfile="/var/log/${prog}"
# Exit if the package is not installed
-[ -x "$rserver" ] || exit 0
+[ -x "$prog" ] || exit 0
start() {
- echo -n $"Starting shiny-server: "
- daemon $rserver
+ touch $logfile
+ echo -n "Starting shiny-server: "
+ daemon $prog >> $logfile &
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
@@ -63,4 +65,3 @@ case "$1" in
echo $"Usage: $0 {start|stop|status|restart}"
exit 2
esac
-
Please sign in to comment.
Something went wrong with that request. Please try again.