summaryrefslogtreecommitdiff
diff options
authorWilliam Allen <wallentx@users.noreply.github.com>2024-01-04 04:14:04 -0600
committerRobert Ancell <robert.ancell@gmail.com>2024-06-10 12:22:30 +1200
commitd133cc370efd225417d80e0885ad1d978aeba3c6 (patch)
tree01da4fe0afd1419abbd032376eea225b84a15749
parent03044507d2501e85f6e3854aec977ea5ba21e1cc (diff)
Create lightdm-failure-handler.service
-rw-r--r--debian/lightdm-failure-handler.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/lightdm-failure-handler.service b/debian/lightdm-failure-handler.service
new file mode 100644
index 00000000..8b317cc6
--- /dev/null
+++ b/debian/lightdm-failure-handler.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Handle LightDM failure
+
+[Service]
+Type=oneshot
+ExecStart=/bin/mv /etc/issue /etc/issue.restore; /bin/sh -c 'echo -e "LightDM has failed to start. You are now in a TTY for troubleshooting...\nYou can log in and check for details in logs." > /etc/issue; /usr/bin/chvt 4'
+
+[Install]
+WantedBy=multi-user.target