mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
fix setup production
This commit is contained in:
parent
bbcc8d1745
commit
80bf4feeed
@ -6,9 +6,9 @@ def restart_service(service):
|
|||||||
program = get_program(['systemctl', 'service'])
|
program = get_program(['systemctl', 'service'])
|
||||||
if not program:
|
if not program:
|
||||||
raise Exception, 'No service manager found'
|
raise Exception, 'No service manager found'
|
||||||
elif program == 'systemctl':
|
elif os.path.basename(program) == 'systemctl':
|
||||||
exec_cmd("{prog} restart {service}".format(prog=program, service=service))
|
exec_cmd("{prog} restart {service}".format(prog=program, service=service))
|
||||||
elif program == 'service':
|
elif os.path.basename(program) == 'service':
|
||||||
exec_cmd("{prog} {service} restart ".format(prog=program, service=service))
|
exec_cmd("{prog} {service} restart ".format(prog=program, service=service))
|
||||||
|
|
||||||
def get_supervisor_confdir():
|
def get_supervisor_confdir():
|
||||||
|
Loading…
Reference in New Issue
Block a user