openHABian hassle-free openHAB Setup

First of all, thanks for openHABian. :smiley:

I have two slight additions: frontail for homegar and syslog. It is so comfortable not having to ssh anywhere and cat / grep the logs.

I added the following files to /etc/systemd/system

frontail-homegear.service:

[Unit]
Description=Frontail homegear instance, reachable at http://%H:9002
Documentation=https://github.com/mthenw/frontail
Documentation=https://github.com/openhab/openhabian/issues/28
After=openhab2.service

[Service]
Type=simple
ExecStart=/usr/bin/frontail -p 9002 --ui-highlight -l 2000 -n 200 /var/log/homegear/homegear.log
Restart=always
User=homegear
Group=homegear
Environment=PATH=/usr/bin/
Environment=NODE_ENV=production
WorkingDirectory=/usr/bin/

[Install]
WantedBy=multi-user.target

frontail-syslog.service:

[Unit]
Description=Frontail syslog instance, reachable at http://%H:10001
Documentation=https://github.com/mthenw/frontail
Documentation=https://github.com/openhab/openhabian/issues/28
After=openhab2.service

[Service]
Type=simple
ExecStart=/usr/bin/frontail -p 10001 --ui-highlight -l 2000 -n 200 /var/log/syslog
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin/
Environment=NODE_ENV=production
WorkingDirectory=/usr/bin/

[Install]
WantedBy=multi-user.target

From my point of view, this is useful, if you share the opinion, you may include it into openHABian.
Maybe a frontail-expert could adjust a bit, i just simply copied the original frontail service.

1 Like