rc.local service aktivierensudo nano /etc/systemd/system/rc-local.service
inahlt halt wie folgt abfüllen:
[Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target
inhalt aus folgender datei wird bei servicestart ausgeführt (erste zeile #!/bin/bash)
/etc/rc.local
file ausführbar machenchmod +x /etc/rc.local
service aktivierensystemctl enable rc-local
script bei boot ausführen
script erstellen welches bei start ausgeführt wird und mit chmod +x ausführbar machennano /usr/local/bin/firstboot.sh
beispielinhalt
#!/bin/bash #domainjoin sleep 30s cp /etc/sssd/sssd.conf /etc/sssd/sssd.conf.bak realm leave sleep 15s echo password | realm join example.com -U svc-domainjoin mv /etc/sssd/sssd.conf.bak /etc/sssd/sssd.conf #autostarte deaktivieren sed -i '/firstboot/d' /etc/rc.local #neustart reboot
in rc.local muss dan dieses script noch hinterlegt werden. mein rc.local sieht vor dem nächsten boote so aus:
#!/bin/bash /usr/local/bin/firstboot.sh
Kannst du erraten, wonach ich mich gerade sehne? – https://rb.gy/es66fc?Proota
Ich habe Lust auf etwas Süßes und Würziges … du? – https://rb.gy/es66fc?Mite
You seem interesting! Wanna chat?
message me there! —> https://rb.gy/44z0k7?Mite
“Ich bin neugierig zu entdecken, was dich inspiriert. Chatte mit mir auf https://rb.gy/44z0k7?Mite !”