Posts

Showing posts from September 14, 2018

What is the default path that systemd uses to locate locate System V scripts?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite Is /etc/init.d the default search path that the systemd generator uses to convert native SysV script to unit files, and falls back to /etc/rc?.d or vice versa? From this answer by @JdeBP: This program is a generator, a type of ancillary utility whose job is to create service unit files on the fly, in a tmpfs where three more of those nine directories (which are intended to be used only by generators) are located. systemd-sysv-generator generates the service units that run the System V rc scripts from /etc/init.d , if it doesn't find a native systemd service unit by that name already existing in the other six locations. But, How Linux Works book mentions something different: First, systemd activates runlevel<N> .target, where N is the runlevel. For each symbolic link in /etc/rc<N>.d , systemd identifies the script in /etc/init.d . systemd associates the script name with a service unit (for