From 28923965fedd8735ac0b71b83f852b5f35185f96 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 26 Nov 2016 17:51:33 +0100 Subject: daemon-reload and service --- Push | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Push b/Push index 644bf54..42963f6 100755 --- a/Push +++ b/Push @@ -109,8 +109,10 @@ hosts.each{ |hostname| commands = [] commands << "sh ./#{do_iptables} &&\n" if do_iptables commands << "sh ./#{do_ip6tables} &&\n" if do_ip6tables - commands << "/etc/init.d/openvpn stop "+stop.join(' ')+" &&\n" if stop.size > 0 - commands << "/etc/init.d/openvpn restart "+restart.join(' ')+" && \n" if restart.size > 0 + #commands << "/etc/init.d/openvpn stop "+stop.join(' ')+" &&\n" if stop.size > 0 + #commands << "/etc/init.d/openvpn restart "+restart.join(' ')+" && \n" if restart.size > 0 + commands << "(systemctl daemon-reload || true ) && \n" + commands << "service openvpn restart && \n" if restart.size > 0 or stop.size > 0 commands << "rm "+delete.join(' ')+" &&\n" if delete.size > 0 command = "cd /etc/openvpn && \n"; command << commands.join('') -- cgit v1.2.3