Created
August 30, 2015 06:45
-
-
Save pkern/34f18a23c366aa3b536b to your computer and use it in GitHub Desktop.
systemd unit for cups-connector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Google CloudPrint CUPS connector | |
After=org.cups.cupsd.service | |
Requires=org.cups.cupsd.service | |
[Service] | |
Restart=always | |
TimeoutStartSec=0 | |
RuntimeDirectory=cups-connector | |
RuntimeDirectoryMode=0755 | |
# groupadd -r cups-connector | |
# useradd -r -s /usr/bin/nologin -M -g cups-connector -d /srv/cups-connector cups-connector | |
User=cups-connector | |
ProtectSystem=full | |
ProtectHome=yes | |
PrivateTmp=yes | |
NoNewPrivileges=yes | |
ExecStart=/srv/cups-connector/connector -config-filename=/srv/cups-connector/cups-connector.config.json -logtostderr | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment