core/script/home-assistant@.service

16 lines
296 B
INI
Raw Normal View History

2015-09-18 12:18:49 +00:00
# This is a simple service file for systems with systemd to tun HA as user.
2015-09-03 20:06:50 +00:00
#
[Unit]
2015-09-18 12:18:49 +00:00
Description=Home Assistant for %i
2015-09-03 20:06:50 +00:00
After=network.target
[Service]
Type=simple
2015-09-18 12:18:49 +00:00
User=%i
WorkingDirectory=%h
ExecStart=/usr/bin/hass --config %h/.homeassistant/
SendSIGKILL=no
2015-09-03 20:06:50 +00:00
[Install]
WantedBy=multi-user.target