Closed chaos-adept closed 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
start.sh
script should be fixed, and linked to autorun