I'm wondering how services launched by means of ***systemd*** working.
When system was running by means of System V init, there was scripts under *runlevels* (**/etc/rc"level".d/**) which described exactly what should be performed.
Under systemd, there's not too much information.
For example, there's a script under /etc/rc5.d which used for launching cups server and there's some more than 90 lines.
From the other hand, if we look in cups.service (under /lib/systemd/system) there're only these lines : ** [Unit] Description=CUPS Scheduler Documentation=man:cupsd(8) After=network.target nss-user-lookup.target nslcd.service Requires=cups.socket [Service] ExecStart=/usr/sbin/cupsd -l Type=notify Restart=on-failure [Install] Also=cups.socket cups.path WantedBy=printer.target multi-user.target ** It's very different from previous approach, thus I don't understand how it runs
When system was running by means of System V init, there was scripts under *runlevels* (**/etc/rc"level".d/**) which described exactly what should be performed.
Under systemd, there's not too much information.
For example, there's a script under /etc/rc5.d which used for launching cups server and there's some more than 90 lines.
From the other hand, if we look in cups.service (under /lib/systemd/system) there're only these lines : ** [Unit] Description=CUPS Scheduler Documentation=man:cupsd(8) After=network.target nss-user-lookup.target nslcd.service Requires=cups.socket [Service] ExecStart=/usr/sbin/cupsd -l Type=notify Restart=on-failure [Install] Also=cups.socket cups.path WantedBy=printer.target multi-user.target ** It's very different from previous approach, thus I don't understand how it runs
Asked by siru
(1 rep)
Oct 13, 2022, 02:25 PM