Skip to content

Commit 3aca5db

Browse files
committed
scheduler: add a systemd slice
From the systemd documentation[1]: > A slice unit is a concept for hierarchically managing resources of a group of processes. Benefits of collecting our two systemd services into a slice include * ease of configuring resource limits on the entire CUPS system, * ``systemctl status`` showing the CUPS units in an indented subtree, making it more organized, * and the possibility of viewing all interlaced logs from all of the CUPS daemons using ``journalctl -u system-cups.slice``. [1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.slice.html or ``man systemd.slice(5)``
1 parent 4bada6c commit 3aca5db

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Changes in CUPS v2.5b1 (TBA)
2222
- Added driver filter to web interface (Issue #848)
2323
- Added support for PAM modules password-auth and system-auth (Issue #892)
2424
- Added Docker support (Issue #929)
25+
- Added a systemd slice to the systemd services included with the scheduler
2526
- Added localizations for deprecated IPP attributes/options (Issue #1020)
2627
- Updated CUPS to require TLS support - OpenSSL, GNUTLS and LibreSSL are
2728
supported.

scheduler/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ install-data:
195195
if test "x$(SYSTEMD_DIR)" != x; then \
196196
echo Installing systemd configuration files...; \
197197
$(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \
198+
$(INSTALL_DATA) system-cups.slice $(BUILDROOT)$(SYSTEMD_DIR); \
198199
$(INSTALL_DATA) cups.path $(BUILDROOT)$(SYSTEMD_DIR); \
199200
$(INSTALL_DATA) cups.service $(BUILDROOT)$(SYSTEMD_DIR); \
200201
$(INSTALL_DATA) cups.socket $(BUILDROOT)$(SYSTEMD_DIR); \

scheduler/cups-lpdAT.service.in

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Documentation=man:cups-lpd(8)
66
ExecStart=-@CUPS_SERVERBIN@/daemon/cups-lpd
77
StandardInput=socket
88
User=@CUPS_USER@
9+
Slice=system-cups.slice
910

scheduler/cups.service.in

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Requires=cups.socket
88
ExecStart=@sbindir@/cupsd -l
99
Type=notify
1010
Restart=on-failure
11+
Slice=system-cups.slice
1112
@TIMEOUTSTARTSEC@
1213

1314
[Install]

scheduler/system-cups.slice

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Unit]
2+
Description=CUPS Slice
3+
Documentation=man:cups(1)

0 commit comments

Comments
 (0)