Autostart Datei startet nicht

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
BinAufGoogle
Beiträge: 1
Registriert: 19.02.2021 21:28:08

Autostart Datei startet nicht

Beitrag von BinAufGoogle » 19.02.2021 21:35:55

Hallo, ich habe mir heute eine Autostart datei erstellt für einen Bungeecord Server. Da gibts halt ein Problem die Datei will nicht gestartet werden. Ich habe folgende Befehle ausgeführt:

Code: Alles auswählen

systemctl enable

Code: Alles auswählen

service bungee start

Code: Alles auswählen

In der Datei steht Folgendes:

[Unit]
Description=Bungee
After=network.target

[Service]
ExecStart=Ordner1/start.sh
Type=forking
Restart=always
RestartSec=15
WorkingDirectory=ordner
User=root

[Install]
 WantedBy=multi-user.target
Ich bekomme immer diesen Fehler:

Code: Alles auswählen

Feb 19 15:23:23 rs-zap434221-1 sshd[749]: Failed password for root from 198.23.228.254 port 60450 ssh2
Feb 19 15:23:24 rs-zap434221-1 sshd[749]: Received disconnect from 198.23.228.254 port 60450:11: Bye Bye [preauth]
Feb 19 15:23:24 rs-zap434221-1 sshd[749]: Disconnected from authenticating user root 198.23.228.254 port 60450 [preauth]
Feb 19 15:23:26 rs-zap434221-1 sshd[771]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=104.131.89.163  user=root
Feb 19 15:23:28 rs-zap434221-1 sshd[771]: Failed password for root from 104.131.89.163 port 58708 ssh2
Feb 19 15:23:29 rs-zap434221-1 sshd[771]: Received disconnect from 104.131.89.163 port 58708:11: Bye Bye [preauth]
Feb 19 15:23:29 rs-zap434221-1 sshd[771]: Disconnected from authenticating user root 104.131.89.163 port 58708 [preauth]
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: bungee.service: Service RestartSec=15s expired, scheduling restart.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: bungee.service: Scheduled restart job, restart counter is at 16.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit bungee.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: Stopped Bungee.
-- Subject: A stop job for unit bungee.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit bungee.service has finished.
--
-- The job identifier is 1039 and the job result is done.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: Starting Bungee...
-- Subject: A start job for unit bungee.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit bungee.service has begun execution.
--
-- The job identifier is 1039.
Feb 19 15:23:31 rs-zap434221-1 systemd[773]: bungee.service: Failed to execute command: Exec format error
Feb 19 15:23:31 rs-zap434221-1 systemd[773]: bungee.service: Failed at step EXEC spawning /home/Haupt/bungee/Bungee/start.sh: Exec format error
-- Subject: Process /home/Haupt/bungee/Bungee/start.sh could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /home/Haupt/bungee/Bungee/start.sh could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: bungee.service: Control process exited, code=exited, status=203/EXEC
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit bungee.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: bungee.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit bungee.service has entered the 'failed' state with result 'exit-code'.
Feb 19 15:23:31 rs-zap434221-1 systemd[1]: Failed to start Bungee.
-- Subject: A start job for unit bungee.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit bungee.service has finished with a failure.

Benutzeravatar
jph
Beiträge: 914
Registriert: 06.12.2015 15:06:07
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Greven/Westf.

Re: Autostart Datei startet nicht

Beitrag von jph » 19.02.2021 22:19:49

Ich weiß nicht, was bungee ist, aber in der Logausgabe finde ich

Code: Alles auswählen

Failed password for root from 198.23.228.254 port 60450 ssh2
root darf sich normalerweise nicht per ssh einloggen. man sshd_config, Option PermitRootLogin, dessen Default prohibit-password ist. Ich empfehle Public-Key-Authentication und forced-commands-only.

tijuca
Beiträge: 196
Registriert: 22.06.2017 22:12:20

Re: Autostart Datei startet nicht

Beitrag von tijuca » 20.02.2021 05:54:37

BinAufGoogle hat geschrieben: ↑ zum Beitrag ↑
19.02.2021 21:35:55

Code: Alles auswählen

...
ExecStart=Ordner1/start.sh
...
Wo auch immer der Startpunkt für diese relative Pfadangabe ist ... systemd wird einen anderen Pfad benutzen.

Antworten