##// END OF EJS Templates
serve: add chdir command for --daemon-postexec...
Jun Wu -
r28452:0bb01c87 default
parent child Browse files
Show More
@@ -835,6 +835,8 b' def service(opts, parentfn=None, initfn='
835 if inst.startswith('unlink:'):
835 if inst.startswith('unlink:'):
836 lockpath = inst[7:]
836 lockpath = inst[7:]
837 os.unlink(lockpath)
837 os.unlink(lockpath)
838 elif inst.startswith('chdir:'):
839 os.chdir(inst[6:])
838 elif inst != 'none':
840 elif inst != 'none':
839 raise error.Abort(_('invalid value for --daemon-postexec: %s')
841 raise error.Abort(_('invalid value for --daemon-postexec: %s')
840 % inst)
842 % inst)
General Comments 0
You need to be logged in to leave comments. Login now