Earlier quoted context omitted.
Upstart provided comparable service for years. There was no reason to use bash scripts and watchdogs / restarters before.
Yes, there was a reason: Having to support other distros. The big deal now is that all the major distributions support the same mechanism.
Ubuntu 16.04 (Xenial Xerus)
261–270 of 303 posts
Re: Ubuntu 16.04 (Xenial Xerus)
#262Earlier quoted context omitted.
Upstart provided comparable service for years. There was no reason to use bash scripts and watchdogs / restarters before.
Except upstart actually allowed shell code in its configuration files[1]. Now, it did have the "exec" stanza which was far cleaner, but if you look through what Ubuntu actually did in practice, I think you'll find quite a lot of "script" stanzas in there. [1] http://upstart.ubuntu.com/cookbook/#script
Re: Ubuntu 16.04 (Xenial Xerus)
#263Re: Ubuntu 16.04 (Xenial Xerus)
#264Earlier quoted context omitted.
Which of course still leaves OS X, *bsd, Solaris AFAIK. But it should cut down on the internal Linux incompatibilities a bit. I'm not a fan of systemd, but having one broken standard is much better than having four broken standards :-)
> Which of course still leaves OS X, bsd, Solaris AFAIK. AFAIUI OS X has launchd, and Solaris has OMF[1]? ... so basically the BSDs are the ones left behind? [1] I think that is the acronym for Solaris' XML-based standardized system service files? (I don't care that they're XML. It care that they're standardized .)
Re: Ubuntu 16.04 (Xenial Xerus)
#265Earlier quoted context omitted.
But bash is installed by default if I'm not terribly mistaken, and it's classified as an essential package. If you put in a bash shebang, it should work.
I have seen several people use #!/bin/sh and write bash code. This is going to break on debian machines when you do ./foo If more people used #!/usr/bin/env bash, it wouldn't be that big of a deal.
If they wrote posix compatible shell scripts it wouldn't be any big deal because they'd just work.
Re: Ubuntu 16.04 (Xenial Xerus)
#266Notes from my 15.10 -> 16.04 upgrade: 1) If you use the nvidia drivers from the graphics-drivers PPA, starting the default non-root X server will hang with no graphics output. Installing xserver-xorg-legacy fixes this. 2) LXC+Linux 4.4 seems to be very broken: https://github.com/lxc/lxd/issues/1666#issuecomment-21290311... 3) Pulseaudio now uses shared memory and playing audio inside a firejail will break the pulseau…
Re: Ubuntu 16.04 (Xenial Xerus)
#267Earlier quoted context omitted.
HN coolkids downvoting advice that makes software more portable and reliable. What a fucking shock.
Unless you've actually tested it with a shell other than bash, you should be marking it as bash. Otherwise it's likely it will not actually be portable between shells, and you will have made your software less reliable. I've encountered many scripts written by developers on Fedora that totally fail over when run on Ubuntu specifically due to using #!/bin/sh when they really required #!/bin/bash.
I specifically said "Write clean, posix-compliant shell scripts"
Do the same developers write Java code in a .cpp file and wonder why it doesn't work? Or put Yes, you need to test to make sure that you wrote the correct things.
Re: Ubuntu 16.04 (Xenial Xerus)
#268> Online searches in the dash are now disabled by default [1] A welcome and saner default. I'm thinking of moving back to Ubuntu from LinuxMint (I was thinking of Arch as well but not too confident of being on the bleeding edge). [1]: https://wiki.ubuntu.com/XenialXerus/ReleaseNotes
Re: Ubuntu 16.04 (Xenial Xerus)
#269Been using 16.04 on my XPS 13 for a week or so now, it finally supports nearly everything (bluetooth is a couple of extra commands) out of the box, and I've not had any issues so far.
how's the audio jack working, I got my XPS 15 last week, and planning to install ubuntu LTS once released. I read that audio jack is tricky to get working
Re: Ubuntu 16.04 (Xenial Xerus)
#270Notes from my 15.10 -> 16.04 upgrade: 1) If you use the nvidia drivers from the graphics-drivers PPA, starting the default non-root X server will hang with no graphics output. Installing xserver-xorg-legacy fixes this. 2) LXC+Linux 4.4 seems to be very broken: https://github.com/lxc/lxd/issues/1666#issuecomment-21290311... 3) Pulseaudio now uses shared memory and playing audio inside a firejail will break the pulseau…
Seeing as my main use for my current 14.04 install is LXC containers, I think I will hold off a little then.
Thanks for the warning :)