Added hal.service file for systemd and updated the run script to support forground execution
This commit is contained in:
parent
5e3b103815
commit
e57d62471b
2 changed files with 69 additions and 7 deletions
16
hal.service
Normal file
16
hal.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue