File openhab5.service of Package openhab5

[Unit]
Description=openHAB 5 - empowering the smart home
Documentation=https://www.openhab.org/docs/
Documentation=https://community.openhab.org
Wants=network-online.target
After=network-online.target

[Service]
Environment=OPENHAB_HOME=/usr/share/openhab4
Environment=OPENHAB_CONF=/etc/openhab5
Environment=OPENHAB_RUNTIME=/usr/share/openhab5/runtime
Environment=OPENHAB_USERDATA=/var/lib/openhab5
Environment=OPENHAB_LOGDIR=/var/log/openhab5
Environment=OPENHAB_STARTMODE=daemon
EnvironmentFile=-/etc/default/openhab5

User=openhab
Group=openhab

WorkingDirectory=/usr/share/openhab5
ExecStart=/usr/share/openhab5/runtime/bin/karaf ${OPENHAB_STARTMODE}
ExecStop=/usr/share/openhab5/runtime/bin/karaf stop

SuccessExitStatus=0 143
RestartSec=5
Restart=on-failure
TimeoutStopSec=120

LimitNOFILE=102642

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by