Added hal.service file for systemd and updated the run script to support forground execution

This commit is contained in:
Ziver Koc 2021-07-29 10:30:55 +01:00
parent 5e3b103815
commit e57d62471b
2 changed files with 69 additions and 7 deletions

16
hal.service Normal file
View file

@ -0,0 +1,16 @@
# This is a SystemD configuration for the Hal Server.
#
# To activate the service run:
# - sudo cp hal.service /lib/systemd/system/
# - sudo systemctl enable hal.service
#
[Unit]
Description=Hal Server
[Service]
Type=idle
ExecStart=/home/pi/repo/hal/run.sh --forground
[Install]
WantedBy=multi-user.target