Now starts properly at boot with the Galileo's systemd.

This commit is contained in:
2018-11-22 03:02:45 +00:00
parent cbc6991385
commit 35cdf5823f
2 changed files with 25 additions and 0 deletions

12
robot.service Normal file
View File

@@ -0,0 +1,12 @@
#! /bin/sh
[Unit]
Description=Robot daemon
[Service]
Type=forking
PIDFile=/var/run/robot.pid
WorkingDirectory=/home/root/Robotd
ExecStart=/etc/init.d/robot start
ExecReload=/etc/init.d/robot restart
ExecStop=/etc/init.d/robot stop
[Install]
WantedBy=multi-user.target