Adding unitfile

This commit is contained in:
Jan Wagner 2023-01-23 09:17:27 +00:00
parent cacafc832c
commit a009193ed0
2 changed files with 15 additions and 0 deletions

1
debian/rules vendored
View file

@ -63,6 +63,7 @@ binary-indep: build install
dh_installdocs
dh_installexamples samples/*
dh_installinit -- defaults 99 01
dh_installsystemd --no-enable
dh_link
dh_compress
dh_fixperms

14
debian/service vendored Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=monitoring a system via ps-like commands
[Service]
Environment=PIDFILE=/var/run/ps-watcher.pid
EnvironmentFile=-/etc/default/ps-watcher
ExecStart=/usr/sbin/ps-watcher -c $CONFIG --daemon $DAEMON_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Type=notify
[Install]
WantedBy=multi-user.target