mirror of
https://github.com/YunoHost-Apps/domoticz_ynh.git
synced 2024-09-03 18:26:17 +02:00
Update systemd.service
Problem System Alive Checker does not work. The "ping'ed" adresses are always shown as OFF. Solution From the domoticz documentation: When running Domoticz without root (recommended), you need to add the correct socket capabilities for this to function properly and restart domoticz (otherwise it will fail silently!): $ sudo setcap -v cap_net_raw+eip <full qualified name of domoticz executable> So, I added the capability "cap_net_raw=+eip" in systemd.service R Status Code finished. Tested on my own instance.
This commit is contained in:
parent
1bf2f63425
commit
a02c7f4d1c
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ Group=__APP__
|
||||||
ExecStart=__FINALPATH__/domoticz -www __PORT__ -sslwww 0 -log /var/log/__APP__/__APP__.log -loglevel normal,status
|
ExecStart=__FINALPATH__/domoticz -www __PORT__ -sslwww 0 -log /var/log/__APP__/__APP__.log -loglevel normal,status
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
PermissionsStartOnly=true
|
PermissionsStartOnly=true
|
||||||
ExecStartPre=setcap 'cap_net_bind_service=+ep' __FINALPATH__/domoticz
|
ExecStartPre=setcap 'cap_net_bind_service=+ep cap_net_raw=+eip' __FINALPATH__/domoticz
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=1m
|
RestartSec=1m
|
||||||
#StandardOutput=null
|
#StandardOutput=null
|
||||||
|
|
Loading…
Add table
Reference in a new issue