Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Feb 13, 2013 5:54 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
For a long time I really didn't see the point of systemd. RC scripts work fine, why replace something that works perfectly well? After a bit of reading I've discovered that systemd is actually very cool.

If you have a bit of reading time you might want to look at:
http://0pointer.de/blog


Top
   
PostPosted: Wed Feb 13, 2013 1:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Did you fall on your head?

Compared to Chkconfig/Service, Systemd is a bloated, overly complicated, nightmare that has no (zero, zip, nadda) purpose being in a SERVER OS.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Feb 13, 2013 2:06 pm 
Offline
Junior Member

Joined: Wed Jul 04, 2012 11:08 am
Posts: 34
You could have saved some characters and just gone with "GET OFF MY LAWN!"

srs


Top
   
PostPosted: Wed Feb 13, 2013 2:18 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Asking from genuine ignorance here: do both options allow parallel loading? Or does one of the options only load things sequentially?


Top
   
PostPosted: Wed Feb 13, 2013 3:09 pm 
Offline
Junior Member

Joined: Wed Jul 04, 2012 11:08 am
Posts: 34
Both "variants" of init can support parallel loading - Debian does with the old style init if the LSB dependencies are declared, not sure if RHEL/Centos does.


Top
   
PostPosted: Wed Feb 13, 2013 3:51 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
vonskippy wrote:
Did you fall on your head?


Yes, but that was years ago and the scar has faded so much it's barely visible anymore. It never stopped me getting into Mensa so I guess the damage can't have been that bad.

vonskippy wrote:
Compared to Chkconfig/Service, Systemd is a bloated, overly complicated, nightmare that has no (zero, zip, nadda) purpose being in a SERVER OS.


That's exactly what I thought about it at first, and the reason I avoided it for so long. It's really none of those things you list, it's a good thing(tm). RHEL 7 is going to come with systemd but you will still be able to use chkconfig and service as before as well as the new systemctl commands.

Sadly it won't help keeping those dam kids off your lawn.


Top
   
PostPosted: Wed Feb 13, 2013 11:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Lets see.....

Is this command easier to type, remember, understand
Code:
chkconfig httpd --list


Or is this such a better (or shall we say cooler) way of doing it
Code:
ls /etc/systemd/system/*.wants/httpd.service 


And of course only the nerds would be dumb enough to want to type this
Code:
service httpd start


When all the cool kids are typing this
Code:
systemctl start httpd service


There is NO REASON for the added complexity and longer syntax.

RHEL is getting major flack for letting the Fedora dorks dictate procedural calls in RHEL. It will be interesting to see if Systemd makes it past RHEL 7 into RHEL 8. There are thousands (and thousands) of scripts that will need to be tinkered with for a big fact zero gain. Most businesses frown on having their overpaid IT staff do needless work.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Thu Feb 14, 2013 7:18 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
If only there were a way they could make 'chkconfig' and 'service' behave exactly the same as they do now...

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Thu Feb 14, 2013 7:29 am 
Offline
Senior Member
User avatar

Joined: Sat Apr 07, 2012 3:40 am
Posts: 56
Website: http://for-no-reason.net
Location: Australia
vonskippy wrote:
When all the cool kids are typing this
Code:
systemctl start httpd service



I've never needed to start anything that way, just doing for eg
Code:
systemctl start httpd
worked fine. Unless fedora etc are doing something dodgy...


Top
   
PostPosted: Thu Feb 14, 2013 10:02 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Here is a very short list of some of the advantages that systemd has over sysvinit:

It figures out dependencies and starting order of daemons. Sysvinit has to be told what order to start things in.

Because of the above it starts daemons in parallel giving a very fast boot time.

The configs are declarative ( like puppet, cfengine, etc ), not overly long shell scripts.

Systemd keeps track of processes with linux cgroups, which allows systemd to find all subprocesses of started daemons no matter how much they fork() and exec(). This is impossible with the standard rc script setup.


Top
   
PostPosted: Thu Feb 14, 2013 9:52 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
sednet wrote:
It figures out dependencies and starting order of daemons. Sysvinit has to be told what order to start things in.


Does systemd determine this on its own, or does it need to have dependencies given in a config file? If the latter, LSB sysvinit also has this capability, although whether it uses this vs. hardcoded boot sequence values depends on your distro.

A couple systemd capabilities would seem to be useful on Linode:

- Starting network services on demand ala inetd. This way a less-used daemon need not sit loaded in memory (or swap) all the time just waiting for connections.

- Automatically restarting services that have died without having to run monit or similar.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group