alias service : libvirtd
aliased service : libvirt-bin
# ls -la libvirtd.service
lrwxrwxrwx 1 root root 39 Mar 21 16:27 libvirtd.service -> /lib/systemd/system/libvirt-bin.service
# systemctl is-active libvirtd
active
# systemctl is-active libvirt-bin
active
- Test case 2 - sshd
alias service : sshd
aliased service : ssh
# ls -la sshd.service
lrwxrwxrwx 1 root root 31 Mar 21 14:39 sshd.service -> /lib/systemd/system/ssh.service
# systemctl is-active sshd
active
# systemctl is-active ssh
active
# dpkg -l | grep systemd
ii libpam-systemd:amd64 229-4ubuntu21.22 amd64 system and service manager - PAM module
ii libsystemd0:amd64 229-4ubuntu21.22 amd64 systemd utility library
ii systemd 229-4ubuntu21.22 amd64 system and service manager
ii systemd-sysv 229-4ubuntu21.22 amd64 system and service manager - SysV links
Verification on Xenial.
Repeating test case from description.
- Test case 1 - libvirtd
alias service : libvirtd
aliased service : libvirt-bin
# ls -la libvirtd.service system/ libvirt- bin.service
lrwxrwxrwx 1 root root 39 Mar 21 16:27 libvirtd.service -> /lib/systemd/
# systemctl is-active libvirtd
active
# systemctl is-active libvirt-bin
active
- Test case 2 - sshd
alias service : sshd
aliased service : ssh
# ls -la sshd.service system/ ssh.service
lrwxrwxrwx 1 root root 31 Mar 21 14:39 sshd.service -> /lib/systemd/
# systemctl is-active sshd
active
# systemctl is-active ssh
active
# dpkg -l | grep systemd systemd: amd64 229-4ubuntu21.22 amd64 system and service manager - PAM module
ii libpam-
ii libsystemd0:amd64 229-4ubuntu21.22 amd64 systemd utility library
ii systemd 229-4ubuntu21.22 amd64 system and service manager
ii systemd-sysv 229-4ubuntu21.22 amd64 system and service manager - SysV links