3 ms·
How much are you willing to pay for those choices? Each init system doubles your testing load, which is already a concern, but more importantly it also means th
by acdha 12y ago
How much are you willing to pay for those choices? Each init system doubles your testing load, which is already a concern, but more importantly it also means that there are features which are either need to be dropped or which will require time developing abstraction layers for multiple init systems.
That might still be worth doing but this is a lot more than saying “Oh, if you don't like vim don't install it”. All of that will require time, effort and be a source of bugs / UI clunkiness which no other operating system has to deal with – I'd much prefer that people pick 1 system and spend time getting closer to the “it just works” level which OS X and Windows have been at for years rather than maintaining a stable of patches and extra code.
- pyre 12y ago> “it just works” level which OS X I have experienced issues with launchd which do not exist in the components that it replaced (e.g. cron, init, etc). For example, try setting a cronjob that runs every minute in launchd (e.g. running fetchmail). launchd says, "process exited too quickly" and disables the entry. [I'll note that this was an old example. Hopefully it's been fixed, but it's been far from "just works".]
- acdha 12y agoI was talking about the normal user experience which systemd is designed to handle – e.g. hotplug a USB camera and Chrome can use it for WebRTC. In this specific case, launchd is designed as an init replacement which keeps processes running. The restart throttle is designed to prevent crash loops which are horrible for battery life and tends to fill up logfiles, so it expects the process to run for at least 10 seconds. The easiest way to solve that would be to use it as intended and run fetchmail -d rather than spending the extra overhead restarting fetchmail all of the time.
- edwintorok 12y agoWhy can't it look at the exitcode? If you exited with success why does matter how long it runs? The faster it is done with running processes the faster it can go back to sleep.
- acdha 12y agoThink about it from the perspective of the operating system vendor: J. Random Codeslinger never checks return codes and always exits 0 so launchd ends up running the thing semi-constantly until syslog fills up the disk with "Usage: …" messages. If you have a professional sysadmin monitoring things, this gets fixed. If you're the average Mac user, you tell all of your friends that the last OS X release sucks and made your Mac slow and eventually go to the Apple store when your hard drive fills up.
- pyre 12y agoWhat if the system process that you want to run periodically takes less than 60 seconds to run? Why should I have to wrap it in a shell script that ends with 'sleep 60' just to accommodate Apple?
- pyre 12y ago> The easiest way to solve that would be to use it as intended and run fetchmail -d rather than spending the extra overhead restarting fetchmail all of the time. fetchmail is also intended to run as a system daemon as part of a full-fledged mail system. This isn't always the case. Also, launchd not just initd, but crond per Apple's consolidation of system daemons. That is a use-case for crond. If Apple wants to replace crond, then they should make sure that the replacement works. I'm sure that I could find other programs that might exit in under 60 seconds that don't have a daemon mode[1]. [1] To be clear it wasn't the 'run every minute' that was causing issues, but the 'exits less than 60 seconds after it starts' that was tripping it up. I could run fetchmail every 10 minutes, but when it is able to connect/verify that there isn't new mail in under 60 seconds, then the whole process gets disabled. Oops!
- ultramancool 12y agoWhy are you using Debian then? Debian is about flexibility, they build for an insane multitude of architectures and they offer Hurd and FreeBSD kernels even! With every package imaginable, Debian maintainers already invest a lot of work in supporting all of this. They work very hard to automate tests and builds in order to minimize this effort level and manage to create a high quality, flexible system. If you don't want flexibility but instead want a single ascended choice system like on OS X or Windows, use RHEL or one of the forks of it instead. Debian may simply not be the system for you.
- acdha 12y ago> Why are you using Debian then? Debian is about flexibility That's really a fundamental misrepresentation of Debian. As a Debian user since around 1997 or so, the value has always been that you get solid, tested packages which work out of the box – almost everything you need is an apt-get away and it's consistent across all of the systems with the same packages installed. When I was responsible for somewhat over a hundred systems (servers & desktops) that was invaluable for delivering a consistent user experience. Maximum flexibility would be something more like Gentoo where you can play around with config options and rebuild software with arcane flags, with the expectation that you're comfortable spending time diagnosing anything which breaks if you hit a combination which hasn't been well tested by anyone else. This is highly relevant to the discussion above because consistency starts becoming a LOT more work when you start needing to coordinate between multiple major projects. If you want, e.g., Firefox or Chrome to be able to use a webcam just after it's plugged in that requires communication a bunch of large code-bases (kernel, GNOME, audio daemon, browser, probably some sort of permission system which may or may not be in one or more of these, etc.) and all of that is either going to be harder or slower if you have to support a bunch of different systems with differing designs, bugs and it's a tax which people who don't support Debian won't have to pay. Remembering the era where people just accepted that things like audio or video wouldn't work on Linux because it was too much hassle, I appreciate the value of a single target.
- felixgallo 12y agoLinux has been at the "it just works" level for decades, where it matters -- on servers and appliances. It's "Linux on the desktop" where apparently boot times are a big deal requiring screwing up the entire operating system for.
- rst 12y agoAnd not even there, in my experience; my laptop and desktop reboot once every few weeks or longer, usually for kernel upgrades, and even with legacy init, bios-to-login-screen is not the longest part of that process. For interactive machines, systemd is already a complicated solution for a simple non-problem. For servers, it's worse.
- cwyers 12y ago> Linux has been at the "it just works" level for decades, where it matters -- on servers and appliances. Like hell. Anything beyond the most basic tasks on a server (and even the most basic tasks, sometimes) requires configuration, and often that configuration ranges between "nonintuitive" and "actively spiteful." If a service crashes and the pid file doesn't get handled properly, you've got to go in there and fix it. And god forbid you have to touch SELinux for anything. "Just works." I want what you're smoking.
- acdha 12y agoThe first few trivial counter-examples which come to mind: * someone adds a storage device. Now your server can't boot because what used to be /dev/sda1 is now /dev/sdc1. Yes, UUIDs partially address that but unless you were defining "decades" as "within the last year or so" you can't assume that they were used. * init script starts something, which crashes / is killed by OOM / etc. and you'd like it to be restarted. Note that this is still unsolved with upstart if the process crashes for more than your respawn limit, as is common with e.g. networking-related startup failures but, hey, it's the same braintrust which required multiple major releases to accept that sysadmins need logging and daemons to be started as users other than root or that "hang forever" is not a valid error handling strategy.
- felixgallo 12y ago