LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2019, 06:42 PM   #1
Numbnuts
LQ Newbie
 
Registered: Oct 2017
Distribution: MXLinux, Raspian, Kali, Win-dohs, BusyBox, OpenWrt, DD-Wrt
Posts: 13

Rep: Reputation: Disabled
Post SystemD and SystemD Shim


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?
Attached Thumbnails
Click image for larger version

Name:	system d and shim.png
Views:	31
Size:	210.6 KB
ID:	29464   Click image for larger version

Name:	task manager.png
Views:	23
Size:	240.2 KB
ID:	29465  
 
Old 01-14-2019, 06:48 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,490

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Quote:
Originally Posted by Numbnuts View Post
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

Last edited by berndbausch; 01-14-2019 at 06:48 PM. Reason: typo
 
Old 01-14-2019, 07:12 PM   #3
Numbnuts
LQ Newbie
 
Registered: Oct 2017
Distribution: MXLinux, Raspian, Kali, Win-dohs, BusyBox, OpenWrt, DD-Wrt
Posts: 13

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-14-2019, 07:13 PM   #4
Numbnuts
LQ Newbie
 
Registered: Oct 2017
Distribution: MXLinux, Raspian, Kali, Win-dohs, BusyBox, OpenWrt, DD-Wrt
Posts: 13

Original Poster
Rep: Reputation: Disabled
maybe it's not running then..................?

Last edited by Numbnuts; 01-14-2019 at 07:15 PM.
 
Old 01-14-2019, 08:53 PM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,490

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Quote:
Originally Posted by Numbnuts View Post
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?

Last edited by berndbausch; 01-14-2019 at 08:57 PM.
 
Old 01-15-2019, 01:39 AM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,415
Blog Entries: 9

Rep: Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899Reputation: 1899
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

Last edited by hazel; 01-15-2019 at 01:42 AM. Reason: Added info
 
Old 01-15-2019, 01:42 AM   #7
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,490

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Quote:
Originally Posted by hazel View Post
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]
 
Old 01-15-2019, 02:31 AM   #8
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
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?

Last edited by nodir; 01-15-2019 at 02:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How could the cancellation of systemd-shim will affect Slackware? ReaperX7 Slackware 20 10-14-2014 08:17 PM
LXer: News: Linux Top 3: KDE 4.10, LibreOffice 4 and Secure Boot Loader Shim LXer Syndicated Linux News 0 02-12-2013 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration