summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xPush6
1 files changed, 5 insertions, 1 deletions
diff --git a/Push b/Push
index 3c4bd7d..06bf152 100755
--- a/Push
+++ b/Push
@@ -128,6 +128,10 @@ hosts.each{ |hostname|
cp -a /etc/openvpn/#{$NAMESPACE}.quagga.daemons /etc/quagga/daemons &&
chmod 640 /etc/quagga/bgpd.conf /etc/quagga/zebra.conf &&
chgrp quagga /etc/quagga/bgpd.conf /etc/quagga/zebra.conf &&
- service quagga restart'")
+ if [ -e /etc/init.d/quagga ]; then
+ service quagga restart;
+ else
+ service bgpd restart && service zebra restart;
+ fi'")
end
}