diff --git a/scheduler/Makefile b/scheduler/Makefile index 590e873cf..57b169387 100644 --- a/scheduler/Makefile +++ b/scheduler/Makefile @@ -195,6 +195,7 @@ install-data: if test "x$(SYSTEMD_DIR)" != x; then \ echo Installing systemd configuration files...; \ $(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \ + $(INSTALL_DATA) system-cups.slice $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.path $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.service $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.socket $(BUILDROOT)$(SYSTEMD_DIR); \ diff --git a/scheduler/cups-lpdAT.service.in b/scheduler/cups-lpdAT.service.in index 5c7827340..88cbfcf1a 100644 --- a/scheduler/cups-lpdAT.service.in +++ b/scheduler/cups-lpdAT.service.in @@ -6,4 +6,5 @@ Documentation=man:cups-lpd(8) ExecStart=-@CUPS_SERVERBIN@/daemon/cups-lpd StandardInput=socket User=@CUPS_USER@ +Slice=system-cups.slice diff --git a/scheduler/cups.service.in b/scheduler/cups.service.in index 7a6831b31..72ca3f4d7 100644 --- a/scheduler/cups.service.in +++ b/scheduler/cups.service.in @@ -8,6 +8,7 @@ Requires=cups.socket ExecStart=@sbindir@/cupsd -l Type=notify Restart=on-failure +Slice=system-cups.slice @TIMEOUTSTARTSEC@ [Install] diff --git a/scheduler/system-cups.slice b/scheduler/system-cups.slice new file mode 100644 index 000000000..53ef2fa71 --- /dev/null +++ b/scheduler/system-cups.slice @@ -0,0 +1,3 @@ +[Unit] +Description=CUPS Slice +Documentation=man:cups(1)