Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Kein autostart debian stretch

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Kein autostart debian stretch

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chrram last edited by

      cd /etc/init.d

      root@HomeServer:/etc/init.d# iobroker stop

      module.js:327

      throw err;

      ^

      Error: Cannot find module '/etc/init.d/node_modules/iobroker.js-controller/iobroker.js'

      at Function.Module._resolveFilename (module.js:325:15)

      at Function.Module._load (module.js:276:25)

      at Function.Module.runMain (module.js:441:10)

      at startup (node.js:140:18)

      at node.js:1043:3

      root@HomeServer:/etc/init.d# ./iobroker.sh start

      Starting ioBrokerStarting iobroker controller daemon…

      iobroker controller daemon started. PID: 1722

      root@HomeServer:/etc/init.d#

      root@HomeServer:/etc/init.d# update-rc.d iobroker.sh defaults

      insserv: script iobroker.dos: service iobroker.sh already provided!

      root@HomeServer:/etc/init.d#reboot

      das steht im journal

      systemd[1]: Starting ioBroker server task…

      Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart}

      aber komme nicht aufs webif nur wenn ich das script manuel starte

      /opt/iobroker$ iobroker list instances

      system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin

      system.adapter.discovery.0 : discovery - enabled

      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators last edited by

        @chrram:

        der tvheadend Server startet bei mir auch voll automatisch `
        Was ist das?

        1 Reply Last reply Reply Quote 0
        • C
          chrram last edited by

          @Homoran:

          @chrram:

          der tvheadend Server startet bei mir auch voll automatisch Was ist das?
          Ein sat Server wollte nur damit sagen das andere Autostart Funktionen gehen

          Gesendet von iPhone mit Tapatalk

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators last edited by

            Habe als Linux-noob gerade versucht das bei ubuntu-users nachzuvollziehen.

            Habe ich das richtig verstanden, dass diese Installation evtl. einiges umbiegt?

            1 Reply Last reply Reply Quote 0
            • C
              chrram last edited by

              @Homoran:

              Habe als Linux-noob gerade versucht das bei ubuntu-users nachzuvollziehen.

              Habe ich das richtig verstanden, dass diese Installation evtl. einiges umbiegt? `
              Meinst du tvheadend ? Das hatte ich danach erst installiert vorher ging iobroker auch nicht

              Gesendet von iPhone mit Tapatalk

              1 Reply Last reply Reply Quote 0
              • paul53
                paul53 last edited by

                @chrram:

                das steht im journal

                systemd[1]: Starting ioBroker server task…

                Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart} `
                Dann wurde ioBroker wohl nicht automatisch gestartet. Für das "Weshalb" reichen meine Linux-Kenntnisse nicht 😞

                1 Reply Last reply Reply Quote 0
                • C
                  chrram last edited by

                  das kommt wenn ich iobroker.service per hand starte

                  [b]sudo systemctl start iobroker.service[/b]
                  Warning: iobroker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
                  Job for iobroker.service failed because the control process exited with error code. See "systemctl status iobroker.service" and "journalctl -xe" for details.
                  christopher@HomeServer:[b]/etc/systemd/system$ journalctl -xe
                  [/b]Jan 02 15:21:31 HomeServer sudo[1527]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/nano iobroker.service
                  Jan 02 15:21:31 HomeServer sudo[1527]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:21:41 HomeServer sudo[1527]: pam_unix(sudo:session): session closed for user root
                  Jan 02 15:21:44 HomeServer sudo[1529]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl status iobroker.service
                  Jan 02 15:21:44 HomeServer sudo[1529]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:21:44 HomeServer sudo[1529]: pam_unix(sudo:session): session closed for user root
                  Jan 02 15:21:55 HomeServer sudo[1532]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl start iobroker.service
                  Jan 02 15:21:55 HomeServer sudo[1532]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:21:55 HomeServer systemd[1]: Starting ioBroker server task...
                  -- Subject: Unit iobroker.service has begun start-up
                  -- Defined-By: systemd
                  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                  --
                  -- Unit iobroker.service has begun starting up.
                  Jan 02 15:21:55 HomeServer iobroker.sh[1535]: Usage: iobroker {start|stop|restart}
                  Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Control process exited, code=exited status=1
                  Jan 02 15:21:55 HomeServer systemd[1]: Failed to start ioBroker server task.
                  -- Subject: Unit iobroker.service has failed
                  -- Defined-By: systemd
                  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                  --
                  -- Unit iobroker.service has failed.
                  --
                  -- The result is failed.
                  Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Unit entered failed state.
                  Jan 02 15:21:55 HomeServer systemd[1]: iobroker.service: Failed with result 'exit-code'.
                  Jan 02 15:21:55 HomeServer sudo[1532]: pam_unix(sudo:session): session closed for user root
                  Jan 02 15:22:00 HomeServer sudo[1538]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl status iobroker.service
                  Jan 02 15:22:00 HomeServer sudo[1538]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:22:00 HomeServer sudo[1538]: pam_unix(sudo:session): session closed for user root
                  Jan 02 15:22:03 HomeServer sudo[1541]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/nano iobroker.service
                  Jan 02 15:22:03 HomeServer sudo[1541]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:22:09 HomeServer sudo[1541]: pam_unix(sudo:session): session closed for user root
                  Jan 02 15:22:11 HomeServer sudo[1543]: christopher : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/systemctl start iobroker.service
                  Jan 02 15:22:11 HomeServer sudo[1543]: pam_unix(sudo:session): session opened for user root by christopher(uid=0)
                  Jan 02 15:22:11 HomeServer systemd[1]: Starting ioBroker server task...
                  -- Subject: Unit iobroker.service has begun start-up
                  -- Defined-By: systemd
                  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                  --
                  -- Unit iobroker.service has begun starting up.
                  Jan 02 15:22:11 HomeServer iobroker.sh[1546]: Usage: iobroker {start|stop|restart}
                  Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Control process exited, code=exited status=1
                  Jan 02 15:22:11 HomeServer systemd[1]: Failed to start ioBroker server task.
                  -- Subject: Unit iobroker.service has failed
                  -- Defined-By: systemd
                  -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
                  --
                  -- Unit iobroker.service has failed.
                  --
                  -- The result is failed.
                  Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Unit entered failed state.
                  Jan 02 15:22:11 HomeServer systemd[1]: iobroker.service: Failed with result 'exit-code'.
                  Jan 02 15:22:11 HomeServer sudo[1543]: pam_unix(sudo:session): session closed for user root
                  
                  

                  @paul53:

                  @chrram:

                  das steht im journal

                  systemd[1]: Starting ioBroker server task…

                  Jan 02 14:35:07 HomeServer iobroker.sh[957]: Usage: iobroker {start|stop|restart} Dann wurde ioBroker wohl nicht automatisch gestartet. Für das "Weshalb" reichen meine Linux-Kenntnisse nicht :(
                  danke dir trozdem vielmals für deine jetzige hilfe

                  1 Reply Last reply Reply Quote 0
                  • ruhr70
                    ruhr70 last edited by

                    Mit der Kombination des Tipps von Paul53 und der iobroker.sh Datei von Homoran hat es jetzt funktioniert. 🙂

                    http://forum.iobroker.net/viewtopic.php … 20#p109170

                    @paul53:

                    update-rc.d iobroker.sh defaults
                    reboot
                    ```` `  
                    

                    http://forum.iobroker.net/viewtopic.php … 54#p108996

                    @Homoran:

                    MIt dieser klappt es bei mir

                    Ich musste sie auf .txt umbenennen! Bitte wieder eine .sh daraus machen `

                    Der Einfachhalthalber habe ich HFS auf einem Windows Rechner gestartet (einfacher Webserver, über den man Dateien per http:// bereitstellen kann). http://www.rejetto.com/hfs/?f=dl

                    Es ist keine Installation erforderlich. Die hfs.exe als Admin starten und den Ordner hinzufügen, in der die gewünschte Datei liegt. Dort liegt die iobroker.sh von Homoran (vorher von .txt in .sh geändert)

                    Natürlich gibt es zig andere Wege die Datei auf den Linux Rechner zu bekommen.

                    Dann folgender Ablauf über die Konsole:

                    sudo su
                    cd /home
                    wget http://[ip des windows Rechner]/[Ordnername]/iobroker.sh
                    mv /home/iobroker.sh /etc/init.d/iobroker.sh
                    ls /etc/init.d/iobroker.sh -l
                    chmod +x /etc/init.d/iobroker.sh
                    ls /etc/init.d/iobroker.sh -l
                    reboot
                    
                    

                    update-rc.d iobroker.sh defaults hatte ich vor dem Reboot wohl nicht ausgeführt. :?

                    beim ls +l sah man, dass die kopierte Datei nicht die Rechte zum Ausführen hat (das x).

                    Mit der vorhandenen Datei (iobroker.sh) hatten alle Versuche mit update-rc.d iobroker.sh defaults im Verzeichnis /etc/init.d nicht funktioniert (mit Rechte ergänzen, usw.).

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators last edited by

                      Ich bin geistig gerade woanders, aber:
                      @ruhr70:

                      Mit der Kombination des Tipps von Paul53 und der iobroker.sh Datei von Homoran hat es jetzt funktioniert `
                      genau dafür hatte ich sie gepostet.

                      Was ist jetzt an euren anders als bei meiner - und vor allem warum.

                      Wenn jemand, der sich damit auskennt, das beantworten kann, kommen wir vielleicht auch der Ursache auf den Grund.

                      Danke erst mal an alle die hier mitkämpfen!

                      Gruß

                      Rainer

                      1 Reply Last reply Reply Quote 0
                      • kmxak
                        kmxak Most Active last edited by

                        also ich hatte wie bereits in mehreren Beiträgen geschrieben auch das Problem.

                        Stretch unter root (su root) installiert und kein autostart.

                        Ich musste sudo nachinstallieren und habe dann root als sudoer eingefügt sowie hatte ich was mit der iobroker.sh irgendwas gemacht sowie nochmals irgendein install script ausgeführt.

                        ! ````
                        #!/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=/usr/bin/node
                        IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
                        RETVAL=0
                        IOBROKERUSER=root

                        ! 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
                        ! ````

                        1 Reply Last reply Reply Quote 0
                        • C
                          chrram last edited by

                          also ich habe root in der /etc/sudoers oder sollte er noch woanders drinen sein

                          User privilege specification

                          root ALL=(ALL:ALL) ALL

                          denke das es evt was mit der

                          systemctl start iobroker.service zu tun hat das Script funktioniert ja so

                          Job for iobroker.service failed because the control process exited with error code. See "systemctl status iobroker.service" and "journalctl -xe" for details.

                          1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 last edited by

                            @chrram:

                            root@HomeServer:/etc/init.d# iobroker stop

                            module.js:327

                            throw err;

                            ^

                            Error: Cannot find module '/etc/init.d/node_modules/iobroker.js-controller/iobroker.js' `
                            Das würde mich stutzig machen, da es nichts mit dem Skript /etc/init.d/iobroker.sh zu tun hat, sondern vom Skript /usr/bin/iobroker ausgelöst wird. Woher kommt die Referenz auf das Verzeichnis /etc/init.d/node_modules ?
                            @chrram:

                            root@HomeServer:/etc/init.d# ./iobroker.sh start

                            Starting ioBrokerStarting iobroker controller daemon…

                            iobroker controller daemon started. PID: 1722

                            root@HomeServer:/etc/init.d#

                            root@HomeServer:/etc/init.d# update-rc.d iobroker.sh defaults

                            insserv: script iobroker.dos: service iobroker.sh already provided! `
                            Offenbar wird ioBroker vom Skript /etc/init.d/iobroker.sh gestartet. Dass in der Meldung von update-rc.d iobroker.dos auftaucht macht mich ebenfalls stutzig. Was sagt die Ausgabe von ?

                            ls -l /etc/rc?.d/*iob*
                            
                            1 Reply Last reply Reply Quote 0
                            • C
                              chrram last edited by

                              ls -l /etc/rc?.d/*iob*
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc0.d/K01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc1.d/K01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc2.d/S01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc3.d/S01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc4.d/S01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc5.d/S01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                              lrwxrwxrwx 1 root root 18 Jan  1 15:23 /etc/rc6.d/K01iobroker -> ../init.d/iobroker
                              lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 last edited by

                                Die Einträge mit ../init.d/iobroker gehören nicht dahin ! Auch die Datei /etc/init.d/iobroker ist zuviel !

                                Versuche mal als user root

                                update-rc.d -f iobroker remove
                                ls -l /etc/rc?.d/*iob*
                                

                                EDIT: So sieht es auf meinem RPi aus:

                                root@rpihm:~# ls -l /etc/rc?.d/*iob*
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • C
                                  chrram last edited by

                                  @paul53:

                                  Die Einträge mit ../init.d/iobroker gehören nicht dahin ! Auch die Datei /etc/init.d/iobroker ist zuviel !

                                  Versuche mal als user root

                                  update-rc.d -f iobroker remove
                                  ls -l /etc/rc?.d/*iob*
                                  

                                  EDIT: So sieht es auf meinem RPi aus:

                                  root@rpihm:~# ls -l /etc/rc?.d/*iob*
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Apr  7  2016 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  
                                  ```` `  
                                  

                                  so sieht meine jetzt auch aus

                                   ls -l /etc/rc?.d/*iob*
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc0.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc1.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc2.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc3.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc4.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc5.d/S01iobroker.sh -> ../init.d/iobroker.sh
                                  lrwxrwxrwx 1 root root 21 Jan  2 14:33 /etc/rc6.d/K01iobroker.sh -> ../init.d/iobroker.sh
                                  
                                  

                                  dann ein reboot aber kein autostart

                                  1 Reply Last reply Reply Quote 0
                                  • paul53
                                    paul53 last edited by

                                    @chrram:

                                    dann ein reboot aber kein autostart `
                                    Doch, genau mittels iobroker.sh soll das Killen und der Autostart von ioBroker erfolgen. Jedenfalls funktioniert es auf meinem RPi so (ohne Eingriffe meinerseits).

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      chrram last edited by

                                      @paul53:

                                      @chrram:

                                      dann ein reboot aber kein autostart Doch, genau mittels iobroker.sh soll das Killen und der Autostart von ioBroker erfolgen. Jedenfalls funktioniert es auf meinem RPi so (ohne Eingriffe meinerseits).
                                      bei mir leider nicht wenn ich wieder die iobroker.service starte kommt der gleiche fehler wie vohere 😞 solangsam verzweile ich 😢

                                      1 Reply Last reply Reply Quote 0
                                      • paul53
                                        paul53 last edited by

                                        @chrram:

                                        solangsam verzweile ich `
                                        Verständlich, aber nun bin ich auch mit meinem Latein am Ende. Starten und Stoppen funktioniert aber mit iobroker.sh ?

                                        cd /etc/init.d
                                        ./iobroker.sh start
                                        ./iobroker.sh stop
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          chrram last edited by

                                          @paul53:

                                          @chrram:

                                          solangsam verzweile ich `
                                          Verständlich, aber nun bin ich auch mit meinem Latein am Ende. Starten und Stoppen funktioniert aber mit iobroker.sh ?

                                          cd /etc/init.d
                                          ./iobroker.sh start
                                          ./iobroker.sh stop
                                          ```` `  
                                          

                                          Alle 3 funktionen gehen start webif lässt sich aufrufen stop und restart. deshalb wundert mich das ob es evt an der tvheadend.service oder so liegt

                                          root@HomeServer:/usr/bin# cd /etc/init.d
                                          root@HomeServer:/etc/init.d# ./iobroker.sh start
                                          Starting ioBrokerStarting iobroker controller daemon...
                                          iobroker controller daemon started. PID: 1611
                                          root@HomeServer:/etc/init.d# ./iobroker.sh stop
                                          Stopping ioBrokerStopping iobroker controller daemon...
                                          iobroker controller daemon stopped.
                                          Exit code for "killall.sh": 0
                                          root@HomeServer:/etc/init.d# ./iobroker.sh restart
                                          Stopping ioBrokeriobroker controller daemon is not running
                                          Starting ioBrokerStarting iobroker controller daemon...
                                          iobroker controller daemon started. PID: 1684
                                          
                                          

                                          /etc/systemd/system/iobroker.service

                                          #
                                          
                                          # Start ioBroker Daemon
                                          
                                          #
                                          
                                          # /etc/systemd/system/iobroker.service
                                          
                                          # Invoking scripts to start/shutdown ioBroker
                                          
                                          [Unit]
                                          
                                          Description=ioBroker server task
                                          
                                          Requires=network.target
                                          
                                          [Service]
                                          
                                          #User=roker
                                          
                                          User=root
                                          
                                          Type=forking
                                          
                                          RemainAfterExit=yes
                                          
                                          Restart=no
                                          
                                          ExecStart=/etc/init.d/iobroker.sh
                                          
                                          [Install]
                                          
                                          WantedBy=multi-user.target
                                          
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 last edited by

                                            @chrram:

                                            /etc/systemd/system/iobroker.service `
                                            Das Kommando existiert auf meinem RPi nicht.

                                            root@rpihm:/etc/systemd/system# ls -l
                                            total 52
                                            -rw-r--r-- 1 root root 1551 Sep 18  2015 autologin@.service
                                            drwxr-xr-x 2 root root 4096 Mar 18  2016 bluetooth.target.wants
                                            lrwxrwxrwx 1 root root   37 Mar 18  2016 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
                                            lrwxrwxrwx 1 root root   40 Mar 18  2016 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
                                            lrwxrwxrwx 1 root root   37 Apr  7  2016 default.target -> /lib/systemd/system/multi-user.target
                                            lrwxrwxrwx 1 root root   34 Mar 18  2016 dhcpcd5 -> /lib/systemd/system/dhcpcd.service
                                            drwxr-xr-x 2 root root 4096 Apr  7  2016 dhcpcd.service.d
                                            drwxr-xr-x 2 root root 4096 Apr  7  2016 getty.target.wants
                                            drwxr-xr-x 2 root root 4096 Mar 18  2016 getty@tty1.service.d
                                            drwxr-xr-x 2 root root 4096 Jun  5  2016 halt.target.wants
                                            drwxr-xr-x 2 root root 4096 Apr  7  2016 multi-user.target.wants
                                            drwxr-xr-x 2 root root 4096 Jun  5  2016 poweroff.target.wants
                                            drwxr-xr-x 2 root root 4096 Mar 18  2016 rc-local.service.d
                                            drwxr-xr-x 2 root root 4096 Jun  5  2016 reboot.target.wants
                                            drwxr-xr-x 2 root root 4096 Mar 18  2016 sockets.target.wants
                                            lrwxrwxrwx 1 root root   31 Mar 18  2016 sshd.service -> /lib/systemd/system/ssh.service
                                            -rwxr-xr-x 1 root root  357 Apr  7  2016 susvd.service
                                            drwxr-xr-x 2 root root 4096 Mar 18  2016 sysinit.target.wants
                                            lrwxrwxrwx 1 root root   35 Mar 18  2016 syslog.service -> /lib/systemd/system/rsyslog.service
                                            root@rpihm:/etc/systemd/system#
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            863
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            19
                                            83
                                            17758
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo