diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 12:37:30 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 12:37:30 -0800 |
commit | dc847212c3a95016a315f4aaf3bf3e134d2bbebd (patch) | |
tree | 329d4b7cbea03923424fe1a968ab41cc6eb211a5 | |
parent | 4cb07fa0262bcd6f72f2f1695c5f8e00ba127839 (diff) | |
download | vyatta-cfg-quagga-dc847212c3a95016a315f4aaf3bf3e134d2bbebd.tar.gz vyatta-cfg-quagga-dc847212c3a95016a315f4aaf3bf3e134d2bbebd.zip |
Move reload to vyatta-cfg-reload
-rwxr-xr-x | scripts/vyatta-protocol | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/scripts/vyatta-protocol b/scripts/vyatta-protocol index 3d354d8d..0e76f8c2 100755 --- a/scripts/vyatta-protocol +++ b/scripts/vyatta-protocol @@ -33,7 +33,7 @@ case "$1" in --chdir $log_dir \ --exec /usr/sbin/vyatta-watchquagga \ -- -p $pid_dir/watch-${daemon}.pid \ - -dz -r "/opt/vyatta/sbin/vyatta-quagga restart %s" $daemon + -dz -r "$0 restart %s" $daemon ;; stop) @@ -52,25 +52,7 @@ case "$1" in --chdir $log_dir --exec $exe_file \ -- -d -P 0 -i $pid_dir/${daemon}.pid - # Begin reloading transaction - /opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin || exit 1 - - # In case of error undo - trap "/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper end" EXIT HUP INT QUIT TERM - - # Save current configuration - tmp=/tmp/${daemon}-restart.$$ - /opt/vyatta/sbin/vyatta-save-config.pl $tmp || exit 1 - - # Erase active configuration for that protocol - rm -fr /opt/vyatta/config/active/protocols/${daemon/%d/} - - # Reload causing configuration to activate - implies commit - # remove tmp file if successful - /opt/vyatta/sbin/vyatta-load-config.pl $tmp || exit 1 - - rm $tmp - + sudo /opt/vyatta/sbin/vyatta-cfg-reload protocols ${daemon/%d/} ;; *) usage;; |