Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #168717 > unrolled thread
| Started by | Jesper Dybdal <jd-debian@dybdal.dk> |
|---|---|
| First post | 2016-06-08 22:30 +0200 |
| Last post | 2016-06-09 21:00 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
Unattended-upgrades do not seem to be able to restart services Jesper Dybdal <jd-debian@dybdal.dk> - 2016-06-08 22:30 +0200
Re: Unattended-upgrades do not seem to be able to restart services Wolfgang Karall <lists+debian-user@karall-edv.at> - 2016-06-09 11:50 +0200
Re: Unattended-upgrades do not seem to be able to restart services Jesper Dybdal <jd-debian@dybdal.dk> - 2016-06-09 21:00 +0200
| From | Jesper Dybdal <jd-debian@dybdal.dk> |
|---|---|
| Date | 2016-06-08 22:30 +0200 |
| Subject | Unattended-upgrades do not seem to be able to restart services |
| Message-ID | <rHSgV-4S1-5@gated-at.bofh.it> |
I am running up-to-date Jessie (8.5) with unattended-upgrades to provide security upgrades. But it seems that its attempts to restart services fail. Early this morning unattended-upgrades upgraded "libexpat1". At the end of unattended-upgrades-dpkg.log, I see: >Services to be restarted: >Skipping dbus.service... >systemctl restart apache2.service cron.service >Log ended: 2016-06-08 04:36:36 However, apache2 and cron have not been restarted - they've been running since June 5: >root 622 0.0 0.0 27504 2860 ? Ss Jun05 0:00 /usr/sbin/cron -f >root 748 0.0 0.1 80220 4928 ? Ss Jun05 0:02 /usr/sbin/apache2 -k start >www-data 751 0.0 0.1 828208 5908 ? Sl Jun05 0:13 /usr/sbin/apache2 -k start >www-data 752 0.0 0.1 500520 4688 ? Sl Jun05 0:13 /usr/sbin/apache2 -k start If I manually execute the exact same systemctl command that unattended-upgrades said that it used, it works fine: # systemctl restart apache2.service cron.service Now they have actually been restarted: >root 27126 0.0 0.0 27504 2856 ? Ss 22:04 0:00 /usr/sbin/cron -f >root 27162 0.0 0.1 80220 5020 ? Ss 22:04 0:00 /usr/sbin/apache2 -k start >www-data 27165 0.0 0.1 369368 4452 ? Sl 22:04 0:00 /usr/sbin/apache2 -k start >www-data 27166 0.0 0.1 369368 4452 ? Sl 22:04 0:00 /usr/sbin/apache2 -k start I can find nothing in the logs about problems at that time (2016-06-08 04:36). Can someone tell me what I've done wrong? -- Jesper Dybdal, Denmark. http://www.dybdal.dk (in Danish).
[toc] | [next] | [standalone]
| From | Wolfgang Karall <lists+debian-user@karall-edv.at> |
|---|---|
| Date | 2016-06-09 11:50 +0200 |
| Message-ID | <rI4L8-4zR-33@gated-at.bofh.it> |
| In reply to | #168717 |
[Multipart message — attachments visible in raw view] — view raw
Hello, On 16-06-08 22:11:33, Jesper Dybdal wrote: > At the end of unattended-upgrades-dpkg.log, I see: > > >Services to be restarted: > >Skipping dbus.service... > >systemctl restart apache2.service cron.service > >Log ended: 2016-06-08 04:36:36 > > However, apache2 and cron have not been restarted [..] It's not unattended-upgrades, what you're seeing is the output of needrestart, which is configured by default to only showing what it would do, but not actually restarting anything. Take a look at the configuration below /etc/needrestart. Cheers Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Jesper Dybdal <jd-debian@dybdal.dk> |
|---|---|
| Date | 2016-06-09 21:00 +0200 |
| Message-ID | <rIdln-1OU-13@gated-at.bofh.it> |
| In reply to | #168731 |
On Thu, 9 Jun 2016 11:39:36 +0200, Wolfgang Karall
<lists+debian-user@karall-edv.at> wrote:
>It's not unattended-upgrades, what you're seeing is the output of
>needrestart, which is configured by default to only showing what it
>would do, but not actually restarting anything.
>
>Take a look at the configuration below /etc/needrestart.
Thanks! I've now added
$nrconf{restart} = 'a';
and expect that to help.
--
Jesper Dybdal, Denmark.
http://www.dybdal.dk (in Danish).
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web