summaryrefslogtreecommitdiff
blob: 1a32a07bbc4db30c0cf708ac32a0763b10873fc6 (plain)
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
[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