diff --git a/init-scripts/ubuntu_14_04 b/init-scripts/ubuntu_14_04 index 61a8d44..5708007 100644 --- a/init-scripts/ubuntu_14_04 +++ b/init-scripts/ubuntu_14_04 @@ -1,16 +1,18 @@ #! /bin/sh ### BEGIN INIT INFO # -# Provides : fail2rest -# Required-Start : $remote_fs -# Required-Stop : $remote_fs -# Default-Start : 2 3 4 5 -# Default-Stop : 0 1 6 -# Short-Description : fail2rest initscript -# Description : fail2rest is a small REST server that aims allow full administration of a fail2ban server via HTTP +# Provides: fail2rest +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: fail2ban +# Should-Stop: fail2ban +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: fail2rest initscript +# Description: fail2rest is a small REST server that aims allow full administration of a fail2ban server via HTTP # ### END INIT INFO - + # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="fail2rest is a small REST server that aims to allow full administration of a fail2ban server via HTTP" @@ -21,12 +23,6 @@ DAEMON_ARGS="-config=$DAEMON_DIR/config.json" #CHANGE TO THE NAME OF YOUR FAIL2 PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME -# Exit if the package is not installed -#[ -x "$DAEMON" ] || exit 0 - -# Read configuration variable file if it is present -#[ -r /etc/default/$NAME] && . /etc/default/$NAME - # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh