molly-guard and init.d scripts (was: Specify machine name on reboot/halt/shutdown)

martin f krafft madduck at debian.org
Mon May 28 20:15:23 BST 2007


also sprach Dr. David Alan Gilbert <ubuntu at treblig.org> [2007.05.28.2105 +0200]:
> Hmm that's a reasonable suggestion; with that option enabled we
> would still need a way to make the normal /etc/init.d/halt
> scripts and friends work, hence why I added an override option -
> the tricky bit with doing that as a config switch on molly-guard
> rather than in the standard system shutdown/reboot/halt binaries
> is that the init scripts would have to be different when
> the guard was installed unless there was a path that would
> work in both cases - but this is getting messy.

$PATH is how molly-guard works^W cheats. By using

  PATH=/usr/sbin:/sbin:/bin:/usr/bin

instead of the existing $PATH in those scripts, it would just work
and not be any more messy. But there may well be regressions.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
... with a plastic cup filled with a liquid that was almost,
but not quite, entirely unlike tea.
            -- douglas adams, "the hitchhiker's guide to the galaxy"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070528/f4e210d3/attachment.pgp 


More information about the upstart-devel mailing list