Hello,
With the power of the new rpi2 I would like to use it a single box for my home automation and home cinema of course
I’m using Domoticz for home automation. I try to compile it everythgin works. I can lauch it from the cli and use it with browers. Unfortunately, I am new to systemd. I try to write my own script .service to automatically launch domoticz at startup… but it fails.
Here is the file /etc/systemd/system/domoticz.service :
[Unit]
Description=Domoticz
[Service]
Type=forking
User=root
ExecStart=/dev-domoticz/domoticz -daemon -www 8080 -sslwww 443
PIDFile=/var/run/domoticz.pid
[Install]
WantedBy=default.target
Then :
systemctl daemon-reload
And :
systemctl start domoticz.service
Here are the output :
root@osmc ~ # systemctl status domoticz.service
* domoticz.service - Domoticz
Loaded: loaded (/etc/systemd/system/domoticz.service; disabled)
Active: failed (Result: timeout) since Wed 2015-04-15 04:54:33 CEST; 1min 10s ago
Process: 10018 ExecStart=/dev-domoticz/domoticz -daemon -www 8080 -sslwww 443 (code=killed, signal=TERM)
Apr 15 04:53:03 osmc domoticz[10018]: 2015-04-15 04:53:03.769 Domoticz V2.2361 (c)2012-2015 GizMoCuz
Apr 15 04:53:03 osmc domoticz[10018]: Domoticz is starting up....
Apr 15 04:53:03 osmc domoticz[10018]: Domoticz running...
Apr 15 04:53:03 osmc domoticz[10018]: 2015-04-15 04:53:03.769 System: Raspberry Pi
Apr 15 04:53:03 osmc domoticz[10018]: 2015-04-15 04:53:03.770 Startup Path: /dev-domoticz/
Apr 15 04:53:03 osmc domoticz[10018]: domoticz: Domoticz is starting up....
Apr 15 04:53:03 osmc domoticz[10018]: domoticz: Domoticz running...
Apr 15 04:54:33 osmc systemd[1]: domoticz.service start operation timed out. Terminating.
Apr 15 04:54:33 osmc systemd[1]: Failed to start Domoticz.
Apr 15 04:54:33 osmc systemd[1]: Unit domoticz.service entered failed state.
Maybe am I missing something in the config file ? I look several website and documentation about systemd and custom .service files but I can’t find any solution
Anyone knows ?