systemd
Különbségek
A kiválasztott változat és az aktuális verzió közötti különbségek a következők.
| Előző változat mindkét oldalonElőző változatKövetkező változat | Előző változat | ||
| systemd [2018/04/24 07:10] – daevidt | systemd [2022/02/23 13:17] (aktuális) – daevidt | ||
|---|---|---|---|
| Sor 12: | Sor 12: | ||
| Config files: | Config files: | ||
| - | / | + | |
| + | / | ||
| + | |||
| + | DNS=... | ||
| + | DHCP=.. | ||
| + | Gateway=.. | ||
| + | Address=.. | ||
| + | Domains=.. | ||
| + | ... | ||
| + | |||
| + | Check **man systemd.network** | ||
| ==== tmpfiles.d, /var/run persistency ==== | ==== tmpfiles.d, /var/run persistency ==== | ||
| Sor 27: | Sor 37: | ||
| Further information can be found using **man tmpfiles.d** | Further information can be found using **man tmpfiles.d** | ||
| + | |||
| + | ==== Init scripts ==== | ||
| + | |||
| + | Init scripts are located here: | ||
| + | |||
| + | / | ||
| + | / | ||
| + | ... | ||
| + | |||
| + | Example init scripts: | ||
| + | |||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Calibre Server | ||
| + | After=network.target | ||
| + | |||
| + | StartLimitIntervalSec=500 | ||
| + | StartLimitBurst=5 | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | PIDFile=/ | ||
| + | Restart=on-failure | ||
| + | RestartSec=5s | ||
| + | ExecStart=/ | ||
| + | --daemonize \ | ||
| + | --port 32452 \ | ||
| + | --pidfile / | ||
| + | --enable-local-write \ | ||
| + | --log=/ | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | [Unit] | ||
| + | Description=Calibre Book Importer | ||
| + | After=network.target calibre.service | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | ExecStart=/ | ||
| + | KillMode=mixed | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | </ | ||
| + | === Types === | ||
| + | * forking | ||
| + | * oneshot | ||
| + | * ... | ||
| + | |||
| + | # TODO!!! | ||
| + | |||
| + | === Reload init scripts config === | ||
| + | |||
| + | systemctl daemon-reload | ||
systemd.1524553820.txt.gz · Utolsó módosítás: 2018/10/03 13:31 (külső szerkesztés)
