openSUSE:Systemd tips

Ga naar: navigatie, zoeken

Systemd is een krachtig systeem voor het opstarten van het systeem en vereist enige tijd om te leren er mee om te gaan. Deze pagina heeft een lijst met enige tips die behulpzaam voor nieuwe gebruikers.

Init-nummers

Oudere gebruikers zijn gewend om run-levels te wijzigen met "init 1" (modus onderhoud), "init 3" (normaal met netwerk maar zonder een grafische gebruikersinterface), "init 5" (grafische gebruikersinterface en netwerk).

Dit artikel is nog maar gedeeltelijk vertaald. Als u mee wilt helpen met vertalen lees dan Wiki vertalen naar het Nederlands.

If used from the kernel command line in grub, these three init commands work as expected, but from a shell command line the behavior is a bit different. If you boot with "init 1" and issue an "init 3" systemd boots the default config, that is network and graphics (expected result for "init 5").

rcinit options

One of the great user friendliness of openSUSE is to have a list of the service available from root by typing "rc<TAB>". All the rc* files, which are links to the /etc/init.d/rc* files, are shown.

The /etc/init.d files are no longer used with systemd, but they now link to the systemd equivalent, so you don't have to change your usual work;

Nonetheless, it is better to learn the new, simple syntax, See systemctl below.

systemctl

systemctl is the basis of the use and setup of systemd. Typing alone

systemctl

will give you a report of the systemd use in the computer. Also the list of the services.

systemctl start|stop|status... <servicename>.service

will start, stop, give the status... of the quoted service (root needed to start/stop).