mirror of
https://github.com/Sean-Der/fail2rest.git
synced 2024-12-22 13:42:17 +01:00
Ok, this should fix the init info
Ok, this should fix the init info. I tested it out and it came up in the correct order for me.
This commit is contained in:
parent
474b4d7956
commit
1d84dc23d5
1 changed files with 10 additions and 14 deletions
|
@ -1,13 +1,15 @@
|
|||
#! /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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue