Felhasználói eszközök

Eszközök a webhelyen


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.

Összehasonlító nézet linkje

Előző változat mindkét oldalonElőző változat
Következő változat
Előző változat
systemd [2018/04/24 07:10] daevidtsystemd [2022/02/23 13:17] (aktuális) daevidt
Sor 12: Sor 12:
  
 Config files: Config files:
- /etc/systemd/network+ 
 +  /etc/systemd/network 
 + 
 +  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:
 +
 +  /etc/systemd/system/
 +  /lib/systemd/system/
 +  ...
 +
 +Example init scripts:
 +
 +<code bash>
 +[Unit]
 +Description=Calibre Server
 +After=network.target
 +
 +StartLimitIntervalSec=500
 +StartLimitBurst=5
 +
 +[Service]
 +Type=forking
 +PIDFile=/var/run/calibre-server.pid
 +Restart=on-failure
 +RestartSec=5s
 +ExecStart=/usr/bin/calibre-server \
 +        --daemonize \
 +        --port 32452 \
 +        --pidfile /run/calibre-server.pid \
 +    --enable-local-write \
 +    --log=/var/log/calibre.log \
 +        /home/calibre/db \
 +        /home/calibre/en \
 +        /home/calibre/romantikus \
 +        /home/calibre/paperbooks
 +
 +[Install]
 +WantedBy=multi-user.target
 +
 +</code>
 +
 +<code bash>
 +[Unit]
 +Description=Calibre Book Importer
 +After=network.target calibre.service
 +
 +[Service]
 +Type=oneshot
 +ExecStart=/home/calibre/import-books.sh
 +KillMode=mixed
 +
 +[Install]
 +WantedBy=multi-user.target
 +
 +</code>
 +=== 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)