Hello @ all,
das ist ja schon eine feine Sache. Hat auch mit dem crontab gut funktioniert und Pi startet jede Nacht neu.
Leider habe ich auch das Problem das der ioBroker nicht mehr automatisch mit startet. Ich habe bereits verschiedenes kontrolliert was hier, und in anderen Foren darüber geschrieben steht doch leider ohne Erfolg:(
Hardware Pi3b, Jessy with Pixels
root@raspberrypi:~# node -v
v6.12.2
root@raspberrypi:~# nodejs -v
v6.12.2
Während der Fehlersuche bekomme ich z.B folgende Meldungen:
root@raspberrypi:~# systemctl status iobroker.service
Unit iobroker.service could not be found.
ioBroker.sh:
#!/bin/bash
### BEGIN INIT INFO
# Provides: iobroker.sh
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts ioBroker
# Description: starts ioBroker
### END INIT INFO
(( EUID )) && echo .You need to have root privileges.. && exit 1
PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
NODECMD=@@node
IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
RETVAL=0
IOBROKERUSER=@@user
start() {
export IOBROKER_HOME=/opt/iobroker
echo -n "Starting ioBroker"
sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD start
RETVAL=$?
}
stop() {
echo -n "Stopping ioBroker"
sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD stop
RETVAL=$?
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: iobroker {start|stop|restart}"
exit 1
;;
esac
exit $RETVAL
VISUDO:
GNU nano 2.7.4 Datei: /etc/sudoers.tmp
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Weiß jmd. noch rat? Mit der Anleitung von Seite 1 komme ich nicht klar