systemd:systemd
Ceci est une ancienne révision du document !
systemd
- Recharge / redémarre systemd :
$ systemctl daemon-reload $ systemctl daemon-rexec
- Affiche la liste des dépendances d'une unité :
$ systemctl list-dependencies nfs-client.target nfs-client.target ● ├─auth-rpcgss-module.service ● ├─rpc-statd-notify.service ● └─remote-fs-pre.target
- Afficher une propriété d'un service :
$ systemctl show -p "Wants" nfs.service Wants=rpcbind.socket network-online.target auth-rpcgss-module.service rpc-statd-notify.service nfs-config.service rpc-statd.service nfs-idmapd.service
- Liste l'arbre des cgroups :
$ systemd-cgls
- Affiche les uités :
$ systemctl list-unit-files --type=mount UNIT FILE STATE -.mount generated boot-efi.mount generated dev-hugepages.mount static dev-mqueue.mount static home.mount generated proc-fs-nfsd.mount static proc-sys-fs-binfmt_misc.mount static sys-fs-fuse-connections.mount static sys-kernel-config.mount static sys-kernel-debug.mount static tmp.mount static var-lib-machines.mount static var-lib-nfs-rpc_pipefs.mount static 13 unit files listed.
$ systemctl list-unit-files --state=generated UNIT FILE STATE -.mount generated boot-efi.mount generated home.mount generated livesys-late.service generated livesys.service generated netconsole.service generated network.service generated 7 unit files listed.
- Modifie un service existant ou en crée un nouveau :
$ sudo systemctl edit crond.service $ $ #Liste edite le service et recopiant le père $ sudo systemctl edit crond.service -l $ sudo systemctl edit crond.service -full
systemd/systemd.1494075572.txt.gz · Dernière modification : 2017/05/06 12:59 de root