OpenMediaVault-Plugin-Developers / openmediavault-domoticz

openmediavault plugin for domoticz
0 stars 0 forks source link

unable to stop domoticz service #1

Open ben33880 opened 7 years ago

ben33880 commented 7 years ago

hi, Just installing your plugin, i do an update of domoticz with domoticz gui. Since, i cant stop the service with "service domoticz stop", i must kill the process. Is it a bug or its me ?

Thanks.

ryecoaaron commented 7 years ago

I don't use domoticz so I'm not really sure but I wouldn't recommend updating from the domoticz gui. The domoticz package in the omv-extras repo is the latest stable version. When you updated, you are installing a beta version.

ben33880 commented 7 years ago

Ok but i need to be on beta channel !! when u update with the gui on beta, its the "updatebeta.sh" script that update domoticz :

Perhaps it can help !!

ryecoaaron commented 7 years ago

The update doesn't like the systemd unit file I put in the package. Not sure when I will have time to look at this.

ben33880 commented 7 years ago

command "service domoticz start" works, but not "service domoticz stop"

ben33880 commented 7 years ago

i saw in the wiki of domoticz : Systemd Alternative

Open the systemd configuration file :

vi /etc/systemd/system/domoticz.service

[Unit] Description=domoticz_service [Service] User=domoticz Group=domoticz ExecStart=/home/domoticz/domoticz/domoticz -www 80 -sslwww 443 WorkingDirectory=/home/domoticz

give the right to open priviliged ports

   ExecStartPre=setcap 'cap_net_bind_service=+ep' /home/domoticz/domoticz/domoticz
   Restart=on-failure
   RestartSec=1m
   #StandardOutput=null

[Install] WantedBy=multi-user.target

ryecoaaron commented 7 years ago

It may not work with the update but the unit file included with the package works with the version it includes - https://github.com/OpenMediaVault-Plugin-Developers/domoticz/blob/master/debian/domoticz.service Since you are manually updating, you can manually update your service file to look like that. Like I said before, I will look at this when I have more time but it is low priority.