Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
88c9fb48
Commit
88c9fb48
authored
Nov 07, 2012
by
JINMEI Tatuya
Browse files
[2447] catch failure on initial log, which is most likely a permission issue.
so, it now just prints some hints to stderr and exits.
parent
0590b6d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bind10/bind10_src.py.in
View file @
88c9fb48
...
...
@@ -1145,6 +1145,21 @@ def main():
options = parse_args()
# Announce startup. Making this is the first log message.
try:
logger.info(BIND10_STARTING, VERSION)
except RuntimeError as e:
sys.stderr.write('ERROR: failed to write the initial log: %s\n' %
str(e))
sys.stderr.write("""\
TIP: if this is about permission error for a lock file, check if the directory
of the file is writable for the user of the bind10 process; often you need
to start bind10 as a super user. Also, if you specify the -u option to
change the user and group, the directory must be writable for the group,
and the created lock file must be writabel for that user.
""")
sys.exit(1)
# Check user ID.
setuid = None
setgid = None
...
...
@@ -1177,9 +1192,6 @@ def main():
logger.fatal(BIND10_INVALID_USER, options.user)
sys.exit(1)
# Announce startup.
logger.info(BIND10_STARTING, VERSION)
# Create wakeup pipe for signal handlers
wakeup_pipe = os.pipe()
signal.set_wakeup_fd(wakeup_pipe[1])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment