Don't know if that's reliable enough but a naive init script approach could be:
stop: killall systemd-logind start: loginctl list-sessions
Don't know if that's reliable enough but a naive init script approach could be:
stop: killall systemd-logind start: loginctl list-sessions