Hallo Forum,
ich habe jetzt nochmal aufgeräumt und SmarthomeNG neu installiert, weil das mit dem git nicht so ganz geklappt hat. Dabei habe ich mich an die Komplettanleitung gehalten.
Aber der Autostart klappt irgendwie nicht (BBB mit Debian 8). Ich finde auf meinem System jetzt folgende Dateien:
Da taucht der smarthome.service nun drei Mal auf und somit bin ich als Windows-Mensch wieder überfordert.
/etc/systemd/system/smarthome.service
/lib/systemd/system/smarthome.service laut Konplettanleitung
Was stimmt da jetzt nicht, dass er beim Reboot meines BBB den SmarthomeNG nicht startet?
Viele Grüße
Andi
ich habe jetzt nochmal aufgeräumt und SmarthomeNG neu installiert, weil das mit dem git nicht so ganz geklappt hat. Dabei habe ich mich an die Komplettanleitung gehalten.
Aber der Autostart klappt irgendwie nicht (BBB mit Debian 8). Ich finde auf meinem System jetzt folgende Dateien:
smarthome@ibbgateway:~$ sudo find / -name smarthome.*
/etc/systemd/system/multi-user.target.wants/smarthome.service
/etc/systemd/system/smarthome.service
/usr/local/smarthome.ng
/usr/local/smarthome.ng/etc/smarthome.conf.default
/usr/local/smarthome.ng/etc/smarthome.conf
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-30
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-02
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-01
/usr/local/smarthome.ng/var/log/smarthome.log
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-29
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-03
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-04
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-31
/usr/local/smarthome.ng/var/db/smarthome.db
/usr/local/smarthome.ng/bin/smarthome.py
/usr/local/smarthome.ng/examples/smarthome.service
/usr/local/smarthome.ng/examples/old/js/smarthome.min.js
/usr/local/smarthome.ng/examples/old/js/smarthome.js
/usr/local/smarthome/etc/smarthome.conf
/usr/local/smarthome/var/log/smarthome.log.2016-08-05
/usr/local/smarthome/var/log/smarthome.log
/usr/local/smarthome/var/db/smarthome.db
/usr/local/smarthome/bin/smarthome.py
/usr/local/smarthome/examples/smarthome.service
/usr/local/smarthome/examples/old/js/smarthome.min.js
/usr/local/smarthome/examples/old/js/smarthome.js
/var/cache/lightdm/dmrc/smarthome.dmrc
/var/www/html/smartVISU/pages/base/smarthome.py.html
/lib/systemd/system/smarthome.service
/etc/systemd/system/multi-user.target.wants/smarthome.service
/etc/systemd/system/smarthome.service
/usr/local/smarthome.ng
/usr/local/smarthome.ng/etc/smarthome.conf.default
/usr/local/smarthome.ng/etc/smarthome.conf
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-30
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-02
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-01
/usr/local/smarthome.ng/var/log/smarthome.log
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-29
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-03
/usr/local/smarthome.ng/var/log/smarthome.log.2016-08-04
/usr/local/smarthome.ng/var/log/smarthome.log.2016-07-31
/usr/local/smarthome.ng/var/db/smarthome.db
/usr/local/smarthome.ng/bin/smarthome.py
/usr/local/smarthome.ng/examples/smarthome.service
/usr/local/smarthome.ng/examples/old/js/smarthome.min.js
/usr/local/smarthome.ng/examples/old/js/smarthome.js
/usr/local/smarthome/etc/smarthome.conf
/usr/local/smarthome/var/log/smarthome.log.2016-08-05
/usr/local/smarthome/var/log/smarthome.log
/usr/local/smarthome/var/db/smarthome.db
/usr/local/smarthome/bin/smarthome.py
/usr/local/smarthome/examples/smarthome.service
/usr/local/smarthome/examples/old/js/smarthome.min.js
/usr/local/smarthome/examples/old/js/smarthome.js
/var/cache/lightdm/dmrc/smarthome.dmrc
/var/www/html/smartVISU/pages/base/smarthome.py.html
/lib/systemd/system/smarthome.service
/etc/systemd/system/smarthome.service
Code:
[Unit] Description=SmartHome.py After=eibd.service owserver.service [Service] ExecStart=/usr/bin/python3 /usr/local/smarthome/bin/smarthome.py --foreground User=smarthome Group=smarthome [Install] WantedBy=multi-user.target
Code:
[Unit] Description=SmartHomeNG daemon After=network.target [Service] Type=forking ExecStart=/usr/bin/python3 /usr/local/smarthome/bin/smarthome.py User=smarthome PIDFile=/usr/local/smarthome/var/run/smarthome.pid Restart=on-abort [Install] WantedBy=default.target
Viele Grüße
Andi
Kommentar