From f6add1463afe048ec0a309ddbf038d3fda8bbaf5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 30 Apr 2015 15:07:24 +0200 Subject: [PATCH] service/conf typos --- update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update.py b/update.py index 540fe03c7..114168625 100755 --- a/update.py +++ b/update.py @@ -60,15 +60,15 @@ def reload_notice(base): def check_services(base): services = "pandora pandora-tasks pandora-encoding pandora-cron pandora-websocketd".split() for service in services: - cmd = ['service', 'status', service] + cmd = ['service', service, 'status'] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p.wait() if p.returncode != 0: print 'Please install init script for "%s" service:' % service if os.path.exists('/etc/init'): - print 'sudo cp %s/etc/init/%s.service /etc/init/' % (base, service) + print 'sudo cp %s/etc/init/%s.conf /etc/init/' % (base, service) if os.path.exists('/lib/systemd/system'): - print 'sudo cp %s/etc/systemd/%s.conf /lib/systemd/system/' % (base, service) + print 'sudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service) print '' if __name__ == "__main__":