The apcupsd developers answered to my report on their mailing list. See https://sourceforge.net/p/apcupsd/mailman/apcupsd- users/thread/CAKb_4nSxZCH_cFqXhb3N3t8ArFN_tn7ZiTTR5MCqBREDDiSyuQ%40mail.gmail.com/#msg37639690
At present time the only workaround it seems to be recompiling adding the sleep() call. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1967490 Title: systemd: apcupsd daemon parent exits before the child creates the pid file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apcupsd/+bug/1967490/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs