forked from danielperna84/hass-configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hass-configurator.systemd
33 lines (30 loc) · 967 Bytes
/
hass-configurator.systemd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[Unit]
Description=HASS-Configurator
After=network.target
[Service]
Type=simple
User=homeassistant
# Some security related options.
# See https://www.freedesktop.org/software/systemd/man/systemd.exec.html for details.
# NoNewPrivileges=true
# ProtectSystem=true
# InaccessiblePaths=-/mnt -/media
# ReadOnlyPaths=/bin -/lib -/lib64 -/sbin
# PrivateTmp=true
# ProtectKernelTunables=true
# ProtectKernelModules=true
# ProtectControlGroups=true
# RestrictRealtime=true
# Set configuration options by specifying environment variables
# Environment=HC_LISTENIP=0.0.0.0
# Environment=HC_PORT=3218
# Environment=HC_GIT=false
# Environment=HC_ALLOWED_NETWORKS=192.168.1.0/24,127.0.0.1
# ...
# Set the path to your configurator.py location
WorkingDirectory=/etc/homeassistant
# You can also save your static options in a JSON formatted conf-file
ExecStart=/usr/bin/python3 /etc/homeassistant/configurator.py settings.conf
Restart=always
[Install]
WantedBy=multi-user.target