spaceshipyard / mars-rover-dispatcher

Apache License 2.0
1 stars 1 forks source link

Configure daemon on the DigitalOcean #50

Closed chaos-adept closed 5 years ago

chaos-adept commented 5 years ago

start.sh script should be fixed, and linked to autorun

chaos-adept commented 5 years ago

Daemon configured:

for reference - https://wiki.ubuntu.com/SystemdForUpstartUsers

root@mars-rover:~/mars-rover-dispatcher# sudo systemctl enable mars-rover
Created symlink /etc/systemd/system/multi-user.target.wants/mars-rover.service → /lib/systemd/system/mars-rover.service.
[Unit]
Description=Job that runs the mars rover dispatacher
 
[Service]
Type=forking
Environment=statedir=/root/mars-rover-dispatcher
ExecStart=/bin/bash /root/mars-rover-dispatcher/example.start.sh start
ExecStopPost=/bin/bash /root/mars-rover-dispatcher/example.start.sh stop
 
[Install]
WantedBy=multi-user.target