packages: naviagent/naviagent.init - agent is way too generic, use private ...
glen
glen at pld-linux.org
Mon Feb 8 17:39:27 CET 2010
Author: glen Date: Mon Feb 8 16:39:27 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- agent is way too generic, use private log and run dirs
---- Files affected:
packages/naviagent:
naviagent.init (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/naviagent/naviagent.init
diff -u packages/naviagent/naviagent.init:1.1 packages/naviagent/naviagent.init:1.2
--- packages/naviagent/naviagent.init:1.1 Thu Nov 15 16:36:46 2007
+++ packages/naviagent/naviagent.init Mon Feb 8 17:39:22 2010
@@ -31,7 +31,7 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/naviagent ]; then
msg_starting "Navisphere Agent"
- daemon naviagent
+ daemon /usr/sbin/naviagent -p /var/run/naviagent -r /var/log/naviagent
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/naviagent
else
@@ -43,7 +43,7 @@
if [ -f /var/lock/subsys/naviagent ]; then
# Stop daemons.
msg_stopping "Navisphere Agent"
- killproc naviagent
+ killproc --pidfile /var/run/naviagent/agent.pid naviagent
rm -f /var/lock/subsys/naviagent
else
msg_not_running "Navisphere Agent"
@@ -64,7 +64,7 @@
start
;;
status)
- status naviagent
+ status --pidfile /var/run/naviagent/agent.pid naviagent
RETVAL=$?
;;
*)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/naviagent/naviagent.init?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list