LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-15-2018, 06:46 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Question McAfee, RHEL7 and systemd


I'm writing this up to share my experience with this.

We finally deployed a RHEL7 x86_64 in our production environment and when installing all of the 3rd party software, like McAfee, its dependent on init.d to work, not systemd.

This sort of surprised me however alot of vendors may not be ready to convert their software over to work with systemd. So looks like Linux OS that run with systemd will have to support both systemd and init.d for a period of time.

Just wondering what other folks experience is with this.

thanks
 
Old 08-16-2018, 12:57 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Actually while this is true there are things in Systemd that will try to convert init scripts to systemd scripts after reboots that might bite you in the posterior. On first reboot after installing something with an init script it does the conversion. On the next reboot after that it tries to run using Systemd script. This latter can fail if the former didn't work properly. That can occur because the init script is sometimes a link to the 3rd party software's install directory which Systemd can't execute on boot.

A good write up of this for a NetBackup application is:
https://www.veritas.com/support/en_US/article.000126536

Note that talks about CentOS7 rather than RHEL7 but it is the same idea as CentOS7 is compiled from RHEL7 sources.
 
Old 08-20-2018, 07:38 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I didn't know that systemd will try to convert init scripts. How do you check for this? I know the basics of systemd, haven't done a deep dive yet.

Thanks for sharing you experience with this.
 
Old 08-21-2018, 02:00 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by JockVSJock View Post
We finally deployed a RHEL7 x86_64 in our production environment and when installing all of the 3rd party software, like McAfee, its dependent on init.d to work, not systemd.

This sort of surprised me however alot of vendors may not be ready to convert their software over to work with systemd. So looks like Linux OS that run with systemd will have to support both systemd and init.d for a period of time.
a sysvinit compatibility layer exists for systemd, and is in use on e.g. debian jessie (this version was most affected by the switch).

in the end it depends on what exactly mcafee is doing with these init scripts.
maybe it's just a simple start script, trivial to translate (manually rewrite) to a systemd service.

so instead of (yet another) philosophical discussion about init systems, let's try to actually solve the technical problem?
 
Old 08-21-2018, 05:28 AM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I'm trying to get a better understanding of systemd, in order to solve any current and future tech problems and not wanting to fight init.d Vs systemd. I don't know why your interpreting my question as drama unless your trying to start it.

Quote:
Originally Posted by ondoho View Post

so instead of (yet another) philosophical discussion about init systems, let's try to actually solve the technical problem?

Last edited by JockVSJock; 08-21-2018 at 04:25 PM.
 
Old 08-21-2018, 01:19 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I, too, am still working to wrap my head around the systemd way of doing things.
I don't have it yet, and have to go to the 'net for help...soon, I hope.

Putting "systemd init script" into DDG yields many examples and discussions of how to accomplish starting things "the systemd way" -- In general, it appears to be very similar to init.d:
Create a script
Put it in the proper location
Use systemctl to "make it so"

As I said, I don't yet have what it takes to be specific. Try that search string...
 
Old 08-24-2018, 12:27 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by JockVSJock View Post
I'm trying to get a better understanding of systemd, in order to solve any current and future tech problems and not wanting to fight init.d Vs systemd. I don't know why your interpreting my question as drama unless your trying to start it.
yet you chose not to react to the technical part of my answer, the one that might help you to "get a better understanding".

i'm really not quite sure what you're asking here; is there a technical problem you need solving, or are you just asking us to look up some links for you?
fwiw, this is worth gold: https://wiki.archlinux.org/index.php/Systemd
but i'm sure RHEL have something similarly high standard.
 
1 members found this post helpful.
Old 08-24-2018, 08:24 AM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by ondoho View Post
yet you chose not to react to the technical part of my answer, the one that might help you to "get a better understanding".

i'm really not quite sure what you're asking here; is there a technical problem you need solving, or are you just asking us to look up some links for you?
fwiw, this is worth gold: https://wiki.archlinux.org/index.php/Systemd
but i'm sure RHEL have something similarly high standard.
From the main webpage.

Quote:
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
 
Old 08-24-2018, 12:25 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I read ondoho's post in #4 as an attempt to avoid drama...not to create it.

Thank you, ondoho, for the excellent reference re: systemd -- it's just a new thing to learn, and I've been doing that in "data processing" and IT for nearly 50 years(!)

"The only thing constant in the universe is change."
 
Old 08-24-2018, 05:57 PM   #10
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37
Blog Entries: 2

Rep: Reputation: 13
Quote:
Originally Posted by JockVSJock View Post
I'm writing this up to share my experience with this.

We finally deployed a RHEL7 x86_64 in our production environment and when installing all of the 3rd party software, like McAfee, its dependent on init.d to work, not systemd.

This sort of surprised me however alot of vendors may not be ready to convert their software over to work with systemd. So looks like Linux OS that run with systemd will have to support both systemd and init.d for a period of time.

Just wondering what other folks experience is with this.

thanks
systemd is YAIS (Yet Another Init System) that you have to deal with. Because systemd is backwards compatible with init.d, why change?

