Don't know if that's reliable enough but a naive init script approach
could be:

stop: killall systemd-logind
start: loginctl list-sessions

Reply via email to