# cd /tmp
# wget https://github.com/brutella/hkknx-pu...x_amd64.tar.gz
# tar -xzf hkknx-1.0.0_linux_amd64.tar.gz
# mv ./hkknx /usr/bin
# systemctl daemon-reload
# /usr/bin/hkknx -db /usr/hkknx_database
# nano /etc/systemd/system/hkknx.service
# wget https://github.com/brutella/hkknx-pu...x_amd64.tar.gz
# tar -xzf hkknx-1.0.0_linux_amd64.tar.gz
# mv ./hkknx /usr/bin
# systemctl daemon-reload
# /usr/bin/hkknx -db /usr/hkknx_database
# nano /etc/systemd/system/hkknx.service
# Contents of /etc/systemd/system/myservice.service
[Unit]
Description=hkknx Service
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/hkknx
[Install]
WantedBy=multi-user.target
[Unit]
Description=hkknx Service
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/hkknx
[Install]
WantedBy=multi-user.target
# systemctl enable hkknx.service
# systemctl start hkknx.service
# systemctl status hkknx.service
# systemctl start hkknx.service
# systemctl status hkknx.service
● hkknx.service - hkknx Service
Loaded: loaded (/etc/systemd/system/hkknx.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Tue 2020-05-19 12:11:24 CEST; 30s ago
Process: 915 ExecStart=/usr/bin/hkknx (code=exited, status=0/SUCCESS)
Main PID: 915 (code=exited, status=0/SUCCESS)
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Service RestartSec=100ms expired, scheduling restart. Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Scheduled restart job, restart counter is at 5.
Mai 19 12:11:24 smarthome systemd[1]: Stopped hkknx Service.
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Start request repeated too quickly.
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Failed with result 'start-limit-hit'.
Mai 19 12:11:24 smarthome systemd[1]: Failed to start hkknx Service.
Loaded: loaded (/etc/systemd/system/hkknx.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Tue 2020-05-19 12:11:24 CEST; 30s ago
Process: 915 ExecStart=/usr/bin/hkknx (code=exited, status=0/SUCCESS)
Main PID: 915 (code=exited, status=0/SUCCESS)
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Service RestartSec=100ms expired, scheduling restart. Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Scheduled restart job, restart counter is at 5.
Mai 19 12:11:24 smarthome systemd[1]: Stopped hkknx Service.
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Start request repeated too quickly.
Mai 19 12:11:24 smarthome systemd[1]: hkknx.service: Failed with result 'start-limit-hit'.
Mai 19 12:11:24 smarthome systemd[1]: Failed to start hkknx Service.
Und da fang es an, wie sollte der hkknx.service bei Debian aussehen so dass hkknx automatisch mit systemstart startet ohne dieser Fehler?
Danke voraus für eure Hilfe.
EDIT:
brutella hat recht gehabt, richtiges eintrag in der hkknx.service wäre
# Contents of /etc/systemd/system/myservice.service
[Unit]
Description=hkknx Service
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/hkknx -db /usr/hkknx_database
[Install]
WantedBy=multi-user.target
[Unit]
Description=hkknx Service
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/hkknx -db /usr/hkknx_database
[Install]
WantedBy=multi-user.target


Notfalls paar Euro mehr nehmen. Aber das hebt dann wie gesagt die Implementierung von allen anderen App.
Einen Kommentar schreiben: