Questions tagged [systemd]

systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

1471 questions
16
votes
3 answers

systemd's journalctl: how to filter by message?

journalctl looks like a great tool for looking through logs, but I'm stuck on what feels like a simple ask: I want to see all cron messages that contain the phrase update-ipsets. Of course I can do this journalctl -u cron.service | grep…
artfulrobot
  • 2,949
  • 13
  • 36
  • 60
16
votes
7 answers

Running systemd inside a docker container (arch linux)

I am trying to see if I can run systemd inside a docker container (which is running arch linux in the container). I start docker with all capabilities, and bind mount in cgroups: docker run -it --rm --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro…
Michael Neale
  • 3,704
  • 5
  • 28
  • 26
15
votes
3 answers

How to break complicated ExecStart line while still having comments in the middle?

I have a long command-line to put into a systemd ExecStart entry. I understand I can break a long line into multiple ones by ending each non-final line with a backslash. However, how can I document the parts with comments? E.g. the following won't…
Syncopated
  • 267
  • 1
  • 2
  • 5
15
votes
1 answer

What is SIGRTMIN+24 in syslog?

My Debian 8 vm has lots of systemd logs like this: Apr 28 23:02:09 foo systemd[22305]: Starting Shutdown. Apr 28 23:02:09 foo systemd[22305]: Reached target Shutdown. Apr 28 23:02:09 foo systemd[22305]: Starting Exit the Session... Apr 28 23:02:09…
artfulrobot
  • 2,949
  • 13
  • 36
  • 60
15
votes
2 answers

Is there a way to run just save with firewalld in RHEL7?

I'm starting to use RHEL7 and learning a little about the changes that come with systemd. Is there a way to perform /sbin/service iptables save in firewalld? $ /sbin/service iptables save The service command supports only basic LSB actions (start,…
Peter Souter
  • 651
  • 1
  • 4
  • 13
15
votes
9 answers

failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint

I have installed kubelet 1.26.0 on Ubuntu 22.04 using apt install kubelet command, but when I try journalctl -xeu kubelet I get the following result: ░░ ░░ The unit kubelet.service has entered the 'failed' state with result 'exit-code'. Dec 14…
best_of_man
  • 367
  • 1
  • 3
  • 12
14
votes
1 answer

Killing systemd service with and without systemctl

What is the difference between killing an running daemon systemd service like this : kill -SIGKILL 3645 and systemctl -s kill -SIGKILL 3645 where 3645 is the pid of the systemd service.Also are there any drawbacks of using the first method?
Gordon
  • 161
  • 1
  • 1
  • 4
14
votes
5 answers

systemd, per-user cpu and/or memory limits

There is similar question: Cgroups, limit memory per user, but the solution doesn't work in "modern" systems, where cgroups hierarchy is managed by systemd. Straightforward solution — templating user-UID.slice — won't work, because it is not…
intelfx
  • 311
  • 1
  • 2
  • 11
14
votes
3 answers

Systemd drop-in fails to create PID file

I have a drop-in for systemd-machined at the path /etc/systemd/system/systemd-machined.service.d/10-machined-pid-file.conf. when I run systemctl status systemd-machined I do see the lines Drop-In: /etc/systemd/system/systemd-machined.service.d …
Christian Grabowski
  • 559
  • 1
  • 5
  • 18
14
votes
1 answer

systemd Using 4GB RAM After 18 Days of Uptime

I have a web server running CentOS 7, on which the systemd process is using nearly 4 GB of RAM after a couple weeks of uptime. RAM usage is increasing steadily at about 200MB per day. This and related processes like systemd-logind and dbus-daemon…
meridionaljet
  • 351
  • 2
  • 4
  • 10
14
votes
8 answers

Where is systemd script for mysql.service located?

I am actually using MariaDB (drop-in replacement for MySQL). I'm trying to make some changes to my systemd mysql.service file. I can see it exists because running sudo systemctl lists it and indicates that it is loaded / active / running. The issue…
David Mackey
  • 697
  • 2
  • 15
  • 30
14
votes
2 answers

Change systemd unit tag send to journalctl/syslog

Is it possible to change what tag systemd managed service uses for logging? For example, my custom service report-daemon.service defined as # ... [Service] ExecStart=/usr/bin/php # ... # ... shows up as php instead of report-daemon (it seems to…
Mikulas Dite
  • 328
  • 1
  • 3
  • 12
14
votes
2 answers

How to properly use kexec with systemd on CentOS 7?

I want to use kexec to speed up reboots of my CentOS 7 machine. How can I do that in a way that nicely integrates with existing shutdown/reboot systemd targets? What's the proper (official) way to do this?
Matrix
  • 363
  • 3
  • 10
14
votes
2 answers

How can systemd run a command as root before launching a service as a different user?

I'm running svnserve on a Fedora 17 machine with the following systemd service file: [Unit] Description=Subversion Server After=syslog.target network.target [Service] User=svn Type=forking Environment=HOME=/repos/svn ExecStart=/usr/bin/svnserve…
DNS
  • 263
  • 1
  • 2
  • 7
13
votes
1 answer

How does systemd ask units to reload configuration?

I was reading the manpage for systemctl reload and found this sentence about reload. reload PATTERN... Asks all units listed on the command line to reload their configuration. http://man7.org/linux/man-pages/man1/systemctl.1.html How does…
425nesp
  • 2,892
  • 2
  • 12
  • 8