[systemd-devel] how check enabled service

Michal Schmidt mschmidt at redhat.com
Tue May 17 01:04:06 PDT 2011


On 05/17/2011 06:04 AM, Alexey Shabalin wrote:
> Hi.
> How i can check enabled service?
>
> 1)
> # systemctl enable acpid.service
> ln -s '/lib/systemd/system/acpid.service'
> '/etc/systemd/system/multi-user.target.wants/acpid.service'
> # systemctl is-enabled acpid.service; echo $?
> 0
> OK
>
> 2)
> # systemctl disable acpid.service
> rm '/etc/systemd/system/multi-user.target.wants/acpid.service'
> # systemctl is-enabled acpid.service; echo $?
> 0
> ^^^
> Ok? i waiting non-zero exit code.
>
> i have a systemd-v26.

It's a bug:
https://bugzilla.redhat.com/show_bug.cgi?id=699027


More information about the systemd-devel mailing list