LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SystemD and SystemD Shim (https://www.linuxquestions.org/questions/linux-newbie-8/systemd-and-systemd-shim-4175646218/)

Numbnuts 01-14-2019 06:42 PM

SystemD and SystemD Shim
 
2 Attachment(s)
So here are two screenshots

Pic 1
PHP Code:

dpkg -

listing the programs installed.
It clearly shows systemd and the systemd-shim as being installed.

Pic 2
Shows the Task Manager which shows running programs.
I sorted them alphabetically and there is no sign of systemd running from this technique of checking on what is running.

TWO QUESTIONS:
1.) Is systemd in fact running?
2.) If it was running, what other ways of confirming it is running exists? i.e, what command would show if it was running?

berndbausch 01-14-2019 06:48 PM

Quote:

Originally Posted by Numbnuts (Post 5949118)
what other ways of confirming it is running exists? i.e, what command would show if it was running?

You could try
Code:

systemctl status

Numbnuts 01-14-2019 07:12 PM

Code:

user@mx:~
$ systemctl status
Failed to read server status: Invalid argument
user@mx:~
$ systemctl status
Failed to read server status: Invalid argument
user@mx:~

doesn't werk

Numbnuts 01-14-2019 07:13 PM

maybe it's not running then..................?

berndbausch 01-14-2019 08:53 PM

Quote:

Originally Posted by Numbnuts (Post 5949133)
maybe it's not running then..................?

Yes, it looks like it isn't running. Is this Debian or Ubuntu? If so you probably have a /var/log/syslog which should provide some information.

EDIT: Probably MX, right? If so, you may get better service in the MX forum. Ask a moderator to move your question there.

Second EDIT: Did you read Wiki entry about systemd on MX?

hazel 01-15-2019 01:39 AM

systemd renames itself as init once it has completed the startup process. So you won't find it in the list of running processes.

systemd-shim appears to have been dropped from Debian https://tracker.debian.org/pkg/systemd-shim

berndbausch 01-15-2019 01:42 AM

Quote:

Originally Posted by hazel (Post 5949223)
systemd renames itself as init once it has completed the startup process. So you won't find it in the list of running processes.

That depends on the distro, I suppose.

Ubuntu 16:
Code:

$ ps -ef|head -n 3
UID        PID  PPID  C STIME TTY          TIME CMD
root        1    0  0 Jan13 ?        00:02:21 /lib/systemd/systemd --system --deserialize 27
root        2    0  0 Jan13 ?        00:00:00 [kthreadd]

Fedora 28:
Code:

$ ps -ef|head -n 3
UID        PID  PPID  C STIME TTY          TIME CMD
root        1    0  0 07:29 ?        00:00:02 /usr/lib/systemd/systemd --switched-root --system --deserialize 32
root        2    0  0 07:29 ?        00:00:00 [kthreadd]


nodir 01-15-2019 02:31 AM

iirc at least on debian
ls -l /sbin/init
is a symlink if systemd is the used init system (but, bad news, won't show clearly that sysv is running as the init system, or a different one)
cat /proc/1/comm
should tell which is the used init system, i wouldn't bet though.
if it ain't the distros default, it could be it is mentioned in
/etc/default/grub
systemd being installed doesn't mean it runs as init system.

which distro do you use?


All times are GMT -5. The time now is 07:47 PM.