New answers tagged systemd
1
vote
ionice for systemd journal
I know this is an old question but I did put this into my rc.local and my Ubuntu Jammy partition is now just as responsive as my Artix Linux (non-systemd) partition:
/usr/bin/ionice -p $(/usr/bin/...
0
votes
sleep until this systemd timer calendar time occurs?
I've also found systemd timers super handy for scheduling scripts and jobs. For your use case of sleeping until a specific calendar time, here are a couple options:
Use systemd-run's --on-calendar ...
0
votes
Systemd CGroups - where are logs for exceeding resource limits?
There aren't logs per se - although instantaneous values of Pressure on CPU, Memory etc. can be read from the "files" in the cgroup hierarchy.
In order to make suggestions it would help if ...
0
votes
Is it possible to set CPUAffinity=0 for a specific process in its systemd service unit file?
The default CPU affinity mask CPUAffinity=0,24,48,72 applies to all services managed by systemd, but you can set your own affinity settings per unit.
To set a CPU affinity mask for a systemd service, ...
0
votes
Can't open PID file on Cent OS 7 for Apache status
If you read this: https://www.freedesktop.org/software/systemd/man/systemd.service.html#PIDFile=
it says:
PIDFile=
Takes a path referring to the PID file of the service. Usage of this option is ...
0
votes
systemd-gpt-auto-generator doesn't mount EFI system partition
I agree with you, it's better to empty the old fstab file and use the systemd-gpt-auto-generator, using unit files if necessary.
Some ideas:
fsck.vfat is missing ? (ie: Checking was requested for /...
2
votes
Why doesn't systemd capture output from subprocesses of a user service written in shell script?
EDIT 2: An observant colleague who has root reports that (a) the subprocess output is in the journal, it's just not associated with the service, and (b) he only sees this behaviour with a user service;...
3
votes
Accepted
How can I find the exact cause of systemd service unable to start (service has a bad unit file setting)?
You can use the systemd-analyze verify command. If we put the content from your question into pgha.service, we see:
$ systemd-analyze verify pgha.service
.../pgha.service:10: Failed to resolve unit ...
1
vote
Why doesn't systemd capture output from subprocesses of a user service written in shell script?
While I haven't investigated the underlying technical details, the same solution that works for Python (disable buffering) also works in this situation. If I use this unit file...
[Unit]
Description=...
1
vote
Accepted
Trying to set wake-on-lan persistently on linux fails
It appears the systemd script runs before the network interface has been renamed from eth0 to enp1s0.
In that case, make the systemd unit depend on a network interface named enp1s0. This is done by ...
Top 50 recent answers are included
Related Tags
systemd × 1477linux × 277
ubuntu × 124
debian × 119
systemctl × 94
centos7 × 93
service × 85
centos × 68
journald × 68
docker × 52
systemd-service × 43
coreos × 40
bash × 38
logging × 38
ubuntu-16.04 × 38
networking × 37
ssh × 34
linux-networking × 34
cgroup × 33
redhat × 32
fedora × 32
ubuntu-18.04 × 31
journalctl × 30
boot × 28
openvpn × 25