From bff4a9553d22e7fc34ea9a79ba174ecbf912acca Mon Sep 17 00:00:00 2001 From: j Date: Tue, 8 Mar 2016 13:20:33 +0530 Subject: [PATCH] needs daemon-reload after replacing systemd service file --- update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.py b/update.py index 0cbe3e1a..fad49947 100755 --- a/update.py +++ b/update.py @@ -75,6 +75,7 @@ def check_services(base): print('\tsudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)) if os.path.exists('/lib/systemd/system'): print('\tsudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)) + print('sudo systemctl daemon-reload') print('\tsudo service %s start' % service) print('') @@ -190,6 +191,7 @@ if __name__ == "__main__": print('\tsudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)) if os.path.exists('/lib/systemd/system'): print('\tsudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)) + print('sudo systemctl daemon-reload') print('\tsudo service %s restart' % service) if old <= 5432: import pandora.settings @@ -213,6 +215,7 @@ if __name__ == "__main__": print('\tsudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)) if os.path.exists('/lib/systemd/system'): print('\tsudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)) + print('sudo systemctl daemon-reload') print('\tsudo service %s restart' % service) else: if len(sys.argv) == 1: