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

Is logrotate supposed to work only in logs inside /var/log?

I currently have a systemd service in a Ubuntu 18.04 machine that redirects the StandardOuput and StandardError to a custom path: StandardError=file:/opt/my_tests/my.log StandardOutput=file:/opt/my_test/my.log But I'd like to add a log rotation and…
ignacio
  • 101
  • 4
0
votes
0 answers

Why does VLC fail with "cannot resolve" when called by a systemd service?

I'm trying to run a script that launches a vlc process from a systemd service. The script works fine if I launch it manually, but fails if I call it from systemd. The error I see in the logs is: Oct 18 15:24:40 ip-172-31-13-123 python3[23937]:…
jeremyjr
  • 375
  • 2
  • 7
  • 15
0
votes
1 answer

Monitoring swap usage of cgroup

I have a bunch of .NET Core applications running as systemd units. The host is running out of memory and slowly increasing swap usage to 100% so I suspect one or more of the services has a memory leak. When I run htop all the services show under the…
DaveO
  • 175
  • 1
  • 5
  • 16
0
votes
1 answer

Files becoming owned by systemd-network:systemd-journal in WSL2 and Docker setup

So I'm running Ubuntu 20.04 under WSL2 with Docker. Occasionally the files mounted by Docker (could be other files as well) are getting their ownership changed from my user to systemd-network:systemd-journal (or in uid format 100:101). It's a…
Mattisdada
  • 57
  • 1
  • 2
  • 16
0
votes
1 answer

How to arrange a non admin command as a systemd service?

For example, I want to run minikube start. First I created the following minikube.service file: [Unit] Description=Runs minikube on startup After=vboxautostart-service.service vboxballoonctrl-service.service vboxdrv.service…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

Systemd: Unlock drives before ZFS import

I have LUKS encrypted drives and ZFS on top of that. I unlock the drives on boot using a script. I made a systemd service for that, but the script take some time and the zfs-import-cache.service starts before my script…
Laurent
  • 406
  • 1
  • 4
  • 14
0
votes
1 answer

How to solve "Active: activating (auto-restart)" when starting collectd.service?

I have problem with starting collectd.serivce in my Fedora 31 64-bit OS which I've installed via sudo dnf install collectd command. When I type sudo systemctl status collectd.service I get following output: ● collectd.service - statistics…
NikolaS
  • 101
  • 1
  • 1
  • 7
0
votes
1 answer

systemd 219 capabilities behavior

We're running systemd verson 219 on CentOS 7, inside an LXC container, and we're having trouble with capabilities. systemd appears to be dropping capabilities, contrary to the systemd.exec(5) man page. I have a C program and a shell script that…
stolenmoment
  • 181
  • 1
  • 4
0
votes
1 answer

Systemd socket activation for multiple ports on Apache

On an Apache Server (2.4.37) running on CentOS 8, there should be a redirection of HTTP traffic on port 8765 to the default https port. Therefore, I am trying to make the server listen to port 8765 in order to set up a virtual host which listens to…
user2009388
  • 113
  • 6
0
votes
2 answers

CentOS 7 systemd.exec configuration: alternatives to LogsDirectory & CacheDirectory?

On a CentOS Linux 7.8 system, if I create a systemd service configuration file and include LogsDirectory and/or CacheDirectory in the [Service] section, then do a systemctl daemon-reload, the following errors are printed in /var/log/messages: Sep 8…
mhucka
  • 679
  • 4
  • 10
  • 22
0
votes
0 answers

systemd make unit start and stop timer at the same time. However timer can start and stop without effecting unit

System: RHEL 7.4, systemd 219 Units: binary1.service binary2.service binary2.timer What I want: When starting and stopping binary1.service, binary2.timer will be started and stopped. When bianry2.timer is started and stopped, binary2.timer will…
Dave
  • 229
  • 2
  • 10
0
votes
1 answer

Custom service filling up syslog

We have a custom service we start via systemd. File is stored at /etc/systemd/system/custom.service. That's all great but we just had a situation where the disk ran full. I guess systemd catches all of the process' stdout and writes it into…
transient_loop
  • 499
  • 1
  • 4
  • 15
0
votes
0 answers

systemd start a service when another is killed/dead

Is there a way to start another service (or run a script) when my service enters inactive (dead) state ? For e.g., in upstart, I had start on stopped In systemd, I see on OnFailure= - which is for cases when the service fails to…
Ani
  • 32
  • 2
  • 13
0
votes
0 answers

Spring Boot and stop by systemctl not working

My application uses Spring Boot 2.3.1.RELEASE, it is an executable jar that uses an Embedded Tomcat and is listening on port 10605. I deployed on CentOS Linux release 7.6.1810 (Core). I took the following steps: SPEEDYF.service…
0
votes
1 answer

systemctl service + how to configure service for boot priority

we have rhel 7.2 machine server have the following service [root@server1 system]# more rc_build_infra.service [Unit] Description=infra Manager Server Requires=network.target remote-fs.target After=network.target…
King David
  • 549
  • 6
  • 20