* 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.

  -ch

Reply via email to