service/conf typos

This commit is contained in:
j 2015-04-30 15:07:24 +02:00
parent 99403b8b4c
commit f6add1463a

View file

@ -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__":