Commit be64a239 authored by godog's avatar godog

debian: ship systemd unit file

parent 93677f1f
Pipeline #5096 passed with stages
in 5 minutes and 20 seconds
......@@ -5,9 +5,11 @@ export DH_GOLANG_EXCLUDES = vendor
export DH_GOLANG_INSTALL_ALL = 1
%:
dh $@ --buildsystem=golang --with=golang,systemd
dh $@ --buildsystem=golang --with=golang
override_dh_install:
rm -fr $(CURDIR)/debian/tabacco/usr/share/gocode
dh_install
override_dh_installinit:
dh_installinit --name tabacco-agent
[Unit]
Description=Backup Agent
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/tabacco agent
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
User=root
Group=tabacco
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
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