Commit f337180a authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[213] Add missing log message

parent 9862bdf1
......@@ -149,6 +149,9 @@ The boss module is sending a SIGKILL signal to the given process.
% BIND10_SEND_SIGTERM sending SIGTERM to %1 (PID %2)
The boss module is sending a SIGTERM signal to the given process.
% BIND10_SETUID setting UID to %1
The boss switches the user it runs as to the given UID.
% BIND10_SHUTDOWN stopping the server
The boss process received a command or signal telling it to shut down.
It will send a shutdown command to each process. The processes that do
......
......@@ -18,6 +18,10 @@ import isc.bind10.sockcreator
from bind10_config import LIBEXECDIR
import os
import posix
import isc.log
from isc.log_messages.bind10_messages import *
logger = isc.log.Logger("boss")
class SockCreator(BaseComponent):
"""
......@@ -122,7 +126,7 @@ class SetUID(BaseComponent):
def _start_internal(self):
if self.uid is not None:
# TODO: log
logger.info(BIND10_SETUID, self.uid)
posix.setuid(self.uid)
def _stop_internal(self): pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment