Commit b260d207 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We need to run dccifd as a service

parent 099a5f5c
all:
all: dccifd-service
tar xf dcc.tar.Z
cd dcc-2.3.167 && ./configure --bindir=/usr/bin --libexecdir=/usr/libexec --mandir=/usr/man --disable-dccm --disable-server
$(MAKE) -C dcc-2.3.167
$(MAKE) -C dcc-2.3.167 install
@echo "$$DCCIFD_SERVICE" > /lib/systemd/system/dccifd.service
systemctl enable dccifd.service
rm -rf dcc-2.3.167
dccifd-service:
define DCCIFD_SERVICE
[Unit]
Description=Distributed Checksum Clearinghouse Interface Daemon
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/libexec/dccifd -b
ExecStop=/bin/kill -TERM $$MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
endef
export DCCIFD_SERVICE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment