sample configuration changed
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 8 Jan 2008 15:08:09 +0000 (15:08 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 8 Jan 2008 15:08:09 +0000 (15:08 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@42 251d49ef-1d17-4917-a970-b30cf55b089b

etc/cron.d/prometheus [new file with mode: 0644]
etc/init.d/prometheus [new file with mode: 0644]
etc/prometheus/hosts [moved from hosts.SAMPLE with 100% similarity]
etc/prometheus/prometheus.conf [moved from prometheus.conf.SAMPLE with 99% similarity]
prometheus.c
sample-configuration/prometheus.cron

diff --git a/etc/cron.d/prometheus b/etc/cron.d/prometheus
new file mode 100644 (file)
index 0000000..df4d54e
--- /dev/null
@@ -0,0 +1,5 @@
+# Prometheus Cron file now made with 5% more love
+# (thanks to Danny for suggestion)
+
+0 0,1,7-23 * * *  root nice /usr/sbin/prometheus -p 1>/dev/null
+0 2 * * *  root /root/sbin/prometheus 1>/dev/null
diff --git a/etc/init.d/prometheus b/etc/init.d/prometheus
new file mode 100644 (file)
index 0000000..c0f8170
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+EXEFILE=/usr/sbin/prometheus
+
+case "$1" in
+    start)
+        $EXEFILE -n
+        ;;
+    stop)
+        $EXEFILE -f
+        ;;
+    kill)
+        $EXEFILE -9
+        ;;
+    restart|force-reload)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    *)
+        echo "Usage: $0 {start|stop|restart|force-reload|kill}" >&2
+        exit 1
+        ;;
+esac
similarity index 100%
rename from hosts.SAMPLE
rename to etc/prometheus/hosts
similarity index 99%
rename from prometheus.conf.SAMPLE
rename to etc/prometheus/prometheus.conf
index 01925f7094db927a5b4fb8ab0157de967f573ddf..2c90a301120eb6d4f3e19152a4755f62de4377df 100644 (file)
@@ -20,7 +20,7 @@ iptables-file         /var/spool/prometheus.iptables
 #==========================================================================
 #Filename of /etc/hosts - style IP address configuration file
 #--------------------------------------------------------------------------
 #==========================================================================
 #Filename of /etc/hosts - style IP address configuration file
 #--------------------------------------------------------------------------
-hosts                  /etc/prometheus.hosts
+hosts                  /etc/prometheus/hosts
 #==========================================================================
 #Keywords found in /etc/host comments - syntax KEYWORD-MIN-MAX
 #Eg.:  192.168.1.2     mypc    #via-prometheus-256-512
 #==========================================================================
 #Keywords found in /etc/host comments - syntax KEYWORD-MIN-MAX
 #Eg.:  192.168.1.2     mypc    #via-prometheus-256-512
index 366608fcd74f5f53375ed448645523aa2f5c23b5..96ce79705ebeaa45515dc191dab14a6399832f03 100644 (file)
@@ -57,8 +57,8 @@ int filter_type=1;                      /*1 mark, 2 classify*/
 char *mark="MARK";\r
 char *mark_iptables="MARK --set-mark ";\r
 int dry_run=0;                         /* preview - use puts() instead of system() */\r
 char *mark="MARK";\r
 char *mark_iptables="MARK --set-mark ";\r
 int dry_run=0;                         /* preview - use puts() instead of system() */\r
-char *config="/etc/prometheus.conf";   /* main configuration file */\r
-char *hosts="/etc/hosts";              /* line bandwidth definition file */\r
+char *config="/etc/prometheus/prometheus.conf";   /* main configuration file */\r
+char *hosts="/etc/prometheus/hosts";              /* line bandwidth definition file */\r
 char *tc="/sbin/tc";                   /* requires tc with HTB support */\r
 char *iptables="/usr/sbin/iptables";       /* requires iptables utility */\r
 char *iptablessave="/usr/sbin/iptables-save"; /* new */\r
 char *tc="/sbin/tc";                   /* requires tc with HTB support */\r
 char *iptables="/usr/sbin/iptables";       /* requires iptables utility */\r
 char *iptablessave="/usr/sbin/iptables-save"; /* new */\r
index 80c3fa21b512d4261499c1ca29dea6a00e1e52e0..df4d54e799445bc6282b2c8c688ad90d64110f9e 100644 (file)
@@ -1,5 +1,5 @@
 # Prometheus Cron file now made with 5% more love
 # (thanks to Danny for suggestion)
 
 # Prometheus Cron file now made with 5% more love
 # (thanks to Danny for suggestion)
 
-0 0,1,7-23 * * *  root nice /root/qos/prometheus -p 1>/dev/null
-0 2 * * *  root /root/qos/prometheus 1>/dev/null
+0 0,1,7-23 * * *  root nice /usr/sbin/prometheus -p 1>/dev/null
+0 2 * * *  root /root/sbin/prometheus 1>/dev/null
This page took 0.151563 seconds and 4 git commands to generate.