Skip to content

Commit

Permalink
updates sent via email from vorner.cz
Browse files Browse the repository at this point in the history
 • The PATH now contains /usr/local/bin/, since it is the place where node.js installs itself by default when installed by hand.
 • The LOGDIR is adjusted to the installation instructions on wiki.
 • If the node.js binary is not found, it exits with non-zero status, so it doesn't look like it succeeds.
  • Loading branch information
Reginald dude committed Jan 8, 2013
1 parent 2b4b82d commit cb9ec04
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions _etc_init.d_buddycloud-server
@@ -1,3 +1,7 @@




#! /bin/sh
### BEGIN INIT INFO
# Provides: buddycloud-server
Expand All @@ -18,7 +22,7 @@
# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
DESC="buddycloud server"
NAME=buddycloud
RUN_AS_USER=buddycloud
Expand All @@ -28,11 +32,11 @@ DAEMON_ARGS="lib/main.js --config config.js"
PIDDIR=/var/run/buddycloud-server
PIDFILE="$PIDDIR/$NAME.pid"
SCRIPTNAME=/etc/init.d/$NAME
LOGDIR=/var/log/buddycloud-server
LOGDIR=/var/log
LOGFILE="$LOGDIR/buddycloud-server.log"

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
[ -x "$DAEMON" ] || exit 1

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
Expand Down

0 comments on commit cb9ec04

Please sign in to comment.