Closed ozzy-simpson closed 7 years ago
Nevermind, I figured it out myself! Here's the code if anyone needs it. Add it to /etc/init/cachetmonitor.conf
, shutdown your server, and boot it up again - it should work.
description "Cachet Monitor"
start on startup
env USER=root
env HOME=/root
setuid root
setgid root
chdir /root
script
exec cachet-monitor -c /cachet-monitor.json --immediate
end script
Hi, where did you put the cachet-monitor executable? In /root?
I'm an Ubuntu noob, so forgive me. Is there an upstart script for 14.04? The systemd one provided only works with 15 and up (I believe).