mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add hass.service for systemd
This commit is contained in:
parent
cc2cfb8afb
commit
e012b05cee
12
hass/hass.service
Normal file
12
hass/hass.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Home Assistant
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/hass
|
||||
ExecStart=/usr/local/bin/hass -c /opt/hass
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user