6fec0fed10
Currently, if a unit file is enabled from outside of the search path, and that unit has an alias, then the symlink ends up pointing outside of the search path too. For example: $ cat /tmp/a.service [Service] ExecStart=sleep infinity [Install] Alias=b.service WantedBy=multi-user.target $ systemctl enable /tmp/a.service Created symlink /etc/systemd/system/a.service → /tmp/a.service. Created symlink /etc/systemd/system/b.service → /tmp/a.service. Created symlink /etc/systemd/system/multi-user.target.wants/a.service → /tmp/a.service. This then means the alias is treated as a separate unit: $ systemctl start a.service $ sudo systemctl status a ● a.service Loaded: loaded (/etc/systemd/system/a.service; enabled; preset: enabled) Active: active (running) since Fri 2024-03-15 15:17:49 EDT; 9s ago Main PID: 769593 (sleep) Tasks: 1 (limit: 18898) Memory: 220.0K CPU: 5ms CGroup: /system.slice/a.service └─769593 sleep infinity Mar 15 15:17:49 six systemd[1]: Started a.service. $ sudo systemctl status b ○ b.service Loaded: loaded (/etc/systemd/system/b.service; alias) Active: inactive (dead) To fix this, make sure the alias uses a target that is inside the search path. Since the unit file itself is outside of the search path, a symlink inside the search path will have been created already. Hence, just point the alias symlink to that recently created symlink. |
||
---|---|---|
.clusterfuzzlite | ||
.github | ||
.semaphore | ||
catalog | ||
coccinelle | ||
docs | ||
factory | ||
hwdb.d | ||
LICENSES | ||
man | ||
mime | ||
mkosi.conf.d | ||
mkosi.images | ||
modprobe.d | ||
network | ||
pkg | ||
po | ||
presets | ||
rules.d | ||
shell-completion | ||
src | ||
sysctl.d | ||
sysusers.d | ||
test | ||
tmpfiles.d | ||
tools | ||
units | ||
xorg | ||
.clang-format | ||
.ctags | ||
.dir-locals.el | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.packit.yml | ||
.pylintrc | ||
.vimrc | ||
.ycm_extra_conf.py | ||
LICENSE.GPL2 | ||
LICENSE.LGPL2.1 | ||
meson_options.txt | ||
meson.build | ||
meson.version | ||
mkosi.conf | ||
NEWS | ||
README | ||
README.md | ||
TODO |
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.