|
root / base / usr / src / zyginit / enabled.d
enabled.d D 29 lines 1.6 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
enabled.d/  default-enabled service list (build-time markers)
================================================================

The symlinks in this directory mark which services from ../services/
should be enabled by default on a fresh Hammerhead install.

Only the BASENAMES matter here; the targets are intentionally dangling
(they point at e.g. `../acpihpd.toml` which doesn't exist in the
source tree). The Makefile's install_enabled_d target reads the
basenames and writes REAL symlinks at install time, of the form:

    $(ROOT)/etc/zyginit/enabled.d/<name> -> ../services/<name>

which is what zyginit actually consults at runtime. So:

* To add a service to the default-enabled set: create a symlink here
  with the service's name. Target doesn't matter (`ln -sf ../<x>.toml
  <name>` matches the existing convention).

* To remove from the default-enabled set: rm the symlink here.

* The actual service definition lives in ../services/<name>/ and is
  always installed regardless of whether it's enabled by default 
  enabled.d/ only controls the initial state. Admins can later
  `zygctl enable <name>` to flip the symlink in place on a running
  system.

See ../Makefile (target install_enabled_d) for the rewrite logic.
../acpihpd.toml../acpihpd-check.toml../console-login.toml../cron.toml../crypto.toml../devfs.toml../devices-audio.toml../dlmgmtd.toml../filesystem.toml../hotplug.toml../identity.toml../ipmgmtd.toml../mdnsd.toml../ndp.toml../network.toml../pfexecd.toml../root-fs.toml../single-user-shell.toml../sshd.toml../swap.toml../sysconfig.toml../syseventd.toml../syslogd.toml../utmpd.toml