git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/init.d/infinoted
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-11-25 20:12:00 +0100
committermail_redacted_for_web 2015-11-25 20:12:00 +0100
commitbb672929c90b92cc5733e43b92bf80360f58f158 (patch)
treeb8d9b1f059e468277e67f0a3c673a1315cc28ee0 /init.d/infinoted
parent0a3cf9fb4c78e848b2d5eb989651e74b59a16201 (diff)
downloadinfinoted-init-bb672929c90b92cc5733e43b92bf80360f58f158.tar.bz2
SYSVDEFAULTS
Diffstat (limited to 'init.d/infinoted')
-rwxr-xr-xinit.d/infinoted3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.d/infinoted b/init.d/infinoted
index d416d34..5c02c8e 100755
--- a/init.d/infinoted
+++ b/init.d/infinoted
@@ -35,6 +35,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Infinoted, a server for collaborative editing"
NAME=infinoted
DAEMON=/usr/bin/$NAME
+SYSVDEFAULTS=/etc/default
# hp -- We are now presenting some defaults here, will be overwritten if present in /etc/default/$NAME
INFINOTE_ROOT="/usr/local/share/infinoted"
INFINOTE_CERT="/etc/infinoted/cert.pem"
@@ -56,7 +57,7 @@ SCRIPTUSER="infinote:infinote"
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
-[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+[ -r $SYSVDEFAULTS/$NAME ] && . $SYSVDEFAULTS/$NAME
DAEMON_ARGS="-d -c $INFINOTE_CERT -k $INFINOTE_KEY -p $INFINOTE_PORT -r $INFINOTE_ROOT"
# Load the VERBOSE setting and other rcS variables