public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Allen D Parker <allenp@efn.org>
To: Paul de Vrieze <pauldv@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] strange gentoo shutdown sequence
Date: Mon, 3 May 2004 01:50:37 -0700 (PDT)	[thread overview]
Message-ID: <Pine.SUN.4.56.0405030137300.1772@garcia.efn.org> (raw)
In-Reply-To: <200405031030.16829.pauldv@gentoo.org>

We can actually probably do this in bash fairly simply (although unless
each service is started in sequence or in a seperate shellspace, it might
be a problem) parallel start + bash variables = nastiness.

for each initscript SVCNAME="apache2"
then in the actual runscript, something like this would do just fine
(imho) for 99% of what would need to be supported:

SVCHOME=`whereis ${SVCNAME} | cut -d " " -f 2`
if ${SVCNAME} != `ps aux | grep ${SVCHOME}`; then
/etc/init.d/${SVCNAME} zap &&
/etc/init.d/${SVCNAME} start
else
SVC_STATUS="alive"
fi

Allen Parker
(temporarily off my windows box :( i borked my raid firmware last night)

On Mon, 3 May 2004, Paul de Vrieze wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 03 May 2004 08:15, Olivier Crête wrote:
> > On Mon, 2004-05-03 at 07:10, John Nilsson wrote:
> > > While on the topic:
> > > 	Is it resonable to patch gdm so that /etc/init.d/xdm is zapped
> > > after gdm is killed by selecting reboot/shutdown from the login
> > > screen? It just annoys me that the script errors while shutting
> > > down.
> >
> > This is imho a misfeature of the current initscripts system. The
> > started-ness of an application is only checked against a file and not
> > against the current real status. We should probably add a possible
> > "status()" function to them (that would default to true) that would
> > check if the service is still running in a custom way.. And zap it if
> > it isnt... The problem there is with dependencies, should they be
> > stopped if the service died? But the current system is clearly
> > broken..
>
> I agree, I think we should enhance the init scripts with another function
> that can check the status of a daemon (in some way) and as such also
> does not complain when a died daemon needs to be started.
>
> Paul
>
> - --
> Paul de Vrieze
> Gentoo Developer
> Mail: pauldv@gentoo.org
> Homepage: http://www.devrieze.net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFAlgMYbKx5DBjWFdsRAmOTAKDnA9E0PAVsCtMFAFJIkeKbLuJX/ACcDoCK
> k3gzkzUnrA0n2unCEEpERH0=
> =+tIc
> -----END PGP SIGNATURE-----
>
> --
> gentoo-dev@gentoo.org mailing list
>
>
>

--
gentoo-dev@gentoo.org mailing list


  reply	other threads:[~2004-05-03  8:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-02 17:32 [gentoo-dev] strange gentoo shutdown sequence William Hubbs
2004-05-03  5:10 ` John Nilsson
2004-05-03  6:15   ` Olivier Crête
2004-05-03  6:46     ` John Nilsson
2004-05-03 17:22       ` Grant Goodyear
2004-05-03  8:30     ` Paul de Vrieze
2004-05-03  8:50       ` Allen D Parker [this message]
2004-05-03  9:05         ` Paul de Vrieze
2004-05-05 18:11           ` Martin Schlemmer
2004-05-03 16:24 ` splite-gentoo
2004-05-04 15:13   ` [gentoo-dev] " Sven Köhler
2004-05-04 15:33     ` splite-gentoo
2004-05-04 16:00       ` Sven Köhler
2004-05-04 16:30         ` Jon Portnoy
2004-05-04 15:16   ` Sven Köhler
2004-05-04 15:37     ` splite-gentoo
2004-05-04 15:59       ` Sven Köhler
2004-05-04 16:25         ` splite-gentoo
2004-05-07 16:33           ` Chris Gianelloni
2004-05-07 17:53             ` splite-gentoo
2004-05-04 16:28         ` Daniel Drake
  -- strict thread matches above, loose matches on Subject: below --
2004-05-02 11:40 [gentoo-dev] " Sven Köhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.4.56.0405030137300.1772@garcia.efn.org \
    --to=allenp@efn.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=pauldv@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox