spelling
This commit is contained in:
parent
6305fd053b
commit
0e577bebc5
2
bin/sau
2
bin/sau
@ -46,7 +46,7 @@ def init():
|
|||||||
|
|
||||||
def fork_and_reboot():
|
def fork_and_reboot():
|
||||||
log = logging.getLogger(sau.LOGNAME)
|
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:
|
with open('/proc/1/comm', 'r') as f:
|
||||||
if f.readline().strip() == 'systemd':
|
if f.readline().strip() == 'systemd':
|
||||||
os.execl('/usr/bin/systemctl', 'reboot')
|
os.execl('/usr/bin/systemctl', 'reboot')
|
||||||
|
Loading…
Reference in New Issue
Block a user