Show More
@@ -8,7 +8,6 b'' | |||||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | import os |
|
10 | import os | |
11 | import sys |
|
|||
12 | import tempfile |
|
11 | import tempfile | |
13 |
|
12 | |||
14 | from .i18n import _ |
|
13 | from .i18n import _ | |
@@ -19,6 +18,7 b' from . import (' | |||||
19 | commandserver, |
|
18 | commandserver, | |
20 | error, |
|
19 | error, | |
21 | hgweb, |
|
20 | hgweb, | |
|
21 | pycompat, | |||
22 | util, |
|
22 | util, | |
23 | ) |
|
23 | ) | |
24 |
|
24 | |||
@@ -42,7 +42,7 b' def runservice(opts, parentfn=None, init' | |||||
42 | os.close(lockfd) |
|
42 | os.close(lockfd) | |
43 | try: |
|
43 | try: | |
44 | if not runargs: |
|
44 | if not runargs: | |
45 |
runargs = util.hgcmd() + |
|
45 | runargs = util.hgcmd() + pycompat.sysargv[1:] | |
46 | runargs.append('--daemon-postexec=unlink:%s' % lockpath) |
|
46 | runargs.append('--daemon-postexec=unlink:%s' % lockpath) | |
47 | # Don't pass --cwd to the child process, because we've already |
|
47 | # Don't pass --cwd to the child process, because we've already | |
48 | # changed directory. |
|
48 | # changed directory. |
General Comments 0
You need to be logged in to leave comments.
Login now