diff options
| author | Simon Rettberg | 2017-03-13 11:24:32 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2017-03-13 11:24:32 +0100 |
| commit | e2f6fe704223e15c1efc24c040bd68db06eace3d (patch) | |
| tree | 487ed6920280b20a667b2ca79a1d56e4b05bb67b /core/modules/cups/data/etc/systemd | |
| parent | Seems some files were given an extra shebang with c79dec3ba517967c09ef398b20d... (diff) | |
| download | mltk-e2f6fe704223e15c1efc24c040bd68db06eace3d.tar.gz mltk-e2f6fe704223e15c1efc24c040bd68db06eace3d.tar.xz mltk-e2f6fe704223e15c1efc24c040bd68db06eace3d.zip | |
[cups] Add prestart script that fixed config problems
CUPS < 2.0 requires the <DefaultPrinter> to be closed by
a </Printer> tag, while newer versions allow </DefaultPrinter>.
Patch the printers.conf if required.
Also makes sure the permissions of /etc/cups/* are somewhat sane.
Diffstat (limited to 'core/modules/cups/data/etc/systemd')
| -rw-r--r-- | core/modules/cups/data/etc/systemd/system/cups.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/cups/data/etc/systemd/system/cups.service b/core/modules/cups/data/etc/systemd/system/cups.service index 1c1e6305..a634804a 100644 --- a/core/modules/cups/data/etc/systemd/system/cups.service +++ b/core/modules/cups/data/etc/systemd/system/cups.service @@ -6,4 +6,5 @@ Before=graphical.target ConditionFileNotEmpty=/etc/cups/printers.conf [Service] +ExecStartPre=-/opt/openslx/scripts/systemd-cupsd_prestart ExecStart=/usr/sbin/cupsd -f |
