Code: Select all
pi@raspberrypi:~/habridge/data$ ls -l
total 8
-rw-r--r-- 1 root root 801 Jan 27 21:34 device.db
-rw------- 1 pi pi 924 Jan 29 20:12 habridge.config
content of config:
Code: Select all
[Unit]
Description=HA Bridge
Wants=network.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/java -jar -Dconfig.file=/home/pi/habridge/data/habridge.config /home/pi/habridge/ha-bridge-.jar
[Install]
WantedBy=multi-user.target
Code: Select all
pi@raspberrypi:~/habridge$ ls -l
total 29828
-rw-r--r-- 1 pi pi 7956528 Dec 19 2014 apache-maven-3.2.5-bin.tar.gz
drwxr-xr-x 2 pi pi 4096 Jan 27 21:34 data
-rw-r--r-- 1 pi pi 7632345 Jan 27 22:42 ha-bridge-4.1.0.jar.1
-rw-r--r-- 1 pi pi 7296493 Nov 19 21:13 ha-bridge-ARCHIVE.jar
-rw-r--r-- 1 pi pi 7632345 Jan 27 22:42 ha-bridge.jar
-rwxrwxrwx 1 pi pi 2226 Jan 29 19:54 habridge-log.txt
-rw-r--r-- 1 root root 248 Jan 29 21:34 habridge.service
-rwxr--r-- 1 pi pi 256 Jan 29 20:29 starthabridge.sh
*edit*
ow yeah, also tried following this once:
(after i had problems i was this)
this is why its just "habridge" and not "habridg4.1.0"We need to stop the habridge service (if running):
$ sudo systemctl stop habridge
Navigate to where you installed ha-bridge, (use your folder name if not “habridge”):
$ cd habridge
Then rename the existing ha-bridge.jar to something you’ll remember or understand:
$ mv ha-bridge.jar ha-bridge-ARCHIVE.jar
Download the release you wish to update to, (where {VERSION} is the version number):
$ wget https://github.com/bwssytems/ha-bridge/ ... RSION}.jar
Now rename the downloaded file, (where {VERSION} is the version number):
$ mv ha-bridge-{VERSION}.jar ha-bridge.jar
Lastly we need to restart the habridge service:
$ sudo systemctl start habridge