On Tue, Dec 13, 2016 at 11:47:32AM -0500, Daniel Echeverry wrote:
> thanks for your report, Unfortunately I can't reproduce this issue,
> Could you confirm from which glances version are you trying to update?
>From /var/lib/dpkg.log:
2016-12-13 12:27:44 upgrade glances:all 2.6.2-2 2.7.1.1-1
So I was just upgrading from the previous glances version in unstable,
2.6.2-2. But I think the upgrade might be broken longer, Since this is
the first upgrade of this package on my system:
2016-11-12 14:49:01 install glances:all <none> 2.6.2-2
Have you tried upgrading (using sysvinit as init) without running
glances server? The problem is, i believe, in the initscript, which gets
called as /etc/init.d/glances reload on upgrade, but exits with an error
code if the glances server is configured not to run. I have attached a
patch for the initscript, which fixes the return code from
/etc/init.d/glances reload by ignoring the failure to stop the glances
server, when none should be running.
Regards,
Ingo
--
╭─╮ Kennedy's Lemma:
╭│───╮ If you can parse Perl, you can solve the Halting Problem.
│╰─│─╯
╰──╯ http://www.perlmonks.org/?node_id=663393
--- a/etc/init.d/glances 2016-12-14 11:14:04.000000000 +0100
+++ b/etc/init.d/glances 2016-12-14 11:13:43.000000000 +0100
@@ -118,7 +118,12 @@ case "$1" in
;;
*)
# Failed to stop
- log_end_msg 1
+ if [ "$RUN" != "true" ]; then
+ log_action_msg "disabled by /etc/default/$NAME"
+ log_end_msg 0
+ else
+ log_end_msg 1
+ fi
;;
esac
;;