Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Restarting daemons no more

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Chris Brien <cbrien AT sourcemage.org>
  • To: "Sergey A. Lipnevich" <sergey AT optimaltec.com>, SM-Discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Restarting daemons no more
  • Date: Tue, 15 Apr 2003 02:38:32 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 14 April 2003 9:52 pm, Sergey A. Lipnevich wrote:
> Hi All,
>
> I believe sorcery now tries to restart the service if there's a init/
> entry. This must be stopped, or done conditionally. Oftentimes services
> modify, extend, or adjust meaning of configuration options, or some
> in/external modules may stop loading as a result of the rebuild. Sorcery
> would stop the service, and then it would never start again. For
> situations where service can check its config (like `httpd -t' for
> Apache 2 or `slapd -t' for OpenLDAP) this check must be performed
> *before stopping the service*. For other services, nothing must be done.
> Existing daemons must continue running until the administrator decides
> to recycle them.
> I'm quite sure that the feature in its current form must be disabled.
>
> Sergey.

Well I thought about autorestarting daemons when I implemented the
auto-init.d
installation, and had the same concerns as you have brought up. It would not
be too good if, say, it decided to run "/etc/init.d/mount.sh stop" or
"/etc/init.d/reboot.sh" just because it was installing the init scripts. :o)

So I just decided that it would be better not to. The sysadmin can start and
stop daemons when he wants; the newbie can reboot to have things started.
Having to specify whether a service can be autostopped/started would be more
complex. Doable, but I decided against it at the time. KISS.

The only daemon which currently gets autorestarted is xinetd, when a service
which uses it is installed/uninstalled. This is separate from the init.d
handling.

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+m2KYPXX8H7NkxykRAhmvAJ9k8W1EwcZz0xKjQcpqsHlxhAVNuQCfVavX
IYHruMYoBQkUvSnDEu+AwR0=
=RRaV
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page