Hot answers tagged

3 votes
Accepted

How can I get colored output of `systemd` commands run with `watch` inside xterm?

Thanks to the comment from @muru, I finally got colored output. I needed this change: alias Xterm='SYSTEMD_COLORS=1 xterm -geometry 132x60 -e ' 🗒 For Wayland i also needed -rv before the -e option ...
Tripple Moon's user avatar
2 votes

How to check systemd hardware watchdog state

I wondered the same thing and browsing for a similar issue I came up with the following: sudo strace -t -e ioctl -p1 | grep WDIOC_KEEPALIVE At half the timeout interval, you should see something ...
tom9960's user avatar
  • 21
2 votes
Accepted

What is systemd -.slice?

If you run systemctl list-units --type=slice, you'll see that the -.slice is described as the Root Slice. man systemd.slice says: A slice unit is a concept for hierarchically managing resources of a ...
telcoM's user avatar
  • 88.4k
2 votes
Accepted

Reorder of launching Systemd services

With your configuration, sshd.service will certainly start only after zerotier-one.service starts. But that is not enough. The sshd.service would need to wait until Zerotier has actually connected ...
telcoM's user avatar
  • 88.4k
2 votes

Kubuntu 20.04 Shutdown/Reboot Hangs At "Waiting for process: crond"

If the problem is faced after installing "Free Download Manager", then you just got infected with Malware. https://securelist.com/backdoored-free-download-manager-linux-malware/110465/ That ...
Vishal Santharam's user avatar
2 votes

How to update programs compiled from source (from Github)?

Presumably you cloned the Github repository. So you git pull to update your local copy of the repository, and you build whatever it is, again. And you install it, again. You're backing up your ...
Marc Wilson's user avatar
1 vote

Mounting OverlayFS in fstab at startup

Yes and no. As far as I know systemd doesn't support mounting something from /etc/fstab and then reloading unit files. Others may know a way that I don't!. However there's one file system which isn't ...
Philip Couling's user avatar
1 vote

How to restart systemd service if it is taking too long to run?

Use the RuntimeMaxSec directive. You cannot use a watchdog because buggy program will need to be modified. From man systemd.service: RuntimeMaxSec= Configures a maximum time for the service to run. ...
Cristian Rodríguez's user avatar
1 vote
Accepted

What is parsing/applying /etc/fstab entries

The kernel usually mounts the root filesystem at the very end of the boot sequence. It is usually mounted readonly and irrespective of whatever mount option set as part of the /etc/fstab file. Control ...
MC68020's user avatar
  • 6,359
1 vote

Why am I missing $XDG_RUNTIME_DIR and $DBUS_SESSION_BUS_ADDRESS after logging in via SSH and trying to set up user scope service

$XDG_RUNTIME_DIR and $DBUS_SESSION_BUS_ADDRESS were not being set when logging in via SSH because I had turned off PAM system in the host's SSH server configuration. sudo nano /etc/ssh/sshd.config ...
deanresin's user avatar
  • 441
1 vote

Reorder of launching Systemd services

Any workaround will keep breaking because this is the incorrect layer to solve the problem. It is not on systemd or zerotier.. it is sshd that needs to allow setting the IP_FREEBIND socket option to ...
Cristian Rodríguez's user avatar
1 vote

How to add a static IP address to a network interface using systemd.networkd, if the filesystem is read-only?

It turns out there is a simple answer to this: you can place networkd configuration files in /run/systemd/network, which is writeable even on an otherwise read-only filesystem.
Jeremy Friesner's user avatar
1 vote

Running a systemd service at boot with ALSA

First of all, it is expected that you can't "hold" / "delay" a service start with After=sound.target since sound.target does not exist in the "bootup unit tree". systemd (...
Tom Yan's user avatar
  • 495
1 vote

Running a systemd service at boot with ALSA

I think your dependency on sound.target is correct (although I would also add Requires=sound.target, since it does require sound support). I'm not entirely sure what the problem is here -- maybe some ...
larsks's user avatar
  • 32.8k
1 vote
Accepted

Limiting process memory usage with systemd-run not working as expected

that's just virtual memory, not actually allocated memory; things seem to be working well.
Marcus Müller's user avatar
1 vote

Does systemd "After=" check if services in it are started without failures before starting the service?

You should view After=x as meaning: Start doing this job after you have finished doing job "x". It doesn't instruct anything with respect to the result of doing job "x", it only ...
Tripple Moon's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible