Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
3 answers
97 views

Why it's recommended to run Postfix in a chroot jail?

I understand that chroot allows to isolate Postfix, so if an attacker gives an access to one of a Postfix program, he cannot maliciously change something outside of the chrooted directory. Seems that ...
Ilya Ordin's user avatar
0 votes
0 answers
25 views

setting a docker registry on nixos using systemd

I'm looking to establish a local Docker registry on a NixOS environment. I attempted to utilize the NixOS configuration option "services.dockerRegistry.enable = true" to achieve this, but ...
Alberto Zanovello's user avatar
0 votes
0 answers
56 views

systemd doesn't work nicely with pdflatex

I wrote a program that should be run as a service, so I wrote a systemd units file and tried it out, but pdflatex (which is called by my program) keeps throwing errors since some directory settings ...
zvavybir's user avatar
  • 101
1 vote
1 answer
44 views

Zpool scrub won't resume after reboot

Linux Mint 21.3 Linux version 6.5.0-26-generic zfs-2.2.3-0ofthesun1 zfs-kmod-2.2.0-0ubuntu1~23.10.2 I've set up the zpool just fine, put some data on it and started a scrub. While this was in ...
Dominik's user avatar
  • 11
0 votes
0 answers
20 views

Change sysctl based on certain conditions

I set kernel.deny_new_usb=1 via /etc/sysctl.d/params.conf, but that's inconvenient of course. I would like to make kernel.deny_new_usb=0 when the user is logged in and the KDE screen is not locked. ...
deniable_encryption's user avatar
0 votes
1 answer
48 views

cd command not recognized by a systemd service script

Hi run Debian OS and I have a shell script that runs sphinx search. The script runs fine if I run it from terminal as below: sh /home/myuser/sphinx/run_sphinx.sh Here is the content of run_sphinx.sh #...
Dev Dev's user avatar
  • 31
0 votes
0 answers
52 views

ubuntu 22.04 redis.service stops working after adding tls

A fresh install of redis on ubuntu 22.04: I changed supervised no to supervised systemd. When running systemctl start redis.service, everything works as expected. I now change the redis.conf file to ...
Sam Leurs's user avatar
  • 105
0 votes
2 answers
39 views

Replacement of "su - user -c command" in systemd unit

