PSA: Beware of mixing spaces and unquoted variables in PKGBUILDs
I've noticed that many packages in the AUR have variables that are not inside of quotes. That means that something like: build() { cd $srcdir/spameggs-$pkgver/ ... } blows up if an ancestor directory contains a space. Let's say I have "/home/pingveno/foo bar/". cd sees that as: cd "/home/pingveno/fo...
And it's a problem all across the tech industry. So many projects would be screwed by the loss of one key person, and there are often multiple people in even a small project that are like that. Good for job security, though.
With a plaintext log, you have just the the log with minimal structure. Try:
To see the extra information that is bundled in. You can search on each of those fields individually. Programs that support systemd as a specific target instead of just generic logging can add in their own fields. If you're only interested in logs associated with a particular service:
That will also include logs from subprocesses, so that's useful for services like NetworkManager that spawn other processes like dhclient.
Logs are tracked by boot, so you can easily grab just the logs from a particular boot:
All of these options can of course be composed together.
Too many to cover here, but among them:
Parallelization during startup for faster boot times.
Better logging, aided by integrated logging.
Runlevels are replaced by targets. Runlevels are simple numeric values that govern groups of services. In systemd, services start when a specified target starts, not with an arbitrary number scheme. There can be multiple targets running at the same time, unlike runlevels.
Dependencies. If a service needs another service to start up, systemd makes sure that the services are started correctly in order.
More maintainable config files. init uses shell scripts, which are a nightmare. systemd's files are sane. For example, a basic init script requires implementing many lines of boilerplate from scratch. A comparable systemd service file takes almost no effort, is less error prone, and has more features.
Fewer unnecessary processes starting up. Starting a bunch of shells is not efficient.
Improvements in cross distro support. For example, no one gets to disagree on how to enable a service. It's always:
$ systemctl enable <service>
This seems like a bad idea if you're trying to mask your identity. If any information flowing over the network can be used to identify you, you could completely lose anonymity. Given how even little bits of information like screen size can be used in surprising ways, having lots of little bits of information flowing over the network seems potentially hazardous.
Pros:
Arch packages (PKGBUILD's) are very simple and easy to write.
Arch policy is to assume that everyone is updated to the latest packages. That makes being on the bleeding edge less error prone.
Arch can benefit upstream projects by providing a large body of early adopters.
Arch users expect some instability. That makes them more willing to migrate to improved solutions. Example: systemd. The previous init system needed to be replaced. There was some grumbling, but most people weren't breathing fire over the move.
Cons:
Arch's PKGBUILD format has relatively few layers of abstraction compared to many other formats. That makes Arch packages relatively inflexible. Case in point: Gentoo supports building the same package for multiple versions of Python straight from the main repositories. Arch depends on AUR packages for that, if they even exist.
Arch users often don't appreciate how much Arch uses the work of other distros.
You can't really use Arch for a low maintenance server.
The /usr/bin/python -> python3 switch was a horrible and impulsive move.