|
@@ -1,31 +1,31 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
|
|
|
### BEGIN INIT INFO
|
|
### BEGIN INIT INFO
|
|
-# Provides: myservice
|
|
|
|
|
|
+# Provides: batcave
|
|
# Required-Start: $remote_fs $syslog
|
|
# Required-Start: $remote_fs $syslog
|
|
# Required-Stop: $remote_fs $syslog
|
|
# Required-Stop: $remote_fs $syslog
|
|
# Default-Start: 2 3 4 5
|
|
# Default-Start: 2 3 4 5
|
|
# Default-Stop: 0 1 6
|
|
# Default-Stop: 0 1 6
|
|
-# Short-Description: Put a short description of the service here
|
|
|
|
-# Description: Put a long description of the service here
|
|
|
|
|
|
+# Short-Description: Batman/Alfred Transmission Collection, Aggregation & Value Engine
|
|
|
|
+# Description: Collects and combines data from batman_adv and alfred for dissemination to other parties.
|
|
### END INIT INFO
|
|
### END INIT INFO
|
|
|
|
|
|
-DAEMON_DIR="/opt/ffstatus/"
|
|
|
|
-DAEMON_NAME=ffstatus
|
|
|
|
|
|
+DAEMON_DIR="/opt/batcave/"
|
|
|
|
+DAEMON_NAME=batcave
|
|
|
|
|
|
# Add any command line options for your daemon here
|
|
# Add any command line options for your daemon here
|
|
DAEMON_OPTS=""
|
|
DAEMON_OPTS=""
|
|
|
|
|
|
-# This next line determines what user the script runs as.
|
|
|
|
-# Root generally not recommended but necessary if you are using the Raspberry Pi GPIO from Python.
|
|
|
|
|
|
+# This next line determines what user the daemon runs as.
|
|
|
|
+# Root is required to gather data from batadv_vis.
|
|
DAEMON_USER=root
|
|
DAEMON_USER=root
|
|
|
|
|
|
# The process ID of the script when it runs is stored here:
|
|
# The process ID of the script when it runs is stored here:
|
|
PIDFILE=/var/run/$DAEMON_NAME.pid
|
|
PIDFILE=/var/run/$DAEMON_NAME.pid
|
|
|
|
|
|
-[ -r /etc/default/ffstatus ] && . /etc/default/ffstatus
|
|
|
|
|
|
+[ -r "/etc/default/$DAEMON_NAME" ] && . /etc/default/${DAEMON_NAME}
|
|
|
|
|
|
-DAEMON=$DAEMON_DIR/ffstatus-daemon.py
|
|
|
|
|
|
+DAEMON="${DAEMON_DIR}/${DAEMON_NAME}.py"
|
|
|
|
|
|
. /lib/lsb/init-functions
|
|
. /lib/lsb/init-functions
|
|
|
|
|