You are not logged in.
Hey everyone,
What's a good way to make SLiM automatically restart itself after closing X with alt+ctrl+backspace. It's kind of a feature that I took advantage of with gdm.:D
Last edited by Acecero (2008-08-04 04:44:29)
Offline
Have it start through a run level instead of as a daemon.
---Edit---
Should probably include some more details.
/etc/inittab follows the syntax:
id:runlevels:action:process
What you're interested in is:
#Comment the run level 3 default line
#d:3:initdefault:
#Keep the next line commented out
#d:5:initdefault:
#add the next line
x1:5:respawn:/usr/bin/slim >& /dev/null
This will cause slim to start as a run level and will respawn when it is killed (Ctrl+Alt+Backspace)
in /etc/rc,conf, take away slim in the DAEMONS settings, so it won't start during the boot process.
Last edited by Berticus (2008-08-04 03:17:14)
Offline
It works like you said, I never suspected that using run level 5 would effect anything on SLiM or any login manager. Another reason to use the system resources. Much appreciated for the extra details (I got somewhat confused by the "x1" but I knew you meant "x") and thanks for shortening my daemons array.
Offline
Well the id is arbitrary. I have an X1 and an X2 along with 6 different c's.
Offline