Add 'callhome.service'
This commit is contained in:
parent
305fa78714
commit
d74672fec4
14
callhome.service
Normal file
14
callhome.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Call Home
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/bin/mkdir -p /run/callhome
|
||||||
|
ExecStart=/usr/local/sbin/callhome.sh
|
||||||
|
Type=simple
|
||||||
|
PIDFile=/run/callhome/callhome.pid
|
||||||
|
Restart=on-failure
|
||||||
|
RestartPreventExitStatus=0 255
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
Loading…
x
Reference in New Issue
Block a user