Browse Source

rename to BATCAVE

Helge Jung 9 years ago
parent
commit
55eca34b31
3 changed files with 16 additions and 13 deletions
  1. 6 3
      Readme.md
  2. 1 1
      batcave.py
  3. 9 9
      contrib/init-script.sh

+ 6 - 3
Readme.md

@@ -1,15 +1,18 @@
-# Status-Daemon
+# BATCAVE
+
+**B**atman/**A**lfred **T**ransmission **C**ollection, **A**ggregation & **V**alue **E**ngine
 
 Dieser Daemon läuft auf einem Rechner der im Freifunk-Mesh hängt
-und fragt periodisch (Default = 15s) die Alfred-Daten ab.
+und fragt periodisch (Default = 15s) die Batman- und Alfred-Daten ab.
 
-Die Daten werden aggregiert und können anschließend an mehrere Datensenken weitergegeben:
+Die Daten werden aggregiert und können anschließend an mehrere Datensenken weitergegeben werden:
 * Knoten-Management (allgemeine Meta-Daten zu eigenen Knoten)
 * Redis-Datenbank (zentrale Datenbank mit aktuellen Knoten-Daten)
 * Graphite (Knoten-Graphen und Detail-Statistiken)
 
 ## Voraussetzungen
 
+* der Rechner ist in ein BATMAN-ADV Mesh eingebunden und batadv_vis ist installiert
 * auf dem Rechner läuft ein (ALFRED-Daemon)[http://www.open-mesh.org/projects/open-mesh/wiki/Alfred]
 
 ## Installation

+ 1 - 1
status-daemon.py → batcave.py

@@ -9,7 +9,7 @@ import time
 from ffstatus import *
 
 INTERVAL = 15
-LOGFILE = '/var/log/ffstatus.log'
+LOGFILE = '/var/log/batcave.log'
 
 DUMMY_MODE = 1
 

+ 9 - 9
contrib/init-script.sh

@@ -1,31 +1,31 @@
 #!/bin/sh
 
 ### BEGIN INIT INFO
-# Provides: myservice
+# Provides: batcave
 # Required-Start: $remote_fs $syslog
 # Required-Stop: $remote_fs $syslog
 # Default-Start: 2 3 4 5
 # 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
 
-DAEMON_DIR="/opt/ffstatus/"
-DAEMON_NAME=ffstatus
+DAEMON_DIR="/opt/batcave/"
+DAEMON_NAME=batcave
 
 # Add any command line options for your daemon here
 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
 
 # The process ID of the script when it runs is stored here:
 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