> Hi all,
> Can any one tell me if it is possible to change the
> number of
> gettys runing on your linux box through some bash script on run time ?
> e.g. your system starts with 6 gettys and after certain time you want
> to shut down 3 of gettys. Can you do it with a shell script ?
AFAIK it can only be done by modifying /etc/inittab.
You can tell init to reread the file on runtime. But
personally I'd like init to be extended with a
possibility to do it through a socket. And if designed
correctly we could also start services in that way
rather than using the current /etc/rc.d/init.d scripts.
Anyway with the way init currently works your script
will have to edit /etc/inittab and afterwards execute
"telinit q" to make init reread the file.
Kasper Dupont -- der bruger for meget tid p? usenet.
It is NOT portable (Linus Benedict Torvalds 1991)