summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-04 21:13:04 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-04 21:13:04 -0800
commit7047feb74cec411ce51d00a87005ee284cb51fe8 (patch)
treef9c70ab983cf81f9c679c3e9b725c42d3f0a77d1 /scripts
parentcbeaf134cf467085131458489e74fa93a1e53812 (diff)
downloadvyatta-cfg-quagga-7047feb74cec411ce51d00a87005ee284cb51fe8.tar.gz
vyatta-cfg-quagga-7047feb74cec411ce51d00a87005ee284cb51fe8.zip
remove pid files on protocol stop
Also remove debug messages
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-protocol8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/vyatta-protocol b/scripts/vyatta-protocol
index 2d4ba430..e8fff484 100755
--- a/scripts/vyatta-protocol
+++ b/scripts/vyatta-protocol
@@ -27,7 +27,6 @@ fi
case "$1" in
start)
- echo -n "Starting $protocol..."
sudo start-stop-daemon --start --quiet \
--chdir $log_dir \
--exec $exe_file \
@@ -37,20 +36,18 @@ case "$1" in
--pidfile $pid_dir/watch-${daemon}.pid \
--exec /usr/sbin/vyatta-watchquagga \
-- -dz -R "/opt/vyatta/sbin/vyatta-quagga reload $protocol" $daemon
- echo "done."
;;
stop)
- echo -n "Stopping $protocol..."
sudo start-stop-daemon --stop --quiet --oknodo --retry 2 \
--pidfile $pid_dir/watch-${daemon}.pid
+ sudo rm -f $pid_dir/watch-${daemon}.pid
sudo start-stop-daemon --stop --quiet --oknodo --retry 2 \
--exec $exe_file
- echo "done."
+ sudo rm -f $pid_dir/${daemon}.pid
;;
reload)
- echo -n "Reloading $1..."
# Start new transaction
/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin
@@ -66,7 +63,6 @@ case "$1" in
# Reload causing configuration to activate - implies commit
/opt/vyatta/sbin/vyatta-load-config.pl $TMP
- echo "done."
;;
*)
usage;;