Commit 129722c7 authored by John Ferlito's avatar John Ferlito

Fix pid /var/run directory

parent bf6e5ab2
......@@ -21,6 +21,8 @@ DAEMON=/usr/bin/nfsen # Introduce the server's location here
DAEMON_ARGS="" # Arguments to run the daemon with
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
USER=www-data
GROUP=www-data
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
......@@ -38,6 +40,8 @@ SCRIPTNAME=/etc/init.d/$NAME
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
mkdir -p /var/run/nfsen
sudo chown -R $USER.$GROUP-data /var/run/nfsen
$DAEMON start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
......
......@@ -3,11 +3,11 @@ Date: Fri, 22 Feb 2013 15:55:27 +1100
Subject: Debianise install paths
---
etc/nfsen-dist.conf | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
etc/nfsen-dist.conf | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/etc/nfsen-dist.conf b/etc/nfsen-dist.conf
index cf08470..7d78caa 100644
index cf08470..346059c 100644
--- a/etc/nfsen-dist.conf
+++ b/etc/nfsen-dist.conf
@@ -18,7 +18,7 @@
......@@ -40,7 +40,7 @@ index cf08470..7d78caa 100644
#
# Where to install the docs
@@ -44,7 +44,7 @@ $DOCDIR="${HTMLDIR}/doc";
@@ -44,10 +44,10 @@ $DOCDIR="${HTMLDIR}/doc";
#
# Var space for NfSen
......@@ -48,7 +48,11 @@ index cf08470..7d78caa 100644
+$VARDIR="debian/nfsen/var/lib/nfsen";
# directory for all pid files
# $PIDDIR="$VARDIR/run";
-# $PIDDIR="$VARDIR/run";
+$PIDDIR="/var/run/nfsen";
#
# Filter directory
# FILTERDIR="${VARDIR}/filters";
@@ -60,15 +60,15 @@ $VARDIR="${BASEDIR}/var";
#
# The Profiles stat directory, where all profile information
......
......@@ -7,7 +7,7 @@ Subject: Empty sources list
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/etc/nfsen-dist.conf b/etc/nfsen-dist.conf
index 7d78caa..9abcc28 100644
index 346059c..ef0346f 100644
--- a/etc/nfsen-dist.conf
+++ b/etc/nfsen-dist.conf
@@ -160,9 +160,9 @@ $PROFILERS = 6;
......
......@@ -9,7 +9,7 @@ Subject: Add config snippet functionality
create mode 100644 etc/nfsen.d/README
diff --git a/etc/nfsen-dist.conf b/etc/nfsen-dist.conf
index 9abcc28..667d732 100644
index ef0346f..3ba6d1a 100644
--- a/etc/nfsen-dist.conf
+++ b/etc/nfsen-dist.conf
@@ -300,4 +300,9 @@ Alert '@alert@' triggered at timeslot @timeslot@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment