U kunt daarom zonder meer bash commando's gebruiken in uw init script.
free to use bash-compatible constructs inside your init script.
U hoeft niets extra te doen om een configuratie bestand in de map/etc/conf.d te kunnen gebruiken: wanneer uw init script wordt gestart worden de volgende bestanden automatisch ingelezen
You don't have to do anything to support a configuration file in/etc/conf.d: if your init script is executed, the following files are automatically sourced (i.e. the variables are available to use)
Wanneer uw init script een virtuele afhankelijkheid bevat (zoals net) zal het bestand dat hierbij hoort (in dit geval/etc/conf.d/net) ook ingelezen worden.
Also, if your init script provides a virtual dependency (such as net), the file associated with that dependency (such as/etc/conf.d/net) will be sourced too.
U hoeft niets extra te doen om een configuratie bestand in de map/etc/conf.d te kunnen gebruiken: wanneer uw init script wordt gestart worden de volgende bestanden automatisch ingelezen
In order to support configuration files in/etc/conf.d/, no specifics need to be implemented: when the init script is executed, the following files are automatically sourced (i.e. the variables are available to use)
Eigen functies toevoegen Wanneer u in uw init script andere functies wilt gebruiken dan de eerder genoemde, kunt u die functie toevoegen via de variabele opts.
If you want your init script to support more options than the ones we have already encountered, you should add the option to the opts variable, and create a function with the same name as the option.
Uw init script kan bijvoorbeeld een systeem logger nodig hebben, maar er zijn meerdere systeem loggers beschikbaar (metalogd, syslog-ng, sysklogd,...).
An init script can depend on a system logger, but there are many system loggers available (metalogd, syslog-ng, sysklogd,...).
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.