Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update init.d script

  • Loading branch information...
commit 7777ab37f4f179a436e3ed6ae38b94a786120ac2 1 parent 5a8d74f
Martin Zimmermann authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 README.md
10 README.md
Source Rendered
@@ -37,18 +37,18 @@ CMD=/usr/local/bin/weave-minimal
37 37
38 38 PORT=8080
39 39 DBPATH=/var/lib/weave-minimal/
40   -DAEMON_OPTS="--data-dir=$DBPATH --enable-registration --port=$PORT"
41 40
42   -if [! -d $DBPATH ]; then
  41 +if [ ! -d $DBPATH ]; then
43 42 mkdir /var/lib/weave-minimal
  43 + chown www /var/lib/weave-minimal
44 44 fi
45 45
46 46 case $1 in
47 47 start)
48 48 echo -n "Starting $NAME: "
49   - start-stop-daemon --start --pidfile /var/run/$NAME.pid \
50   - --chuid $USER --make-pidfile --background --exec $CMD \
51   - -- $DAEMON_OPTS || true
  49 + start-stop-daemon --start --background --pidfile /var/run/$NAME.pid \
  50 + --chuid $USER --make-pidfile --exec $CMD -- --data-dir=$DBPATH \
  51 + --port=$PORT --enable-registration
52 52 echo "$NAME."
53 53 ;;
54 54 stop) start-stop-daemon --stop --pidfile /var/run/$NAME.pid

0 comments on commit 7777ab3

Please sign in to comment.
Something went wrong with that request. Please try again.