Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 116 | Rev 170 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
22 | test -x $FRONTEND_DAEMON -a -x $SESSION_DAEMON || exit 0 |
22 | test -x $FRONTEND_DAEMON -a -x $SESSION_DAEMON || exit 0 |
23 | 23 | ||
24 | . /lib/lsb/init-functions |
24 | . /lib/lsb/init-functions |
25 | 25 | ||
26 | ENABLED=0 |
- | |
27 | - | ||
28 | # Include prayer defaults if available |
26 | # Include prayer defaults if available |
29 | if [ -f /etc/default/prayer ] ; then |
27 | if [ -f /etc/default/prayer ] ; then |
30 | . /etc/default/prayer |
28 | . /etc/default/prayer |
31 | fi |
29 | fi |
32 | 30 | ||
Line 34... | Line 32... | ||
34 | SESSION_PIDFILE="$VAR_PREFIX/prayer-session.pid" |
32 | SESSION_PIDFILE="$VAR_PREFIX/prayer-session.pid" |
35 | 33 | ||
36 | set +e |
34 | set +e |
37 | 35 | ||
38 | start() { |
36 | start() { |
39 | if [ "$ENABLED" = "0" ]; then |
- | |
40 | echo "Prayer is disabled. Please set ENABLED=1 in /etc/default/prayer" |
- | |
41 | echo "after adapting /etc/prayer/prayer.cf to your needs." |
- | |
42 | exit 0 |
- | |
43 | fi |
- | |
44 | - | ||
45 | log_daemon_msg "Starting $DESC" "prayer" |
37 | log_daemon_msg "Starting $DESC" "prayer" |
46 | start-stop-daemon --start --pidfile "$FRONTEND_PIDFILE" \ |
38 | start-stop-daemon --start --pidfile "$FRONTEND_PIDFILE" \ |
47 | --exec "$FRONTEND_DAEMON" \ |
39 | --exec "$FRONTEND_DAEMON" \ |
48 | -- $DAEMON_OPTS --config-option "prayer_user=$PRAYER_USER" \ |
40 | -- $DAEMON_OPTS --config-option "prayer_user=$PRAYER_USER" \ |
49 | --config-option "var_prefix=$VAR_PREFIX" \ |
41 | --config-option "var_prefix=$VAR_PREFIX" \ |