Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190045 - baselayout-2.0.0_rc3-r1, no pause, --ifstarted, --nodeps
Summary: baselayout-2.0.0_rc3-r1, no pause, --ifstarted, --nodeps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 14:30 UTC by Duncan
Modified: 2007-09-02 13:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix issues (patches,3.53 KB, patch)
2007-08-28 11:41 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2007-08-24 14:30:00 UTC
With baselayout-2 <= 2.0.0_rc3-r1, neither pause nor the switches --ifstarted or --nodeps, all in the <initscript> --help listing, seem to function at all, regardless of the initscript I try to use them on.  I get unknown function, invalid switch errors.

This is irritating, as I (formerly) paused ntpd, ntp-client, and clock in my hibernate script, then restarted them (ntp-client and ntpd only in runlevels with the network) after wakeup.  

Luckily, nothing depends on the ntp* services, so I can simply stop them, but clock... stops the logger (syslog-ng) as well.  With clock, I worked around the problem by using clock save, which "stops" it without stopping its dependencies, but ALSO without removing its tracker, so I have to then zap it.  Of course, I still have the issue when I try to manually pause something.

FWIW, I'd not consider it ready for ~arch (contrary to the posting on dev) until at least basic functionality like pause (or --nodeps) works.  (Working scripts for stuff like raid would be nice as well, but that bug's already filed, with a working fix available if not yet shipped.)

Additionally, the iuse/ineed/usesme/needsme type functions DO work, but don't seem to be in the --help text anymore.  Without a working pause, their role becomes even more important, as one tries to figure out what's going to be stopped along with the service that has to be stopped because it can't be paused.  I had forgotten their format, and had to go look it up in the handbook.  How much easier it would have been had they been in the help output.

Finally, bug # 188725 (syslog-ng breaks dependency caching on baselayout-2) mentions a new config dependency:

config /etc/syslog-ng/syslog-ng.conf

Is there a parallel RC_CONFIG or similar function (like RC_NEED) that can be added to the conf.d file?  What about RC_BEFORE RC_AFTER?  If they are usable, they aren't documented in conf.d/rc like RC_NEED and RC_USE are.  All these functions could be handy at times and should be documented.

Perhaps a baselayout (5) manpage should be considered, listing the initscript format and conf.d file equivalents?  Or a runscript manpage?  I know it'd be useful here. =8^)

Thanks for your hard work on such an integral part of Gentoo. =8^)  FWIW, testing new baselayouts may be bleeding edge at times and I've got the scars to prove it, but I enjoy the challenge or I'd not be testing in the first place.  (I was running baselayout 1.13 alphas, too, and 1.12 b4 that. =8^)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-28 11:41:46 UTC
Created attachment 129468 [details, diff]
Fix issues

This patch should address all of that.

We no longer have the pause function as it gave users the wrong idea.
Instead you should use --nodeps stop, as it's what it really does.
Comment 2 Duncan 2007-08-28 16:39:31 UTC
(In reply to comment #1)
> This patch should address all of that.

Just overlaid and remerged, and it seems to. =8^)

I found another bug but I'll file it separately.  This one should be closeable once the patch is included in a release.

> We no longer have the pause function as it gave users the wrong idea.
> Instead you should use --nodeps stop, as it's what it really does.

Figured as much, which is why I mentioned that I tried --nodeps as well, but it did need to be removed from the listed options, as the patch does.

Thank you again. =8^)
Duncan
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-09-02 13:16:41 UTC
Fixed in rc4