Re: Great 022 mystery solved ... now how to fix
"Ken McDonell" <[email protected]> Sun, 29 Jan 2017 15:58:21 +1100
| Newsgroups | gmane.comp.sysutils.pcp |
|---|---|
| Message-ID | <[email protected]> |
G'day Frank. On 29/01/17 04:18, Frank Ch. Eigler wrote: > ... > How about teaching the systemd .service files to launch pmcd in a more > proper native mode (not by naive delegation to the displaced > initscripts files)? Then those dispaced files can learn to delegate > to systemd for startup, rather than launching pmcd directly. But they > can print the same message as before. (Those messages could be fake, > or perhaps even pulled out of the journal.) So if the qa scripts use > the initscripts, they would see the same messages and have same > control. I'd prefer to see the init logic in one place ... and since systemd does not yet rule the world, the systemd .service files are not going to be that place. I've had some success in reducing the extent to which we run the init scripts directly, both in production (installed) code and in QA. So the pattern now is if an init script needs to be run we'll use systemctl if that seems appropriate, else fall back to the init scripts. This works much better with Restart=yes in the mix. I've also had some success recovering the messages that QA is expecting (from the journal) and this is all in a single wrapper, so it does not pollute hundreds of QA scripts, beyond changing $sudo $PCP_RC_DIR/pmfoo start to _service pmfoo start More work and testing needed, but I'm moving to a place where the init scripts work correctly with or without systemd. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#15046): https://groups.io/g/pcp/message/15046 View All Messages In Topic (5): https://groups.io/g/pcp/topic/4255730 Mute This Topic: https://groups.io/mt/4255730?uid=174580 New Topic: https://groups.io/g/pcp/post -=-=- pcp mailing list [email protected] https://groups.io/g/pcp/messages -=-=- Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580 Group Home: https://groups.io/g/pcp Contact Group Owner: [email protected] Terms of Service: https://groups.io/static/tos Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy -=-=-=-=-=-=-=-=-=-=-=-