Also, I find that systemd is not as powerful as init.d. So if you want to do anything tricky, you can't. For example, the NFS init.d script checks if your /etc/exports file is empty. If it is, it doesn't bother starting nfsd... a really nice feature for those of us who need NFS once in a blue moon. systemd can't do this and just starts nfsd if enabled.

For those trying to work with systemd... the first thing you have to wrap your mind around is that disable does not mean disable. It really means something like don't auto start. It will still let other programs start the service. You almost always want mask rather than disable. It took me a while to understand why a disabled service kept running
 
Old 08-27-2018, 09:25 AM   #11
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by smaclennan View Post
Also, I find that systemd is not as powerful as init.d. So if you want to do anything tricky, you can't. For example, the NFS init.d script checks if your /etc/exports file is empty. If it is, it doesn't bother starting nfsd... a really nice feature for those of us who need NFS once in a blue moon. systemd can't do this and just starts nfsd if enabled.
That is wrong on a couple of levels.

Firstly YOU can make systemd conditional on whatever YOU want. By default it may not check for empty /etc/exports on your distro but if YOU desire that you can modify the behavior in YOUR systemd setup. systemd is meant to be modular and fast so there may be things that sysvinit did by default that systemd doesn't because of choices made to increase its speed.

Secondly there is no need for /etc/exports to be populated before you start nfs server. You can populate it after the fact then run exportfs -a to have it recognize your additions. If it didn't work like this you'd have to restart NFS every time you edited /etc/exports which might cause problems for things using previously exported filesystems.
 
Old 08-28-2018, 09:24 PM   #12
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37
Blog Entries: 2

Rep: Reputation: 13
Quote:
Originally Posted by MensaWater View Post
That is wrong on a couple of levels.

Firstly YOU can make systemd conditional on whatever YOU want. By default it may not check for empty /etc/exports on your distro but if YOU desire that you can modify the behavior in YOUR systemd setup. systemd is meant to be modular and fast so there may be things that sysvinit did by default that systemd doesn't because of choices made to increase its speed.
I couldn't find a way to do that. And while I am marginally curious... in systemd's defense once I understood that it was short-circuiting the init.d file, I was able to configure systemd to let the init.d file work as normal. So this is a solved problem.

Quote:
Originally Posted by MensaWater View Post
Secondly there is no need for /etc/exports to be populated before you start nfs server. You can populate it after the fact then run exportfs -a to have it recognize your additions. If it didn't work like this you'd have to restart NFS every time you edited /etc/exports which might cause problems for things using previously exported filesystems.
I don't think you understood what the init.d file is trying to do, and that is probably my fault. I meant this to be a simple example.

You can look at the init.d file for nfsd. I believe many (most?) systemd systems still ship with the nfsd init.d script. The idea is to NOT run nfsd unless you actually need it. There are security reasons, if nothing else, why you may not want nfsd running. Really it only saves you the extra steps of disabling and enabling the service... but it has been the default behavior for at least 18 years (probably longer) and I was surprised that systemd didn't have it by default.

I doubt it was done for speed; reading one exports file will not affect boot times. I can understand that it might be a documentation issue. i.e. It is much easier to document the systemd behavior than the init.d one.
 
Old 08-29-2018, 12:14 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by smaclennan View Post
The idea is to NOT run nfsd unless you actually need it.
if in some situations it (systemd? nfs? the distro?) defaults to simply start it regardless, that might be a reason for criticism.

but i'm pretty sure this is possible with systemd.

are you talking about checking /etc/exports once at startup, or continuously? tbh, the latter wouldn't make much sense to me, and the former either because i have never heard that /etc/exports changes without manual admin intervention.

anyhow, isn't sysvinit executing shell scripts?
so anything that the shell can do, the init system can also do?
that is still possible with systemd - a service file can point to a shell script.

i'm not saying systemd is better than sysvinit, just trying to clarify things. debunking.
 
Old 08-29-2018, 01:41 AM   #14
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
McAfee on RHEL is horrible, if you want to know how horrible, put it on your build server and see build times doubling :-)

and I wonder what security it actually should add,
there is a RHEL system, and than you put some proprietary service on it which value is in best case doubtable.
no one knows what this software intercepts, which security is weakens, if it has backdoors, ....

and MacCafe depends on more than just a service, it adds it self to cron, the one in etc, that one from root
and it has 2 services cma and ma (ma and nails) which you can query with systemctl

systemctl status cma
systemctl status ma

you can stop/enable/disable this services via systemctl, so at least it seams there is some co-operation via/with systemd.
 
  


Reply

Tags
mcafee, rhel7, systemd



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
[SOLVED] rhel7 - systemd : StartUp Script bravored Linux - Server 7 10-20-2017 09:29 AM
LXer: systemd 230 Launches with DNSSEC Enabled by Default in systemd-resolved LXer Syndicated Linux News 0 05-22-2016 11:41 AM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
Unable to install RHEL7 KVM onto RHEL7 desktop redhatprat Red Hat 10 02-18-2015 03:44 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:06 PM.

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
Open Source Consulting | Domain Registration