Browse Source

Prevent services from being accidentally restarted by `needrestart`.

Because those services do not yet support being restarted.

Extended variable `$nrconf{override_rc}`, i.e. packages only reported to need
restart, but blacklisted from default/suggested automatic restarted with
`qubes-core-agent` and `qubes-gui-agent`.

See also `$nrconf{override_rc}`:
https://github.com/liske/needrestart/blob/10bd2db5e2d88370882cb74d729392f5a1389098/ex/needrestart.conf#L65

Thanks to @liske for helping with this.
https://github.com/liske/needrestart/issues/13#issuecomment-136804625
Patrick Schleizer 8 years ago
parent
commit
7dc99ee662
2 changed files with 5 additions and 0 deletions
  1. 3 0
      Makefile
  2. 2 0
      misc/50_qubes.conf

+ 3 - 0
Makefile

@@ -147,6 +147,9 @@ install-common:
 	install -D -m 0440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm
 	install -D -m 0644 misc/20_tcp_timestamps.conf $(DESTDIR)/etc/sysctl.d/20_tcp_timestamps.conf
 
+	install -d $(DESTDIR)/etc/needrestart/conf.d
+	install -D -m 0644 misc/50_qubes.conf $(DESTDIR)/etc/needrestart/conf.d/50_qubes.conf
+
 	install -d $(DESTDIR)/var/lib/qubes
 
 	install -D misc/xenstore-watch $(DESTDIR)/usr/bin/xenstore-watch-qubes

+ 2 - 0
misc/50_qubes.conf

@@ -0,0 +1,2 @@
+$nrconf{override_rc}->{q(^qubes-core-agent-linux)} = 0;
+$nrconf{override_rc}->{q(^qubes-gui-agent)} = 0;