Having read that using su - as part of an ExecStart= (ExecStop=) in a systemd unit is a bad idea, I wonder what the proper replacement is. When using some vendor-supplied scripts or commands (where ...
U. Windl's user avatar
  • 391
0 votes
0 answers
34 views

systemd-journald for separate log namespace exits after 30s

I am trying to configure an additional systemd-journald / log namespace (on Debian bookworm) for the first time (because it seems to be the only possibility to configure different log storage amounts ...
Hauke Laging's user avatar
  • 5,355
0 votes
1 answer
31 views

systemd wait for Env variable from external to trigger service start

I have a VM which I'm controlling the boot up process via systemd and cloud-init. For cloud-init I have a script that performs initialization as follows: runcmd: - /etc/systemd/system/init.sh /etc/...
John Hopkins's user avatar
0 votes
0 answers
51 views

Can't run startup script on Debian VM in Google Cloud - SSH and Serial Console Access Issues

I've been struggling for days with a SSH access problem on my Compute Engine VM (Debian GNU/Linux 10), with an error in the sshd_config file leading to the inability to restart the SSH service: 2024-...
Desenvolvimento Esallabs's user avatar
0 votes
1 answer
65 views

Can I create a PID file for systemd services?

I have two systemd services that run after system start . I need to set CPU affinity for these 2 services but I can't do that manually because after every reboot or service restart , PID changes. Is ...
lostsoul6's user avatar
1 vote
1 answer
123 views

Running systemd-run --user inside a systemd service

I have a web app that handles user input, and as part of that, runs some commands with systemd-run --user --scope ... to limit memory and CPU usage. The application runs fine when run normally, but ...
user2141650's user avatar
1 vote
1 answer
36 views

Can I force the sequence of services in systemd?

I am working on a diskless system that starts up over PXE, with a read-only root directory mounted over NFS. I have set it up, so it configures its hostname during boot, and at a later point, mounts ...
j4nd3r53n's user avatar
1 vote
1 answer
118 views

Systemd service stops after start (only while booting)

I have a minimal systemd service that seems to work normally when started manually using systemctl start my-application.service And it stops normally using the corresponding stop command. For some ...
Luca Sagoleo's user avatar
0 votes
0 answers
72 views

Understanding systemd dependencies on auto-created device units

I have a systemd unit ("leafnode.socket") that depends on a network device ("rath") being up. The socket unit has an explicit file in /etc, the device unit is (I believe) ...
Nikratio's user avatar
  • 645
0 votes
0 answers
185 views

change colors of systemctl and journalctl output

Error messages are displayed dark red on black. I'm visually challanged and cannot read red text on a black background. How can the colors of be adjusted in the output of systemctl and/or journalctl ?
theking2's user avatar
  • 180
1 vote
0 answers
31 views

Support Multiple Service Dependencies in Requires Directive in RedHat 8.9

Thank You for looking into the question. I have a Systemd service lets call it main-application.service which needs service testA.service and testB.service started before start of itself. Following is ...
Pulkit Agarwal's user avatar
1 vote
1 answer
77 views

Unusual Output in Nginx Status: Seeking Insights on Empty Strings in Process Information

My Nginx server (Ubuntu 22.04 LTS) is operating as expected, and I am not aware of any issues. However, I have noticed an unusual output in the status information: sudo systemctl status nginx ● nginx....
kekw's user avatar
  • 113
1 vote
2 answers
459 views

What is systemd "refresh-policy-routes" [AWS Linux 2023]?

I'm trying to find the cause of an instance outage, which seems to be from a scheduled systemd refresh-policy-routes service, followed by a 404 Error call to EC2RoleProvider. After the error, all ...
Josh Hibschman's user avatar
0 votes
1 answer
189 views

Can't run systemd inside docker container on specific host

I'm migrating a containerized deployment from a Ubuntu 20.04 host to a Ubuntu 22.04 one. The container runs systemd, and it works fine in the 20.04 machine: $ docker run -i -d --name test-cvmfs-...
Nicola Mori's user avatar
0 votes
1 answer
53 views

Does systemd require a password in the unit file in order to run gunicorn under a specific user?

I want to run gunicorn as a service on a production server and have looked at many examples of the systemd unit file which are similar to this Description=Gunicorn instance to serve application After=...
erotavlas's user avatar
  • 103
0 votes
0 answers
72 views

error trying to ansible with become machinectl

I've tried to make work some automation with ansible inside a systemd-nspawn container with machinectl commands. I've found a become machinectl ansible plugin that seems to fit, but there's something ...
namregzepol's user avatar
0 votes
0 answers
51 views

Processing error occurred

When trying to retrieve References for 'Reference_ID_Type'='Request_for_Quote_ID', Workday throws the following error: *[SOAP-ENV:Server.processingError] Processing error occurred. Can't get all ...
Mars's user avatar
  • 1
0 votes
1 answer
55 views

systemctl --enable enables socket instead of service

As it is common, lxd provides two systemd units: lxd.socket and lxd.service. When lxd.socket is started, it starts lxd.service as soon as any application (such as lxc) tries to access the lxd daemon. ...
cdauth's user avatar
  • 993
0 votes
0 answers
251 views

How to log systemd output to container logs

I run a rootless container system container with podman, i.e. systemd is running inside the container as entrypoint. I cannot figure out, though, how I can get the logs of the container, i.e. output ...
omgold's user avatar
  • 1
1 vote
1 answer
247 views

systemd daemon that should never terminate deactivates "successfully"

I run a daemon process under systemd (that sits around and watches a bunch of RSS feeds and sends notifications about them). It's a (Scala) JVM process that's essentially an infinite loop. The process ...
Steve Waldman's user avatar
0 votes
1 answer
183 views

Is it the OS or Samba that is restricting access to systemd on a shared folder?

I have two Rocky Linux 9 servers that we can call svr1 and svr2. svr1 has Samba service installed and share the folder /home/rocky/shared_folder with this configuration: [global] # workgroup = ...
SUPERALEX's user avatar
0 votes
1 answer
121 views

Why isn't my unit container running?

I'm trying to move the manual launch of our Podman LakeFS container to a service at boot. I was suggested to use Quadlet and I'm following this guide I converted our script/command: #!/usr/bin/bash ...
elect's user avatar
  • 203
0 votes
0 answers
153 views

How to trouble shoot timesynd service

How to trouble shoot the symptom where timesyncd service has been killed and cannot be found. Timesyncd has been installed. $ sudo apt -y install systemd-timesyncd Reading package lists... Done ...
mon's user avatar
  • 265
-1 votes
1 answer
160 views

Automating Account Creation

I’ll try to be brief. The current situation: If we have new hires, the HR will share the names with the IT department to create emails for them and give them access to OSS app (OKTA) that we’re using ...
Sana's user avatar
  • 1
0 votes
0 answers
222 views

Combining DHCP with static IP using systemd

Basically I want to set a static IP with systemd, but I want to get everything else (read "the routes of the network") via DHCP. This is easily done on macos for example which has the option ...
John Smith's user avatar
0 votes
0 answers
118 views

System boots with error in systemd-modules-load.service

During the boot of my homeserver (RHEL9), I noticed an error message regarding systemd and some kernel module. I checked the following: [root@homeserver ~]# systemctl status systemd-modules-load....
matteo-g's user avatar
  • 103
2 votes
1 answer
161 views

Remounting tmpfs with a different size during boot

I have a custom Linux distribution (based on Debian), which has a lot of custom tooling for example changing system configurations (like network etc. These configuration files are.json files, which ...
Xershy's user avatar
  • 123
1 vote
2 answers
377 views

Can a service managed by systemd send its logs somewhere other than /var/log/messages?

We have a RHEL 8 server where we have a few python applications installed for data management and analysis, notably JupyterHub and Airflow. We have these set up with systemd unit files so we can start,...
raphael's user avatar
  • 171
0 votes
0 answers
99 views

Systemd networking boots with timeout

I've a Debian (installed 10, upgrade over time to 12.4) with additional Proxmox packages installed. The systems runs for several months without an issue. Every evening, it stops with rtcwake and ...
TRW's user avatar
  • 518
0 votes
0 answers
81 views

Linux service constantly restarting

I have a service file mmctrl.service with the following contents [Unit] Description=MosquitoMax Controller Service After=network.target [Service] User=mm Group=mm WorkingDirectory=/home/mm/ ...
Daniel Watrous's user avatar
0 votes
1 answer
45 views

systemd: list both active and not-found units

I want to get a list of active and not-found systemd (user) units. $ systemctl --user list-units --state=not-found UNIT LOAD ACTIVE SUB DESCRIPTION ● server....
viperML's user avatar
1 vote
1 answer
251 views

DNF-Automatic trigger set to run at unconfigured time

I am configuring dnf-automatic to automatically install security updates on some low priority test boxes. Eventually I want to the updates to run every Sunday morning around 4-5AM, but for testing ...
motorleague's user avatar
0 votes
2 answers
186 views

How to ensure that system-userdbd.service is started after root fs became writeable without creating circular dependencies?

I have a fast virtual machine and the systemd service systemd-zserdbd.service fails with Dec 01 17:45:32 server-new systemd[1]: Starting systemd-remount-fs.service... ... Dec 01 17:45:32 server-new (...
user2690527's user avatar
0 votes
0 answers
71 views

The `rm` command in my SystemD unit file keeps failing

I have the following unit file: [Unit] Description=Nethogs Daemon Requires=network.target After=network.target [Service] Type=simple ExecStart=/sbin/nethogs -t -d 1 -v3 -s StandardOutput=file:/tmp/...
manifestor's user avatar
  • 6,439
1 vote
1 answer
297 views

How can I run a script when a specific network interface is up with systemd/networkctl?

I need to run a script when a specific network interface is brought up with systemd/networkctl, i.e. each time it enters state "routable". When the interface goes up or down, the device ...
Jochen's user avatar
  • 203
0 votes
0 answers
143 views

cpuset does not work correctly for systemd service

I am running kubelet service with systemd and trying to pin all kubelet processes to a single CPU core. Edited /sys/fs/cgroup/kube.slice/cpuset.cpus and put 7. the taskset command shows the cofig is ...
AbuMorad's user avatar
0 votes
0 answers
55 views

running systemd-run with some bpf-firewall rules as regular user does not work

I'm trying to run a program with restricted networking via systemd-run as root systemd-run -p IPAddressAllow=192.168.253.1 -p IPAddressDeny=any PROGRAM works nicely but as regular user none of the IP ...
Felipe Alvarez's user avatar
0 votes
0 answers
569 views

Failed to start dbus.serviuce and dbus.socket

I have a Debian Bokworm Server which was migrated from bare metal to a Proxmox VM and then single services lock docker were migrated to their own VMs. I uninstalled for example all the docker content ...
Powerriegel's user avatar
1 vote
1 answer
300 views

Restore MariaDB masked service

I have a situation where MariaDB service has become masked. This happened when a colleague tried to remove a package from an Debian 11 server. Obviously the package manager warned him but on the rush ...
Christoforos's user avatar
1 vote
0 answers
183 views

On Ubuntu, systemctl (show|status) with wildcards does not work with inactive(dead) processes even with "--all" flag

Although this https://serverfault.com/a/915634/1060236 suggests all services should be listed, when I run: sudo systemctl status "prefix.*" --all or sudo systemctl show "prefix.*" -...
qwer's user avatar
  • 111
0 votes
1 answer
206 views

What does systemd do if you issue two `systemctl restart $some_service` commands simultaneously?

If one process runs systemctl restart something.service, and a second process also runs systemctl restart something.service a bit later (but before the first command has returned), what does systemd ...
alecbz's user avatar
  • 509
0 votes
0 answers
144 views

Using systemd-networkd inside a Podman container

The end goal is to have a macvlan interface set up within a Podman container. I have the following Dockerfile FROM docker.io/library/debian:bookworm-slim RUN apt-get --yes install systemd RUN ...
jezza's user avatar
  • 101
0 votes
1 answer
288 views

systemd-journal-remote strange behavior

I have systemd v253 running on Fedora 38. My journal-remote.conf file is: [Remote] Seal=True SplitMode=host # .... MaxUse=5G KeepFree=10G MaxFiles=500 and my full journald.conf is: [Journal] Storage=...
Mirimat's user avatar

1
2 3 4 5
31