Discussion:
Bug#849401: restart silently fails
Add Reply
Daniel Pocock
2016-12-26 17:20:02 UTC
Reply
Permalink
Raw Message
Package: apcupsd
Version: 3.14.12-1.1
Severity: serious


apcupsd is correctly configured and running on my machine.

I decided to restart it by typing:

$ sudo systemctl restart apcupsd


and the command didn't report any errors.

Looking at the output of the 'ps' command, I couldn't find apcupsd running.

I grepped /var/log/daemon.log and found the message


apcupsd[10324]: A copy of the daemon is still running. If you just
stopped it,
apcupsd[10324]: please wait about 5 seconds for it to shut down.


Maybe the "stop" action should wait for it to really stop? Not
stopping/restart correctly could impact upgrades, so I've marked the bug
serious.

Regards,

Daniel
Francesco Poli
2017-01-03 21:40:02 UTC
Reply
Permalink
Raw Message
On Mon, 26 Dec 2016 18:15:20 +0100 Daniel Pocock wrote:

[...]
Post by Daniel Pocock
apcupsd[10324]: A copy of the daemon is still running. If you just
stopped it,
apcupsd[10324]: please wait about 5 seconds for it to shut down.
Maybe the "stop" action should wait for it to really stop? Not
stopping/restart correctly could impact upgrades, so I've marked the bug
serious.
[...]

Hello apcupsd maintainer(s),
this package is scheduled for auto-removal from testing on
January, the 24th, as stated on its tracker page [1].

[1] https://tracker.debian.org/pkg/apcupsd

Please fix this RC bug soon!

If apcupsd is auto-removed from testing, it won't have a chance to
re-enter stretch, due to the soft freeze (which will begin shortly: on
January, the 5th) [2].

[2] https://lists.debian.org/debian-devel-announce/2016/12/msg00000.html

Thanks for your time.
Bye!


P.S.: I am Cc-ing the bug submitter and the author of the last NMUs.
--
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
Daniel Pocock
2017-01-06 10:10:01 UTC
Reply
Permalink
Raw Message
Post by Francesco Poli
[...]
Post by Daniel Pocock
apcupsd[10324]: A copy of the daemon is still running. If you
just stopped it, apcupsd[10324]: please wait about 5 seconds
for it to shut down.
Maybe the "stop" action should wait for it to really stop?
Not stopping/restart correctly could impact upgrades, so I've
marked the bug serious.
[...]
Post by Francesco Poli
Please fix this RC bug soon!
Hello again, I performed some tests, but I failed to reproduce this
bug.
Is anyone able to reproduce the issue on current Debian testing?
How long does it take for your apcupsd daemon to shutdown?

My UPS uses SNMP signalling, I wonder if that makes the daemon shut
down more slowly.
# service apcupsd restart # service apcupsd status ●
apcupsd.service - LSB: Starts apcupsd daemon Loaded: loaded
man:systemd-sysv-generator(8) Process: 24604
ExecStop=/etc/init.d/apcupsd stop (code=exited, status=0/SUCCES
Process: 24610 ExecStart=/etc/init.d/apcupsd start (code=exited,
/system.slice/apcupsd.service └─24620 /sbin/apcupsd
Jan 05 09:06:28 $HOSTNAME systemd[1]: Starting LSB: Starts apcupsd
daemon... Jan 05 09:06:28 $HOSTNAME apcupsd[24610]: Starting UPS
Started LSB: Starts apcupsd daemon. Jan 05 09:06:28 $HOSTNAME
apcupsd[24620]: apcupsd 3.14.14 (31 May 2016) debian star Jan 05
09:06:28 $HOSTNAME apcupsd[24620]: NIS server startup succeeded
# systemctl restart apcupsd # systemctl status apcupsd ●
apcupsd.service - LSB: Starts apcupsd daemon Loaded: loaded
man:systemd-sysv-generator(8) Process: 25726
ExecStop=/etc/init.d/apcupsd stop (code=exited, status=0/SUCCES
Process: 25733 ExecStart=/etc/init.d/apcupsd start (code=exited,
/system.slice/apcupsd.service └─25740 /sbin/apcupsd
Jan 05 09:50:12 $HOSTNAME systemd[1]: Starting LSB: Starts apcupsd
daemon... Jan 05 09:50:12 $HOSTNAME apcupsd[25733]: Starting UPS
Started LSB: Starts apcupsd daemon. Jan 05 09:50:12 $HOSTNAME
apcupsd[25740]: apcupsd 3.14.14 (31 May 2016) debian star Jan 05
09:50:12 $HOSTNAME apcupsd[25740]: NIS server startup succeeded
Francesco Poli
2017-01-06 10:10:02 UTC
Reply
Permalink
Raw Message
Post by Francesco Poli
[...]
Post by Daniel Pocock
apcupsd[10324]: A copy of the daemon is still running. If you just
stopped it,
apcupsd[10324]: please wait about 5 seconds for it to shut down.
Maybe the "stop" action should wait for it to really stop? Not
stopping/restart correctly could impact upgrades, so I've marked the bug
serious.
[...]
Post by Francesco Poli
Please fix this RC bug soon!
Hello again,
I performed some tests, but I failed to reproduce this bug.

Is anyone able to reproduce the issue on current Debian testing?


# service apcupsd restart
# service apcupsd status
● apcupsd.service - LSB: Starts apcupsd daemon
Loaded: loaded (/etc/init.d/apcupsd; generated; vendor preset: enabled)
Active: active (running) since Thu 2017-01-05 09:06:28 CET; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 24604 ExecStop=/etc/init.d/apcupsd stop (code=exited, status=0/SUCCES
Process: 24610 ExecStart=/etc/init.d/apcupsd start (code=exited, status=0/SUCC
Tasks: 3 (limit: 4915)
CGroup: /system.slice/apcupsd.service
└─24620 /sbin/apcupsd

Jan 05 09:06:28 $HOSTNAME systemd[1]: Starting LSB: Starts apcupsd daemon...
Jan 05 09:06:28 $HOSTNAME apcupsd[24610]: Starting UPS power management: apcupsd.
Jan 05 09:06:28 $HOSTNAME systemd[1]: Started LSB: Starts apcupsd daemon.
Jan 05 09:06:28 $HOSTNAME apcupsd[24620]: apcupsd 3.14.14 (31 May 2016) debian star
Jan 05 09:06:28 $HOSTNAME apcupsd[24620]: NIS server startup succeeded

# systemctl restart apcupsd
# systemctl status apcupsd
● apcupsd.service - LSB: Starts apcupsd daemon
Loaded: loaded (/etc/init.d/apcupsd; generated; vendor preset: enabled)
Active: active (running) since Thu 2017-01-05 09:50:12 CET; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 25726 ExecStop=/etc/init.d/apcupsd stop (code=exited, status=0/SUCCES
Process: 25733 ExecStart=/etc/init.d/apcupsd start (code=exited, status=0/SUCC
Tasks: 3 (limit: 4915)
CGroup: /system.slice/apcupsd.service
└─25740 /sbin/apcupsd

Jan 05 09:50:12 $HOSTNAME systemd[1]: Starting LSB: Starts apcupsd daemon...
Jan 05 09:50:12 $HOSTNAME apcupsd[25733]: Starting UPS power management: apcupsd.
Jan 05 09:50:12 $HOSTNAME systemd[1]: Started LSB: Starts apcupsd daemon.
Jan 05 09:50:12 $HOSTNAME apcupsd[25740]: apcupsd 3.14.14 (31 May 2016) debian star
Jan 05 09:50:12 $HOSTNAME apcupsd[25740]: NIS server startup succeeded
--
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
Loading...