Skip to content

Instantly share code, notes, and snippets.

@thhart
Created November 11, 2021 22:47
Show Gist options
  • Save thhart/47e34a9d2a9812311a7a27620aaa9a71 to your computer and use it in GitHub Desktop.
Save thhart/47e34a9d2a9812311a7a27620aaa9a71 to your computer and use it in GitHub Desktop.
dcc systemd startup file
[Unit]
Description=DCC (Distributed Checksum Clearinghouses) interface daemon
[Service]
Type=forking
PermissionsStartOnly=true
RuntimeDirectory=dcc
ExecStart=/var/dcc/libexec/rcDCC start
ExecStop=/var/dcc/libexec/rcDCC stop
User=root
Group=root
Nice=1
#DCC writes pid file with "-" at the beginning which confuses systemd
#PIDFile=/run/dcc/dccifd.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment