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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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
...
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 ...
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.
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 (...
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 ...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
systemd × 4423linux × 589
debian × 404
services × 397
ubuntu × 278
arch-linux × 226
centos × 195
systemd-journald × 170
boot × 151
systemctl × 151
networking × 129
fedora × 114
systemd-timer × 114
udev × 109
systemd-unit × 104
logs × 98
systemd-networkd × 98
mount × 97
sysvinit × 97
startup × 92
bash × 91
rhel × 89
shutdown × 84
docker × 78
cgroups × 78