Re: Great 022 mystery solved ... now how to fix

"Ken McDonell" <[email protected]> Sat, 28 Jan 2017 08:12:45 +1100
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
G'day Dave,

On 28/01/17 04:33, Dave Brolley wrote:
> ...
> Would it be feasible to temporarily set Restart=no while the qa suite is
> running and to restore the previous setting at the end? C are would have
> to be taken for interrupted test runs.

I did consider this, but the risk of botching things seems just to high, 
and a priori it does not seem to be the "right thing" (tm) to do.

At the moment I'm exploring a wrapper around all uses of $PCP_RC_DIR in 
the QA tests (and in the "pcp" script that is not installed as a systemd 
service) to use systemd/systemctl if appropriate, else run the script 
directly.

It would appear that
	$ systemctl stop pmcd
does not trigger a restart by systemd even when Restart=yes, so this 
would appear to be a safer way to stop pmcd without the potential race.

The first snag I've run into with this approach is that any output from 
these scripts goes to syslog rather than stdout and stderr, and our QA 
*.out files are riddled with lines like:

Waiting for pmcd to terminate ...
Starting pmcd ...
Starting pmlogger ...

and these are no longer present.  Dredging with journalctl is not 
looking particularly attractive, so I'm back in thinking about it mode.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#15044): https://groups.io/g/pcp/message/15044
View All Messages In Topic (3): 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
-=-=-=-=-=-=-=-=-=-=-=-