[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/init.d scripts WAS: Re: start-stop-daemon on Debian (fwd)



On Sun, Apr 18, 1999 at 03:54:07PM +0300, Brock Rozen wrote:
> I have to agree, and as such, I'll bounce the ball back into your court
> and ask you to improve my proposal (or make a separate one) that will
> solve the different TZ settings or whatever other problems you mentioned.

Sure.

``Scripts may assume that all users will have /usr/bin and /bin in
their PATH and that root will have /usr/sbin and /sbin in addition to
this. Further they may assume that root's other environment settings
are sensible.''

This has the benefit that it doesn't require any effort to implement,
works in the majority of situations, and doesn't require any lines added
to scripts that will need to be removed later. It's also very easy to
test compliance.

Alternately, something along the lines of ``Scripts must not assume
the environment is at all sensible, and should do something like the
following to ensure it is...'' would be fine, with the ellipses filled
in. Just changing the PATH isn't particularly cool though.

> Essentially, my proposal is trying to solve one problem, and one problem
> only 

I see the problem you're trying to solve as an instance of ``I can't
remove /sbin and /usr/sbin from root's PATH and do normal system
administrative tasks.''

Which in turn is an instance of the more general ``I can't change
root's environment to be more pleasant for my use and do normal system
administrative tasks.''

This latter will probably be a real issue in a couple of years when
the current flamewar on linux-kernel dies down and capabilities get
implemented and want to use them on Debian -- at which point root no
longer exists, and users' environments should be customisable.

In short. I don't see this as solving an immediate problem. ``My system
breaks when I do this. So don't do that.'' Big deal. I also don't see
it working as a stepping stone to solving a future problem.

Please: spend a bit more time working out how to solve the wider issue,
even if only for /etc/init.d/*, and I'll be very happy. But special
cases of special cases that I don't even have bugs for...? Eh.

sudo, btw, seems to take care of at least some of this properly for
me. That might be a good place to look for exactly what needs to be
changed. Seeing what environment init sets up (ie browsing the manpage
and code) would probably be helpful too.

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. PGP encrypted mail preferred.

``Like the ski resort of girls looking for husbands and husbands looking
  for girls, the situation is not as symmetrical as it might seem.''

Attachment: pgpeQ49U4n01O.pgp
Description: PGP signature


Reply to: