service/conf typos
This commit is contained in:
parent
99403b8b4c
commit
f6add1463a
1 changed files with 3 additions and 3 deletions
|
@ -60,15 +60,15 @@ def reload_notice(base):
|
||||||
def check_services(base):
|
def check_services(base):
|
||||||
services = "pandora pandora-tasks pandora-encoding pandora-cron pandora-websocketd".split()
|
services = "pandora pandora-tasks pandora-encoding pandora-cron pandora-websocketd".split()
|
||||||
for service in services:
|
for service in services:
|
||||||
cmd = ['service', 'status', service]
|
cmd = ['service', service, 'status']
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
p.wait()
|
p.wait()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
print 'Please install init script for "%s" service:' % service
|
print 'Please install init script for "%s" service:' % service
|
||||||
if os.path.exists('/etc/init'):
|
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'):
|
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 ''
|
print ''
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue