From e012b05ceeb29f3498a1ca36293904ad9e56fbc3 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 19 Oct 2018 07:41:22 +0800 Subject: [PATCH] add hass.service for systemd --- hass/hass.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hass/hass.service diff --git a/hass/hass.service b/hass/hass.service new file mode 100644 index 0000000..6bdc486 --- /dev/null +++ b/hass/hass.service @@ -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