Commit 28473d5d authored by ale's avatar ale

Add systemd unit file

parent dfe6253c
Pipeline #389 passed with stages
in 51 seconds
[Unit]
Description=Cgroups metrics exporter
[Service]
User=nobody
ExecStart=/usr/bin/cgroups-exporter
Restart=always
RestartSec=3
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
[Install]
WantedBy=multi-user.target
......@@ -2,7 +2,7 @@ Source: cgroups-exporter
Section: admin
Priority: optional
Maintainer: ale <ale@incal.net>
Build-Depends: debhelper (>= 9), dh-golang, golang-go
Build-Depends: debhelper (>= 9), dh-systemd, dh-golang, golang-go
Standards-Version: 3.9.5
Package: cgroups-exporter
......
......@@ -5,7 +5,7 @@ export DH_GOPKG := git.autistici.org/ale/cgroups-exporter
export DH_GOLANG_EXCLUDES := vendor
%:
dh $@ --buildsystem=golang --with=golang
dh $@ --buildsystem=golang --with=golang --with=systemd
......
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