LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-02-2014, 09:23 PM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
systemctl vs init.d on Centos 7


Most of my experience has been with Debian and Ubuntu. But I recently bought one of Michael Jang's RHCSA/RHCE study guide. The book is written for Redhat 6 and I'm using CentOS 7 to practice. I noticed that when the book says to use init.d to start a service it doesn't work, for example

Code:
/etc/init.d/vsftpd start
and to start the service I have to:

Code:
systemctl start vsftpd
Is this a difference with version 7 or am I doing something wrong?
 
Old 11-02-2014, 09:50 PM   #2
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
I've half answered my question by reading. I guess my main question now is systemctl default init service control on Redhat 7? I assume answer is yes since CentOS is usually the same thing
 
Old 11-02-2014, 09:56 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Yes - systemd is the new init for RHEL and thus CentOS.
I think I saw Michael say (here on LQ) that he was updating the guide for V7.

<Edit> - see this thread.

Last edited by syg00; 11-02-2014 at 09:59 PM.
 
Old 11-02-2014, 10:15 PM   #4
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Thanks. Well, I picked up a used copy of the RH 6 edition. I don't have much RHEL or clone distro experience so I have plenty to learn and I'll connect the dots where needed for things that have changed since I'm using CentOS 7 for my example machines
 
Old 11-03-2014, 12:38 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
That might get pretty ugly - why not just download CentOS 6.6 ?.
 
Old 11-03-2014, 11:07 AM   #6
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
That might get pretty ugly - why not just download CentOS 6.6 ?.
There is that much difference? I am doing self study and would like to attempt to take the exam in about a year. My thinking is that I'm using my laptop as the one physical test system and already have installed CentOS 7 and 2 vms and configured networks, made ks files, ftp and apache servers etc. I like some of the new features on the laptop since it's my every day computer also.

...but at work (where I barely get to touch linux systems) we just moved to RHEL 6 and I'm sure we'll be on that for a few years the way things operate there so learning 6 specifically is probably beneficial. I guess I can keep my laptop on 7 and run 6.6 on the vms for the labs.
 
Old 11-03-2014, 04:43 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Quote:
Originally Posted by Ryanms3030 View Post
There is that much difference?

That might go down as one of the great understatements - I guess you don't get out much ...

Systemd caused (is causing) one of the great flame-fests.
 
Old 11-03-2014, 07:45 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by Ryanms3030 View Post
There is that much difference?
No /sbin/init (systemd), no iptables (firewalld), no netstat (ss), no ifconfig. Best check the release notes.


Quote:
Originally Posted by Ryanms3030 View Post
I am doing self study and would like to attempt to take the exam in about a year. (..) at work (where I barely get to touch linux systems) we just moved to RHEL 6 and I'm sure we'll be on that for a few years the way things operate there so learning 6 specifically is probably beneficial.
RHEL 6 / CentOS 6 will not be EOL until 2020 (see https://access.redhat.com/support/policy/updates/errata) and since your company just migrated to RHEL 6 it makes sense, yes.
 
Old 11-04-2014, 08:55 PM   #9
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Thanks all.

I haven't been on the forums for a while so I guess I don't get out much and I have missed the flame wars.

So now I'm running CentOS 7 on my laptop as my physical host computer and installing multiple CentOS 6.6 KVM machines to complete all of the exercises in the study guide. The good thing is I have had to redo the first 5 or 6 exercises about 3 times each so far so I'm getting some good repetition.
 
  


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
centos init.d script PIPESTATUS gillecaluim Linux - Newbie 1 10-10-2014 01:18 PM
CentOs init 3 unusable, constant stream of text pinkyzbrain Linux - General 7 06-20-2013 02:39 PM
is systemctl here to stay? zQUEz Linux - General 3 11-18-2012 07:55 AM
[SOLVED] init script, centos/rhel, lighttpd, specify user s2cuts Linux - General 2 10-02-2009 08:31 PM
Centos 5 Init 5 not loading GUI silcf Red Hat 1 09-29-2007 12:47 PM

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

All times are GMT -5. The time now is 08:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration