### Start Stop Status and File Locations

openHAB Commands
openHAB Start / Stop / Status
If installed using apt-get, then
$sudo service openhab start
$sudo service openhab stop
$sudo service openhab restart
$sudo service openhab status
For UBuntu use
$sudo systemctl start openhab
$sudo systemctl stop openhab
$sudo systemctl restart openhab
$sudo systemctl status openhab
Else use path to the openhab script and call with parameter, like:
$sudo /etc/init.d/openhab start
$sudo /etc/init.d/openhab stop
$sudo /etc/init.d/openhab restart
$sudo /etc/init.d/openhab status
Output Examples:
$sudo /etc/init.d/openhab stop
[....] Stopping openhab (via systemctl): openhab.service
. ok
$sudo /etc/init.d/openhab start
[ ok ] Starting openhab (via systemctl): openhab.service.
$sudo /etc/init.d/openhab status
? openhab.service - LSB: OpenHAB Daemon
Loaded: loaded (/etc/init.d/openhab)
Active: active (running) since Tue 2016-03-15 14:32:33 CET; 12s ago
Process: 1742 ExecStop=/etc/init.d/openhab stop (code=exited, status=0/SUCCESS)
Process: 1811 ExecStart=/etc/init.d/openhab start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openhab.service
+-1824 /usr/bin/java -Dosgi.clean=true -Declipse.ignoreApp=true -D...
Mar 15 14:32:33 58 openhab[1811]: Starting Open Home Automation Bus Daemon:.
Mar 15 14:32:33 58 systemd[1]: Started LSB: OpenHAB Daemon.
View Logfile Ongoing
$tail -f /opt/openhab/logs/openhab.log
File Locations
Service configuration: /opt/openhab
Site configuration: /opt/openhab
Log files: /var/log/openhab
Userdata like rrd4j databases: /var/lib/openhab
openHAB engine, addons and /webapps folder: /opt/openhab
Access openHAB Sitemap
Example openHAB running on Raspberry Pi with IP 192.168.0.58 and sitemap gpioled:
URL is http://192.168.0.58:8080/openhab.app?sitemap=gpioled

Changed: , Category: WebApps openHAB, File: T6C228M1685.htm, ID: 1685