Ignore user service on systemd
Instead emit warning about the need to log out and log in again
This commit is contained in:
parent
c2890da0f3
commit
093470d27d
@ -141,6 +141,8 @@ def restart_services():
|
||||
continue
|
||||
elif unit_type != 'service':
|
||||
log.warning(f'not restarting non-service unit "{unit}"; owner of {proc}')
|
||||
elif name.startswith('user@'):
|
||||
log.warning(f'Not restarting user service {unit}; please log out and log in again')
|
||||
else:
|
||||
_ret, enabled, _err = sau.helpers.exec_cmd([ '/usr/bin/systemctl', 'is-enabled', unit ])
|
||||
enabled = enabled.strip()
|
||||
|
Loading…
Reference in New Issue
Block a user