1
0
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:
kev 2018-10-19 07:41:22 +08:00
parent cc2cfb8afb
commit e012b05cee

12
hass/hass.service Normal file
View 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