Linux to Mac
Apple's launchd Is Anti-Unix
- 2010.07.13 - Tip Jar
Popularity: ![]()
![]()
![]()
![]()
![]()
![]()
Short link: http://bit.ly/cGfR9s
Starting with Mac OS X 10.4 (Tiger), Apple began to move away from the core BSD Unix-like system that was the genesis of the Apple resurgence on the desktop.
You might think Steve Jobs was the single most important factor in the second rise of Apple. There is no question that he has had a huge impact on the company, and I do not aim to diminish his accomplishments. But going all the way back to NeXTstep, the BSD core has been the backbone of the Jobs operating system vision.
It was BSD goodness that got me to switch from Linux to Mac several years ago. One of the great things about Unix-like systems is that most of your skills, programs, dot files, and highly polished shell scripts are portable. I brought them with me to OS X after dragging them through a dozen or so Linux distributions. There is always a little collateral damage, but it is usually minimal.
Consequently, I was distressed when launchd emerged from the dark side of One Infinite Loop. Launchd is the Apple-created open source program for starting, stopping, and managing daemons, programs, and scripts. It supersedes the init process and a handful of daemons (crond, atd, and inetd/xinetd). Apple's rationale for this is posted in Getting Started with launchd.
Minor Issues
Merging periodically run jobs into the main system process doesn't make sense. Replacing a simple /etc/crontab text file with multiple, awkwardly named XML plist files scattered among no less than four different directories is taking two big steps toward complexity.
Starting infrequently used on-demand socket-based daemons from launchd seems like it could open the main system process to a potential denial of service attack. I have not explored this idea or researched to see if it has already been tried, but I would opt for inetd/xinetd over launchd.
Deeper Issues
Reasonable people can argue the technical merits of launchd, and I think a case can be made for improving the original init system. However, I have a deeper philosophical problem with all the functionality that has been rolled into it: One of the core principles of Unix programing is do one thing and do it well. Another is keep things as simple as possible. From that perspective, launchd tries to do too many things, creating needless risk and complexity.
Apple sees launchd as a natural improvement to traditional
Unix; I view it as an anti-Unix monolith. It is part of a disturbing
trend that I hope does not continue.
Join us on Facebook!, follow us on Twitter, use our Google+ page, or read our RSS news feed
Keith Winston is a recent Mac convert after five years of Linux on the desktop. He also writes for Linux.com and created CommandLineMac to focus on the Unix-y power of the Mac. If you find Keith's articles helpful, please consider making a donation to his tip jar.
Recent Linux to Mac Columns
- Automount OS X Home Directories Using OpenLDAP and Linux, 2009.09.28. It's possible to get an OS X Mac to automatically mount a Linux server using OpenLDAP. The tricky part is finding all the steps needed to make it work.
- Introduction to Autofs in Mac OS X, 2009.07.01. "Autofs is often used in enterprise environments to set up network-based home directories and other network mounts for users at login."
- Automating FTP on the Mac, 2009.03.04. There's no shortage of GUI FTP programs, but using the Terminal gives you tools to automate file transfer sessions.
- More in the Linux to Mac index.
Links for the Day
- Mac of the Day: Unitron Mac512, introduced 1985. Unauthorized Brazilian clone of the Mac 512K.
- May 24 in LEM history: 99: Mac sales up, iMac sales down? - 01: Speeding up digital photography - 02: The Internet, research, and plagiarism - 04: NewerTech TiBook battery - Optical mice from Contour - 06: Power Mac today or Intel tomorrow? - 07: G5: Apple's last fling with PowerPC - G3: From 233 MHz to 1.1 GHz
- Support Low End Mac
Recent Content on Low End Mac
- Lion and the End of Bootable OS X Installers, Frank Fox, Stop the Noiz, 2012.05.23. Mac OS X Lion is only available as an upgrade from Snow Leopard. Is this the end of bootable installers from Apple?
- Mac Pro on the Way Out or Changing with the Times?, Dan Bashur, Apple, Tech, and Gaming, 2012.05.22. No other desktop Mac offers a wide range of expansion options, but is that enough reason for Apple to keep the behemoth powerhouse Mac Pro around?
- iPhone 3D: Stereo Photography and 3D Movies for the Rest of Us, Anne Onymus, The Rumor Mill, 2012.05.22. Until now, stereo photography and 3D movies required expensive dedicated equipment. With the iPhone 3D, Apple will make it available to the masses.
- iPad 2 'Feels Like an Upgrade' from New iPad, Samsung Tops Apple in Smartphone Market, and More, iOS News Review, 2012.05.21. Also Apple to maintain tablet dominance, working in portrait mode, Wozniak would like to see end of walled garden, and more.
- MacBook Airs Top Ultrabooks, Boost MacBook Performance, MacBook Pro Update in June?, and More, The 'Book Review, 2012.05.21. Also Retina displays available now but costly, USB 3 expected in next MacBook rev, hybrid drives an affordable alternative to SSDs, and more.
- More links in our archive.
Recent Deals
- Best 12" PowerBook G4 Deals
- Best MacBook Air Deals
- Best iPad Deals
- Best Mac OS X 10.6, iLife, and iWork Deals
- Best iPod classic Deals
- Best 15" MacBook Pro Deals
- Best iBook G4 Deals
- Best Classic Mac OS Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
Don't install Parallels to play poker online! Macpokeronline.com will show you how to download and play Poker on a Mac natively on your Mac in just minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
Deal Brothers
DealMac
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The iTunes Store
PC Connection Express
Parallels Desktop for Mac
eBay

