diff options
Diffstat (limited to 'app-misc/openhab-bin/files')
-rw-r--r-- | app-misc/openhab-bin/files/openhab.env | 5 | ||||
-rw-r--r-- | app-misc/openhab-bin/files/openhab.service | 26 | ||||
-rw-r--r-- | app-misc/openhab-bin/files/openhab.tmpfiles | 8 |
3 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/openhab-bin/files/openhab.env b/app-misc/openhab-bin/files/openhab.env new file mode 100644 index 000000000000..2c68436c7e15 --- /dev/null +++ b/app-misc/openhab-bin/files/openhab.env @@ -0,0 +1,5 @@ +OPENHAB_HOME=/usr/share/openhab +OPENHAB_CONF=/etc/openhab +OPENHAB_RUNTIME=/usr/share/openhab/runtime +OPENHAB_USERDATA=/var/lib/openhab +OPENHAB_LOGDIR=/var/log/openhab diff --git a/app-misc/openhab-bin/files/openhab.service b/app-misc/openhab-bin/files/openhab.service new file mode 100644 index 000000000000..1a32a07bbc4d --- /dev/null +++ b/app-misc/openhab-bin/files/openhab.service @@ -0,0 +1,26 @@ +[Unit] +Description=openHAB - empowering the smart home +Documentation=https://www.openhab.org/docs/ +Documentation=https://community.openhab.org +Wants=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=/etc/env.d/50openhab +EnvironmentFile=-/etc/default/openhab + +User=openhab + +WorkingDirectory=/usr/share/openhab +ExecStart=openhab daemon +ExecStop=openhab stop + +SuccessExitStatus=0 143 +RestartSec=15 +Restart=on-failure +TimeoutStopSec=120 + +LimitNOFILE=102642 + +[Install] +WantedBy=multi-user.target diff --git a/app-misc/openhab-bin/files/openhab.tmpfiles b/app-misc/openhab-bin/files/openhab.tmpfiles new file mode 100644 index 000000000000..41292255957b --- /dev/null +++ b/app-misc/openhab-bin/files/openhab.tmpfiles @@ -0,0 +1,8 @@ +# OpenHAB, or rather jrxtx, a fork of rxtx used by OpenHAB, require write access to +# /run/lock to access devices on serial ports. +# See also +# - https://bugs.gentoo.org/416439 +# - https://bugs.gentoo.org/892517 + +#Type Path Mode User Group Age Argument +A+ /run/lock - - - - u:openhab:rwx |