diff options
Diffstat (limited to 'packages/darkstat')
-rw-r--r-- | packages/darkstat/darkstat.sh | 22 | ||||
-rw-r--r-- | packages/darkstat/darkstat.xml | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/packages/darkstat/darkstat.sh b/packages/darkstat/darkstat.sh new file mode 100644 index 00000000..a7706142 --- /dev/null +++ b/packages/darkstat/darkstat.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +rc_start() { + /usr/local/sbin/darkstat --detach +} + +rc_stop() { + killall darkstat +} + +case $1 in + start) + rc_start + ;; + stop) + rc_stop + ;; + restart) + rc_stop + rc_start + ;; +esac diff --git a/packages/darkstat/darkstat.xml b/packages/darkstat/darkstat.xml new file mode 100644 index 00000000..1db6a795 --- /dev/null +++ b/packages/darkstat/darkstat.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8" ?> +<packagegui> + <title>Diagnostics: Darkstat</title> + <name>Darkstat</name> + <version>3.0</version> + <menu> + <name>Darkstat</name> + <tooltiptext>Access Darkstat</tooltiptext> + <section>Diagnostics</section> + <url>http://$myurl:666</url> + </menu> + <additional_files_needed> + <prefix>/usr/local/etc/rc.d/</prefix> + <chmod>0755</chmod> + <item>http://www.pfsense.com/packages/config/darkstat/darkstat.sh</item> + </additional_files_needed> + <service> + <name>Darkstat</name> + <rcfile>darkstat.sh</rcfile> + <executable>darkstat</executable> + </service> +</packagegui> |