Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #578 from PSUdaemon/merge_tds_to_wts
Browse files Browse the repository at this point in the history
Update init script and default log level
  • Loading branch information
David Neuman committed Oct 2, 2015
2 parents 7ab7d48 + 102135c commit a4da72f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion traffic_stats/traffic_stats.init
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ case "$1" in
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
echo "."
;;
status)
start-stop-daemon --status --quiet --pidfile $PIDFILE
if [[ $? -eq 0 ]] ; then
echo "$NAME is running ($PIDFILE)"
else
echo "$NAME is not running"
fi
;;
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
Expand All @@ -52,7 +60,7 @@ case "$1" in
echo "."
;;
*)
echo "Usage: "$1" {start|stop|restart|reload}"
echo "Usage: "$1" {start|stop|status|restart|reload}"
exit 1
esac

Expand Down
2 changes: 1 addition & 1 deletion traffic_stats/traffic_stats_seelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<seelog>
<seelog minlevel="info">
<outputs formatid="std:debug-short">
<file path="/opt/traffic_stats/var/log/traffic_stats/traffic_stats.log" />
</outputs>
Expand Down

0 comments on commit a4da72f

Please sign in to comment.