A
A
Alexander Lychangin2016-06-14 22:09:19
linux
Alexander Lychangin, 2016-06-14 22:09:19

How to check which kernel init system is on the server?

Hello, I have such a question, how to determine which initialization system is on the linux server? Is there any command to show this? Of course, I understand that now the latest distributions come with systemd on board, but still I would like to see this clearly, since my system does not have such a utility as systemctl, so it does not have systemd?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
X
xotkot, 2016-06-15
@alexandr19931

I don't know about others, but for Arch and Ubuntu you can use the init --version command :

$ uname -n
arch
$ init --version | head -n1
systemd 230

$ uname -n
ubuntu
$ init --version | head -n1
init (upstart 1.12.1)

K
kalterfive, 2016-06-23
@kalterfive

See where /sbin/init points (this is a symlink).

M
Mikhail Grigoriev, 2018-01-16
@Sleuthhound

You can check which initialization system on Linux in many ways, as the rules all of them depend on the version of the Linux distribution and not all work 100% on all distributions, initially we check if it shows a symlin like
then everything is clear - systemd
if there is no symlink, then the command
will issue either SYSTEMD or UPSTART or SYSVINIT

G
greenh, 2016-06-15
@greenh

Actually, if there is no systemctl, then there is no systemd guaranteed. Any attempt to access systemctl will show everything

H
Human, 2016-06-15
of Humans @tenhi_shadow

there is no such thing in Debian, but you can do man init and it says on top that systemd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question