Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virtual runlevels again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VladoW
n00b
n00b


Joined: 21 Dec 2003
Posts: 1

PostPosted: Sun Dec 21, 2003 11:05 pm    Post subject: virtual runlevels again Reply with quote

I would like to have two different runlevels, online and offline.
The online differs to offline - it contains sshd, apache, etc ..
I want to get start my comuter automatically - without any user's selections ..

How is possible to call one of these runlevels automatically depending on the situation:
if network cable plugged in, or not ?


(1) I can set runlevel as parameter to lilo or grub and then use it in inittab, but this is not
automatic.
(2) I can copy simlinks from /etc/runlevels/online to /etc/runlevels/default depending
on return of mii-tool, but this is (I think) very ugly solution
(3) I can use ifplugd os quickswitch, but I have problem if to run or not run sshd and other services.
(4) I havent's find any suitable solution to my problem. Can you help me please ?
(5) I can have only one script in default runlevel, and call /sbin/rc offline and /sbin/rc offlinefrom it, but this is also not very nice ..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum