Re: How to restart lightdm
Reply #1 –
Figured it out. Changing to "resolved".
The state change command "s6-rc -u change lightdm" doesn't work. Have to stop and start the service using "s6-rc stop/start lightdm". See logs below. Not sure it's a bug or the wiki needs to be refreshed.
Script started on 2024-01-15 14:28:50+00:00 [TERM="linux" TTY="/dev/tty7" COLUMNS="160" LINES="50"]
artix-live:[artix]:~$ sudo s6-svstat -ur /run/service/lightdm-srv
false false
artix-live:[artix]:~$ sudo s6-rc -u change lightdm
artix-live:[artix]:~$ echo $?
0
artix-live:[artix]:~$ sudo s6-svstat -ur /run/service/lightdm-srv
false false
artix-live:[artix]:~$ sudo s6-rc -v 3 stop lightdm
s6-rc: info: bringing selected services down
s6-rc: info: service lightdm-srv: stopping
s6-rc: info: service lightdm-srv successfully stopped
s6-rc: info: service lightdm-log: stopping
s6-rc: info: service lightdm-log successfully stopped
artix-live:[artix]:~$ sudo s6-svstat -ur /run/service/lightdm-srv
false false
artix-live:[artix]:~$ sudo s6-rc -v 3 start lightdm
s6-rc: info: bringing selected services up
s6-rc: info: service s6rc-fdholder: already up
s6-rc: info: service udevd-log: already up
s6-rc: info: service lvmpolld-log: already up
s6-rc: info: service lightdm-log: starting
s6-rc: info: service dbus-log: already up
s6-rc: info: service dbus-srv: already up
s6-rc: info: service elogind: already up
s6-rc: info: service s6rc-oneshot-runner: already up
s6-rc: info: service mount-tmpfs: already up
s6-rc: info: service mount-procfs: already up
s6-rc: info: service mount-devfs: already up
s6-rc: info: service mount-cgroups: already up
s6-rc: info: service lvm2-pvscan: already up
s6-rc: info: service lvm2-monitor: already up
s6-rc: info: service kmod-static-nodes: already up
s6-rc: info: service tmpfiles-dev: already up
s6-rc: info: service udevd-srv: already up
s6-rc: info: service udevadm: already up
s6-rc: info: service modules: already up
s6-rc: info: service lvmpolld-srv: already up
s6-rc: info: service cryptsetup: already up
s6-rc: info: service mount-filesystems: already up
s6-rc: info: service remount-root: already up
s6-rc: info: service tmpfiles-setup: already up
s6-rc: info: service artix-live: already up
s6-rc: info: service lightdm-log successfully started
s6-rc: info: service lightdm-srv: starting
s6-rc: info: service lightdm-srv successfully started
artix-live:[artix]:~$
Script done on 2024-01-15 14:32:16+00:00 [COMMAND_EXIT_CODE="0"]