When I execute runlevel it returns "3 5" - could it be possible I'm running both?
free:
total used free shared buffers cached
Mem: 385772 312696 73076 0 70856 176448
-/+ buffers/cache: 65392 320380
Swap: 666688 88 666600
- - - - -
[root@dev bin]# /sbin/telinit 3
[root@dev bin]# free
total used free shared buffers cached
Mem: 385772 298428 87344 0 70896 175780
-/+ buffers/cache: 51752 334020
Swap: 666688 88 666600
[root@dev bin]# /sbin/runlevel
5 3
------
[root@dev bin]# /sbin/telinit 5
[root@dev bin]# /sbin/runlevel
3 5
[root@dev bin]# free
total used
free shared buffers cached
Mem: 385772 312956 72816 0 71024 176468
-/+ buffers/cache: 65464 320308
Swap: 666688 88 666600
[root@dev bin]#
- - - - - - - -
Looks like only 14M diff.
runlevel 3 kills samba, mysql and httpd also. I would think that would be worth a little also.
- - - - - - -
I would be interested in changing runlevel 3 to start samba, mysql, and httpd. These are the ones I use all day.
This has been most informative and interesting!
Thnaks for your
help,
Keith
"Eric \"Shubes\"" <plug@shubes.net> wrote:
Yep, you have it right.
Note, at runlevels 123, the console will have a CLI login prompt, so you can
still log in there (and telinit 5) and switch virtual terminals
(ctl-alt-f2, etc). You just won't have the GUI (X) until you are at run level 5.
I don't know how much resources you'll free by doing this, as any processes
running would be idle. I suppose it'd free up some ram though. I'd be
interested to see the difference, if you'd care to compare and share your
results.
keith smith wrote:
> Hi Eric,
>
> Thanks for your help!
>
> inittab says:
>
> # Default runlevel. The runlevels used by RHS are:
> # 0 - halt (Do NOT set initdefault to this)
> # 1 - Single user mode
> # 2 - Multiuser, without NFS (The same as 3, if you do not have
> networking)
> # 3 - Full multiuser mode
> # 4 - unused
> # 5 - X11
> # 6 - reboot (Do NOT set initdefault to this)
> #
>
> So I can ssh in and "telinit 3" to turn off X, which I'm thinking will
> free resources.
>
> Then if I want to go to the console directly I can ssh in and "telinit
> 5" to activate X again.
>
> Do I have this right? And if so this rocks!!!!
>
> Thanks for your help,
> Keith
>
>
> */"Eric \"Shubes\""/* wrote:
>
> To recycle X w/out shutting down everything, you can
> # telinit 3
> from a window, wait for X to terminate, log back into a CLI windown,
> then
> # telinit 5
>
> The telinit command "tells init" to enter the specified run level.
> HTH
>
> keith smith wrote:
> > Thnaks a bunch.
> >
> > Any way to make a change so I do not have to shutdown?
> >
> > Thanks for your help,
> > Keith
> >
> > */Dan Lund /* wrote:
> >
> > Setterm -blank 0
> > That will fix it if you start X by hand. Otherwise, stick it
> > somewhere in your profile? Never used fedora much.
> >
> >
--
-Eric 'shubes'
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss