Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to check if I am running systemd unknowingly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
txykumat
n00b
n00b


Joined: 24 Nov 2014
Posts: 46

PostPosted: Mon Mar 16, 2015 3:22 pm    Post subject: how to check if I am running systemd unknowingly Reply with quote

Last night, when I was poking around my system drive, I found folders named systemd, and configuration files that seems to do with network and other unknown things. It came to me that udev is a part of systemd and that might be why it is there so I uninstalled udev and switched to eudev. I still have folders/files with name system d in

/etc/systemd
/usr/lib64systemd

all other listing is under /usr/portage/profile... so I think that's just repository.

Is there a sure fire way to make sure that I am not using systemd?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8408
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 16, 2015 3:41 pm    Post subject: Reply with quote

Code:
# equery list -i systemd
 * Searching for systemd ...
!!! No installed packages matching 'systemd'
For that tiny amount of cruft, see Root File System has SystemD related files!

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4729

PostPosted: Mon Mar 16, 2015 3:57 pm    Post subject: Reply with quote

Here's my known two symptoms to detect you are using systemd
- You start to only be able to tells anyone: OMG my system boot so fast!
- You start opening thread in gentoo forum and not getting any answer.

With two answers in it and no "OMG my system boot fast" in your thread, i think you pass my tests.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8408
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 16, 2015 4:08 pm    Post subject: Reply with quote

:wink:
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4707

PostPosted: Mon Mar 16, 2015 4:08 pm    Post subject: Reply with quote

krinn's joke aside: If you have scripts that need to detect whether you have booted with systemd or openrc, use
Code:
test -r /run/openrc/softlevel

If /run is a ramdisk (which it should be independently of whether you use systemd or openrc) then having this is a sure sign that your system was started with openrc (unless something created it to trick your scripts, of course).
Another sure sign that you have not booted with systemd is that "systemctl" returns only an error concerning some mising dbus connection. If you do not even have "systemctl", you can also practically be sure that you did not boot with systemd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum