Adding unitfile
This commit is contained in:
parent
cacafc832c
commit
a009193ed0
1
debian/rules
vendored
1
debian/rules
vendored
|
@ -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
14
debian/service
vendored
Normal 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
|
Loading…
Reference in a new issue