diff --git a/update.py b/update.py index 540fe03c..11416862 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__":