4 ms·
It is fairly outdated. It says it was last updated in December 2014, but I'm not sure it's had much added. (this is on Ubuntu, but anything with systemd should
by phaemon 9y ago
It is fairly outdated. It says it was last updated in December 2014, but I'm not sure it's had much added.
(this is on Ubuntu, but anything with systemd should be similar)
You're correct about systemctl. If you do:
ls -lh /sbin | grep systemctl
you can see that `poweroff` and other commands are symlinks to `/sbin/systemctl`. The systemctl code shows it checks the name it's called with and chooses an action based on that:
https://github.com/systemd/systemd/blob/aaa6732d7834c1dc0f937936563218724d71b619/src/systemctl/systemctl.c#L8149 https://github.com/systemd/systemd/blob/aaa6732d7834c1dc0f93...