@ -46,7 +46,7 @@ def init():
def fork_and_reboot():
log = logging.getLogger(sau.LOGNAME)
if os.path.exist('/proc/1/comm'):
if os.path.exists('/proc/1/comm'):
with open('/proc/1/comm', 'r') as f:
if f.readline().strip() == 'systemd':
os.execl('/usr/bin/systemctl', 'reboot')
The note is not visible to the blocked user.