On Fri, 13 Jan 2017 00:17:16 +0100 Christian Hofstaedtler wrote:

> * Francesco Poli <invernom...@paranoici.org> [170113 00:15]:
> > On Wed, 11 Jan 2017 23:17:47 +0100 Christian Hofstaedtler wrote:
> > > Suggestions on the actual implementation also welcome ;-)
> > 
> > I am no systemd expert, but, after reading a bit of the
> > systemd.service(5) man page, I would think about adding another
> > ExecStartPre= (before the already existing one) and using it to run a
> > script that fails in case ISCONFIGURED is not "yes"...
> > 
> > But of course, I am not sure that making the "service apcupsd restart"
> > command fail during the configuration of a newly installed apcupsd
> > package is a good idea...
> 
> Exactly.
> I think this is basically the "between a rock and a hard place"
> situation.
> 
> Do it right for new installs and break upgrades or do it right for
> upgrades and new installs get the silly treatment.

Mmmmh, that's unfortunate.

In the meanwhile, I performed a super-quick test for your proposed NMU:
it seems to work, although I have to admit I hadn't had the time to
test everything...   :-(

Obviously, the important feedback is Daniel's one: Daniel, please test
thoroughly and let us know.
Thanks for your time!


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpggwgiaGcrh.pgp
Description: PGP signature

Reply via email to