summarylogtreecommitdiffstats
path: root/openhab4.service
blob: b5a8ac145a5e0ae4b3a6f4ffc8bac565acf56ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=The openHAB 4 Home Automation Bus Solution
Documentation=http://docs.openhab.org
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=openhab4
Group=openhab4
WorkingDirectory=/usr/share/openhab4
EnvironmentFile=/etc/default/openhab4
ExecStart=/usr/share/openhab4/karaf_wrapper.sh server
ExecStop=/usr/share/openhab4/karaf_wrapper.sh stop
Restart=on-failure

[Install]
WantedBy=multi-user.target