You are not logged in.

#1 2008-08-04 00:05:49

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

[solved] Slim restart

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

#2 2008-08-04 03:12:46

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [solved] Slim restart

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

#3 2008-08-04 04:44:10

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: [solved] Slim restart

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. cool

Offline

#4 2008-08-04 12:27:01

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: [solved] Slim restart

Well the id is arbitrary. I have an X1 and an X2 along with 6 different c's.

Offline

Board footer

Powered by FluxBB