On Fri, 4 Dec 1998, Eric Kidd wrote:
> I'm debugging a non-standard mail server, and I use linuxconf to turn the
> standard services on and off.
>
> When I execute the following code, though, linuxconf 1.13r5 on RedHat 5.2
> gets confused:
>
> chkconfig --del sendmail
> linuxconf --update
>
> In this case, sendmail stays running. If I call 'linuxconf --status', it
> doesn't show a command to shut down sendmail. On the other hand, if I then
> shut down sendmail manually, linuxconf knows sendmail doesn't need to be
> restarted.
I don't know how to fix this behavior. When you run "linuxconf --update"
(or you quit from linuxconf), it checks the current runlevel directory (in
/var/run/runlevel.dir. It checks all the S services in that directory. For
each service, it reads the sysv script. If it is enhanced, it then check
if the service is up to date (relative to its various config file).
Now, when you do
chkconfig --del sendmail
this remove the SXXsendmail from all sysv directories. So linuxconf does
not know anything about sendmail then.
So the exact behavior is not that obvious. Maybe chkconfig should call the
stop command itself. Or maybe linuxconf should "cache" the content of a
runlevel directory and compare with its current state and do the
appropriate killing. Or maybe linuxconf should compare the runlevel
directory and the init.d directory (where the original copies of all sysv
script live) and then kills the offending services.
I am open to suggestion.
Although this chkconfig stuff is a little distant from linuxconf, when you
use the control panel to turn off some service, linuxconf should ask you
if you want to terminate the service as well.
On RedHat system, linuxconf could also read the /var/lock/subsys directory
and learn about running service this way. Any running service in this
directory and not in the runlevel directory would be stop. Hum...
Anyway, comments welcome!
---------------------------------------------------------
Jacques Gelinas <[EMAIL PROTECTED]>
Check out Linuxconf at http://www.solucorp.qc.ca/linuxconf
New modules: mgettyconf, managerpm
---
You are currently subscribed to linuxconf as: [[email protected]]
To unsubscribe, forward this message to [EMAIL PROTECTED]