Skip to main content
Topic: [Solved] How to restart lightdm (Read 906 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Solved] How to restart lightdm

Was able to stop the service by,

Code: [Select]
$sudo s6-rc -d change lightdm

However, when trying to bring it up again,

Code: [Select]
$sudo s6-rc -u change lightdm

does not start the service.

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.

Code: [Select]
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"]


Re: [resolved] How to restart lightdm

Reply #3
Figured it out. Changing to "resolved".
Glad you sorted it.
But spare a thought for the random arrival from a web search who'll wish you'd explained how :)

Sorry for late reply. Updated the post above. Can somebody from the s6 dev team take a look at it? The test and logs are done in the live iso environment.