Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is systemd running on my workstation or not?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 318

PostPosted: Sun Dec 28, 2014 2:54 pm    Post subject: is systemd running on my workstation or not? Reply with quote

Hi.

I just recently discovered that systemd (or part of it) is installed on my workstation.
I intentionally did not change the default kernel setting, which is OpenRC (and not systemd).
I checked all use flags, systemd is not set anywhere.

Nonetheless:
Code:
$> ps faux | grep systemd | grep -v grep
root       698  0.0  0.0  38960  1368 ?        Ss   Nov24   0:01 /lib/systemd/systemd-udevd --daemon[/quote]
#> equery belongs /lib/systemd/systemd-udevd
 * Searching for /lib/systemd/systemd-udevd ...
sys-fs/udev-216-r1 (/lib/systemd/systemd-udevd)
#> rc-config list | grep systemd
#>

So it's probably needed by udev. Is that inevitable when using udev? If so are there alternatives?
I read that mdev does not work (well?) with KDE... http://wiki.gentoo.org/wiki/Mdev

Tranks in advance.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Dec 28, 2014 3:11 pm    Post subject: Re: is systemd running on my workstation or not? Reply with quote

as.gentoo wrote:
I just recently discovered that systemd (or part of it) is installed on my workstation.

as.gentoo ... udev was incorportated/merged/consumed_by systemd, and is now part of it, hence the name. The init is still called 'udev' however.

Code:
$> ps faux | grep systemd | grep -v grep

Getting a PID out of ps ... so:

Code:
$ pgrep -a systemd

Though if you must use grep you can exclude the grep like so ...

Code:
$ ps faux | grep [s]ystemd

as.gentoo wrote:
So it's probably needed by udev. Is that inevitable when using udev? If so are there alternatives? I read that mdev does not work (well?) with KDE

Besides mdev there is sys-fs/eudev (which is a fork of udev).

HTH & best ... khay
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13490

PostPosted: Sun Dec 28, 2014 4:25 pm    Post subject: Reply with quote

If you intend not to use systemd, I suggest you unmerge it both to reclaim the used space and to ensure that no packages incorrectly interpret the availability of the systemd files as a promise that systemd is used. You could also mask systemd to guarantee it is not reinstalled later:
Code:
printf '%s\n' '' '# Prevent installing systemd on openrc-based system' sys-apps/gentoo-systemd-integration sys-apps/systemd '' >> /etc/portage/package.mask
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Dec 28, 2014 4:48 pm    Post subject: Reply with quote

Hu wrote:
If you intend not to use systemd, I suggest you unmerge it both to reclaim the used space and to ensure that no packages incorrectly interpret the availability of the systemd files as a promise that systemd is used.

Hu ... I don't think sys-apps/systemd is in fact installed, just sys-fs/udev. It doesn't help that it reports itself as 'systemd-udev', or that its initalised as 'udev' ... but at least everyone is clear about who's who in the namespace ... and that system binaries should be installed to /usr/lib/* ;)

"Confused? You won't be, after this week's episode of ... Soap."

best ... khay
Back to top
View user's profile Send private message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 318

PostPosted: Sun Dec 28, 2014 4:58 pm    Post subject: Reply with quote

$> equery list systemd
* Searching for systemd ...
!!! No installed packages matching 'systemd'

There is no package installed directly (by me). That's why I was quite surprised that a process named *systemd* is running. ;)

Thanks for the one-liner. I just created /etc/portage/package.mask/systemd with the packages you stated.

As well thanks for the information regarding eudev ... I'll set up a system using that instead of systemd-udev.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6960

PostPosted: Mon Dec 29, 2014 9:55 am    Post subject: Reply with quote

Code:
       INSTALL_MASK = [space delimited list of file names]
              Use this variable if you want  to  selectively  prevent  certain
              files  from  being copied into your file system tree.  This does
              not work on symlinks, but only on actual files.  Useful  if  you
              wish  to  filter  out  files  like  HACKING.gz  and TODO.gz. The
              INSTALL_MASK is processed just before a package is merged.  Also
              supported  is  a  PKG_INSTALL_MASK variable that behaves exactly
              like INSTALL_MASK except that it is processed just  before  cre‐
              ation of a binary package.

if you get bored by useless systemd unit files polluting your system...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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