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
9
votes
2 answers

Net bind capability with systemd

I am deploying Goldfish, an interface for Vault, in production on a server dedicated to secrets management. So security is of prime concern here. I am trying to deploy the service with systemd on an Unbuntu 16.04 system, giving it the least possible…
Macfli
  • 91
  • 1
  • 1
  • 4
9
votes
3 answers

Why are journald logfiles so huge?

When I do a journalctl --disk-usage it says something about 300MB size of the journal files but when I look at the actual text with journalctl | wc -c it's something about 28MB. Well, journald has compression and even considering the metadata like…
Smith_33
  • 93
  • 1
  • 4
9
votes
1 answer

systemctl --user: Process org.freedesktop.systemd1 exited with status 1

The box is a debian stable (stretch as of now). The problem I encountered is that systemctl can't query user service manager. For command, systemctl --user The error message is: Failed to list units: Process org.freedesktop.systemd1 exited with…
Gang Liang
  • 193
  • 1
  • 1
  • 6
9
votes
2 answers

How do I set cgroup limits for systemd user slices?

I would like to limit usage of a system on a per user basis. Since Systemd has native support for cgroups, I think using user slices is the way to go. The problem is: I can't figure out how to set individual limits. I can edit the user.slice unit…
Steve F
  • 351
  • 1
  • 2
  • 9
9
votes
1 answer

How to disable logging for a particular systemd unit

I have a systemd unit, which creates a lot of useless log (around 1GB per day), so I want to disable logging for this unit. How can I manage to do this? Thanks
dynos01
  • 129
  • 1
  • 1
  • 4
9
votes
2 answers

How can I find failed systemd services?

When I run systemctl status on a specific server, I get the following output: ● ⟨host-name⟩ State: degraded Jobs: 0 queued Failed: 1 units Since: Fr 2017-06-09 00:34:27 UTC; 1 weeks 5 days ago CGroup: / … How can I find out which…
Patrick J. S.
  • 201
  • 1
  • 2
  • 5
9
votes
4 answers

How do I know if systemctl daemon-reload needs to be run

Is there a way to know the current running config is outdated? Is there a way to view the current running config and compare it to the file? It would be valuable for troubleshooting to know what the running config was before running reload. Also…
red888
  • 4,183
  • 18
  • 64
  • 111
9
votes
1 answer

Is it possible to override a systemd unit file to create a template unit file?

I know that systemd provides an excellent mechanism to override a package-provided unit file to influence the service configuration/behavior. This is typically done by using the below command sudo systemctl edit to create an override…
sujitv
  • 95
  • 1
  • 6
9
votes
1 answer

delete systemd not-found services

My server shows multiple missing services. How can i delete them from Systemd? They are not-found. systemctl -a shows: multiple not found systemctl reset-failed shows: still shows These (none of them are in /etc/systemd/ or /lib/systemd): …
Patrik Laszlo
  • 175
  • 1
  • 10
9
votes
2 answers

Wait for systemd oneshot service to finish

I am doing some server provisioning and I need to run a script AFTER installation as it requires the system to be fully functional, include services. So I cannot put it inside the %post section of my kickstart file. Instead I have created a systemd…
Christoffer Reijer
  • 417
  • 1
  • 4
  • 16
9
votes
2 answers

Systemd execute command after start limit reached

I've been working on a systemd service to wrap an administration script and I'm trying to gracefully handle it completely breaking. Right now I have Restart set to always so it will try again when something fails, but some failure states require…
Will
  • 93
  • 1
  • 5
9
votes
2 answers

Access files in system tmp directory, when using PrivateTmp

I am using php-fpm with PrivateTmp enabled. I have to read a file from PHP, which is copied by a remote deployment agent to the /tmp directory. Since PrivateTmp is enabled, I am unable to directly access /tmp directory. Is it possible to read a file…
Joyce Babu
  • 251
  • 3
  • 11
9
votes
1 answer

How to stop systemd services in specific order

How do I ensure a particular order is followed when a specific systemd service is stopped? I have several systemd services/units that I have running but use resources on various mounted partitions. These partitions are mounted and unmounted using a…
ForeverACE
  • 93
  • 1
  • 1
  • 4
9
votes
1 answer

Tomcat service does not see $JAVA_HOME

I'm trying to setup a Tomcat service with Systemd on CentOS 7. I've installed Oracle Java 1.8u74 to /usr/java/jdk1.8.0_74 and set the environment variable $JAVA_HOME at boot like so: # echo "export JAVA_HOME=/usr/java/jdk1.8.0_74" >…
isapir
  • 233
  • 1
  • 2
  • 9
9
votes
1 answer

proc-sys-fs-binfmt_misc.automount failed service

I am using ubuntu 14.10. I have just installed systemd and I have a failing service, proc-sys-fs-binfmt_misc.automount. I've seen here it's a part of systemd: Is this file important? How do I solve the activation issue ? The output of systemctl…
Sébastien
  • 250
  • 3
  • 9