Skip to content

Instantly share code, notes, and snippets.

@pkern
Created August 30, 2015 06:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pkern/34f18a23c366aa3b536b to your computer and use it in GitHub Desktop.
systemd unit for cups-connector
[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