Skip to content

u/pingveno

In this archive from Oct 2010 to Nov 2020

2
posts
58
comments
0
media
368
score

Top posts

Top comments

With a plaintext log, you have just the the log with minimal structure. Try:

journalctl -o verbose

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:

journalctl -u mariadb

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:

journalctl -b  # current
journalctl -b -1 # previous

All of these options can of course be composed together.

38 points

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>

36 points

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.

14 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.