]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Allow cupsd daemon to exit on idle
authorFedericoYundt <FedericoYundt@users.noreply.github.com>
Wed, 18 Apr 2018 07:40:59 +0000 (08:40 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Apr 2018 07:40:59 +0000 (08:40 +0100)
When using socket activation cups daemon can safely exit on idle and be automatically started when it's needed. Using Restart=always prevent this behavior and causes cups daemon constantly restarting itself instead of exiting. Users reported[1] that Restart=on-failure was enough to fix issues[2] so Restart=always may be unnecessary and harmful.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861470
[2] https://github.com/apple/cups/issues/5263

scheduler/org.cups.cupsd.service.in

index 50faa39601b49e97f57dfd5d43a8cdd0db0bd3e4..f2afa11243c14c78439c037a94944f278393cc3f 100644 (file)
@@ -5,7 +5,7 @@ Documentation=man:cupsd(8)
 [Service]
 ExecStart=@sbindir@/cupsd -l
 Type=simple
-Restart=always
+Restart=on-failure
 
 [Install]
 Also=org.cups.cupsd.socket org.cups.cupsd.path