Code: Alles auswählen
[Unit]
Description=Wird ausgeführt bei boot
[Service]
User=user11
Type=simple
ExecStart=/usr/bin/boot.sh
[Install]
WantedBy=multi-user.target
Code: Alles auswählen
#!/bin/bash
touch /home/user11/system_l.txt &&
cd /home/user11/vitoop &&
docker-compose up -d &&
chromium --start-fullscreen http://localhost:8080 &
sudo systemctl status boot.service ergibt:
Code: Alles auswählen
● boot.service - Wird ausgeführt bei boot
Loaded: loaded (/etc/systemd/system/boot.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2021-05-04 11:21:46 CEST; 2min 12s ago
Process: 334 ExecStart=/usr/bin/boot.sh (code=exited, status=0/SUCCESS)
Main PID: 334 (code=exited, status=0/SUCCESS)
Mai 04 11:21:45 debian systemd[1]: Started Wird ausgeführt bei boot.
Mai 04 11:21:46 debian systemd[1]: boot.service: Succeeded.
Code: Alles auswählen
bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: Datei oder Verzeichnis nicht gefunden