pcp
[Top] [All Lists]

Re: on systemd auto-restarting pmcd

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: on systemd auto-restarting pmcd
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Thu, 12 May 2016 14:37:33 -0400
Cc: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1538556524.46367135.1462834319185.JavaMail.zimbra@xxxxxxxxxx> (Nathan Scott's message of "Mon, 9 May 2016 18:51:59 -0400 (EDT)")
References: <20160509145510.GA23647@xxxxxxxxxx> <57310196.202@xxxxxxxxxxxxxxxx> <1538556524.46367135.1462834319185.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Nathan Scott <nathans@xxxxxxxxxx> writes:

> [...]  But anyway, this problematic interaction with QA could be
> resolved by the addition of common.qa code that provides
> _{disable,enable}_auto_restart() functions for use at the start/end
> of affected tests.  The plain text unit files are easily moved aside
> temporarily [...]

Yes, that would work, good idea.  And it may be even easier than that:
modern systemd lets individual clauses of unit files be overridden by
UNIT.d/FOO.conf files.  In theory, we could have a

/etc/systemd/system/pmcd.d/pcpqa.conf
        Restart=no

file.  It could even be packaged as part of the pcp-testsuite
subpackage.

- FChE

<Prev in Thread] Current Thread [Next in Thread>