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

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

[Install]
WantedBy=multi-user.target