Gentoo's init script syntax is based on the Bourne Again Shell (bash) so you are free to use bash-compatible constructs inside your init script.
Die Syntax von Gentoo für Initskripte basiert auf der Bourne Again Shell (bash). Es steht Ihnen also frei bash-kompatible Konstrukte innerhalb Ihrer Initskripte zu verwenden.
Note: Make sure that - exec actually calls a service and not just a shell script that launches services and exits - that's what the init script is supposed to do.
Notiz: Stellen Sie sicher, dass - exec wirklich einen Dienst aufruft und nicht nur ein Shell-Skript, welches den Dienst startet und dann beendet. Das ist die Aufgabe des Initskripts.
In part, this involves copying the shell script quadstone-init-<
Marc Chantreux proposed to write init scripts more efficiently, i.e. by using features the shell and the used utilities provide.
Marc Chantreux schlug vor, Init-Skripte effizienter zu schreiben, d.h. Möglichkeiten zu nutzen, die die Shell und die verwendeten Hilfswerkzeuge bereitstellten.
One specific circumstance where the author particularly recommends doing this is when/etc/init.d/xdm is in use, because this init script starts the display manager and desktop before any of the aforementioned shell startup files are sourced, and so before any of the variables are in the environment.
Dies empfiehlt der Autor besonders, wenn/etc/init.d/xdm genutzt wird, da das Initskript den Displaymanager und den Desktop startet, bevor irgendwelche zuvor erwähnten Shell-Startup-Dateien gelesen werden.
Once the mounting and pivoting of the new root filesystem is complete, we are done with the/linuxrc shell script and we need to invoke the real init program.
Nach Mounten und Verschieben (pivoting) des neuen root-Dateisystems ist das/linuxrc-Script abgearbeitet und das eigentliche init Programm kann gestartet werden.
ID: ae-200104-006 The init script supplied with a previous openssh update used the daemon() shell function to start the sshd daemon.
Das mit einem früheren openSSH-Update ausgelieferte init-Skript hat die daemon() Shell für den Start genutzt - der damit nicht immer funktioniert.
You can manually configure netfilter interactively from shell, save its state with iptables-save(8), and restore it via init script with iptables-restore(8) upon system reboot.
Sie können netfilter von Hand interaktiv über die Shell konfigurieren, seinen Status mit iptables-save(8) sichern und beim Systemstart über ein Init-Skript mittels iptables-restore(8) wiederherstellen.
The shell script automatically compresses files, saving both time and storage space.
Das Shell-Skript komprimiert automatisch Dateien und spart sowohl Zeit als auch Speicherplatz.
Some scripts may cause problems if a shell is not present.
Manche Scripte haben Probleme, wenn keine Shell vorhanden ist.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.