diff --git a/callhome.service b/callhome.service new file mode 100644 index 0000000..27c5f5d --- /dev/null +++ b/callhome.service @@ -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 \ No newline at end of file