The apachectl script is designed so that it can often be linked directly as an init script, but be sure to check the exact requirements of your system.
Le script apachectl est conçu de manière à ce qu'il soit directement lié comme script d'initialisation, mais assurez vous qu'il correspond aux besoins précis de votre système.
If you aren't using an init script to start Nagios, you'll have to do things manually.
The basic layout of an init script is shown below.
However, there is no such thing as an init script that works on all distributions.
Toutefois, il n'existe pas de script universel fonctionnant sur toutes les distributions.
The above commands can also be put in an init script to start up when the server restarts.
Les commandes ci-dessus peuvent aussi être placées dans un script d'initialisation utilisé lorsque le serveur redémarre.
Converting an init script to a unit file requires analyzing the script and extracting the necessary information from it.
Convertir un script init en fichier d'unité requiert d'analyser le script et d'en extraire les informations nécessaires.
To add or remove an init script, just give rc-update the add or del argument, followed by the init script and the runlevel.
Pour ajouter ou supprimer un service, ajoutez simplement add ou del à la commande rc-update et spécifiez ensuite le nom du script d'initialisation et le niveau d'exécution.
In other words, if a system has a net.eth0 and net.eth1 and an init script depends on "net", then both must be enabled.
En d'autres termes, si un système a un net.eth0 et un net.eth1 et un script d'initialisation dépend de "net", alors les deux doivent être activés.
invoke-rc.d introduces the concept of a policy layer which is used to verify if an init script should be run or not, or if something else should be done instead.
invoke-rc.d introduit le concept d'une politique utilisée pour vérifier si un script d'initialisation doit être exécuté ou non ou si une autre action doit être menée à la place.
Before systemd, the dependency-based boot sequence only needed an init script, for instance/etc/init.d/dibbler.
The apachectl script is designed so that it can often be linked directly as an init script, but be sure to check the exact requirements of your system.
Il est ainsi souvent possible d'installer simplement un lien vers apachectl dans le répertoire d'initialisation approprié. Mais prenez soin de vérifier les besoins exacts de votre système en la matière.
There is an init script, which on boots, determines if the current uSD is the same as the previous boot.
Il existe un script d'initialisation, qui au démarrage détermine si la carte SD est la même qu'au dernier démarrage.
9.1.1 Customizing init scripts The easiest way to control the behavior of an init script is by changing environment variable assignments in the file named like the init script in the/etc/default directory.
Le moyen le plus facile de contrôler le comportement d'un script d'initialisation est de changer les variables d'environnement dans le fichier situé dans le répertoire /etc/default ayant le même nom que le script d'initialisation.