LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-20-2012, 05:23 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 80
Difference between telinit and init on a system using systemd


What is the difference between the init command and telinit on a Linux os with systemd such as Fedora? On other systems without systemd, one is a symbolic link to
the other. On my Fedora 16 system, one is not a symbolic link to the other, and they are not the same binary because differ in size.
 
Old 10-20-2012, 06:50 PM   #2
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Review the cheatsheet here: http://fedoraproject.org/wiki/SysVin...emd_Cheatsheet
In all likelihood telinit is a symlink to systemctl.
 
Old 10-21-2012, 04:11 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Original Poster
Rep: Reputation: 80
Why the need for 2 commands that do exactly the same thing then?
 
Old 10-22-2012, 12:06 AM   #4
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
It's a compatibilities / sensibilities approach. SysV-style init has been around for ages; it's what all of us old-school admins know; it is also a brittle, loathsome mess. However, systemd, for all of its perks, may not yet be ready for prime-time (I'm talking production environments - I have yet to implement a switch to it in such an environment, although I'm considering doing so at my upcoming job). So, they compromise. Hell, for a long time there was a compromise built into some distros and other UNIX-like systems, which would use either have a symlink named telinit that linked to init, with the capabilities of acting like telinit built in, or a standalone telinit that also had its utility built in to a standalone init. A lot of this double-duty crap is fairly common at the legacy systems level, because it is foundational and expected to work a certain way by a great number of stodgy admins with huge farms of established systems.

I would suggest you learn everything you can about systemd, since that is the future of stable production systems, and use it. Forget SysV - the reason it is so simple to set up and use is because it has to be. Exploiting the backwards compatibility of systemctl by calling it as telinit is only masking the complexity of what is really going on now.

/rant

http://0pointer.de/blog/projects/why.html
 
  


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
telinit vs init binary_0011 Linux - Newbie 6 04-16-2014 04:19 AM
LXer: Here We Go Again, Another Linux Init: Intro to systemd LXer Syndicated Linux News 0 12-13-2011 07:51 PM
LXer: Here We Go Again, Another Linux Init: Intro to systemd LXer Syndicated Linux News 0 12-13-2011 07:02 PM
Informaton on systemd init system? arashi256 Linux - Newbie 1 06-04-2011 07:06 PM
init 3 or telinit 3 dosnt exit xorg noteventime Linux - Software 6 03-13-2005 06:01 PM


All times are GMT -5. The time now is 07:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration