Questions tagged [systemd]

Systemd is a replacement for the classic init during boot.

Filter by
Sorted by
Tagged with
1 vote
1 answer
15 views

systemd twice mounts entry in fstab during boot, first attempt fails with bad option, second one works fine

Running Debian 5.10 within QEMU, I'm using the 9pfs file system to access files stored on my host system, as Debian comes with built-in support and QEMU supports that file system natively. When booted,...
user avatar
  • 678
0 votes
1 answer
25 views

systemd shutdown what does -h mean when combined with --halt?

the systemd shutdown documentation at https://man7.org/linux/man-pages/man8/shutdown.8.html says that -h changes meaning when combined with --halt, but it doesn't elaborate, so what does -h mean when ...
user avatar
24 votes
4 answers
4k views

How does WSL/WSL2/WSLg work without systemd?

As I've understood it, systemd is Linuxes' "master"-daemon, managing all other processes right after it has been started up and run its init-function. Since I had this (now resolved) issue, ...
user avatar
1 vote
0 answers
17 views

How can I see the results of systemd-networkd DHCP v6 request

I am running Ubuntu 22.04 server with netplan.io removed. I have enabled systemd-networkd. One of my network interfaces ens9 is plugged into my cable modem. I have configured it like this with ...
user avatar
0 votes
0 answers
38 views

Docker with systemd and systemctl

I want to make a docker container that can run systemctl and systemd commands. I am new to docker and never have I ever learnt about docker. I have a docker file but dont know where should i place ...
user avatar
1 vote
1 answer
30 views

CentOS/RHEL user-systemd with network home directories

I'm trying to deploy podman user services in a corporate network environment where all Linux users have their home directories NFS-mounted from a common file server. I'm not sure how to have computer-...
user avatar
  • 1,602
1 vote
0 answers
27 views

Arch linux — polkit auth_admin_keep setting doesn't remember authorization?

Today, after I entered the password for the service shutdown/start process with systemctl, I wanted to set it to not ask for permission for 5-10 minutes. That's why when I entered the policy settings, ...
user avatar
  • 11
1 vote
2 answers
67 views

Why is my PostgreSQL startup service not working properly until I restart it manually after reboot?

I have PostgreSQL running on my Linux server. PostgreSQL is enabled and is active after reboot. In the config file from PostgreSQL I enabled remote access. But every time after I reboot my device, the ...
user avatar
  • 11
0 votes
0 answers
29 views

The ezstream service quits unexpectedly

I have Icecast started at boot, running in the background, thus: # systemctl status icecast2 ● icecast2.service - LSB: Icecast2 streaming media server Loaded: loaded (/etc/init.d/icecast2; ...
user avatar
  • 111
0 votes
2 answers
30 views

systemd: Custom snmpd .so agent randomly able and unable to write custom information under /etc/snmp/

I have created a dynamically loadable object .so agent for snmpd. The agent takes care of responding to some of the queries in oid space. The agent writes security information under /etc/snmpd/...
user avatar
0 votes
0 answers
39 views

Ubuntu reboot freeze

I have a Ubuntu 20.04 host. But when I tried to boot it, it said default.target not found. And I tried to enter rescue mode and emergency mode, both of them failed. Please help me. system [1]: Unit ...
user avatar
0 votes
1 answer
40 views

Using systemd, how to auto-restart services A and B whenever A crashes?

B depends on A. Whenever A crashes, I'd like systemd to restart A and B. What I've been able to do With BindsTo=a.service and After=a.service written in b.service file, manually restarting A (with ...
user avatar
1 vote
0 answers
26 views

cyclic dependencies with mount points, NFS shares and symlinks

As storage capacity is almost reached, I need to move the contents of the DOCUMENT_ROOT directory to a new disk. As it is quite difficult to change the directory, I just would like to use the /var/www ...
user avatar
  • 438
1 vote
1 answer
27 views

what does systemd's [Manager] DumpCore option do?

On my system (Debian 11), /etc/systemd/system.conf has a DumpCore option (boolean) in the [Manager] section: $ cat /etc/systemd/system.conf # This file is part of systemd. # # systemd is free ...
user avatar
  • 311
2 votes
0 answers
14 views

How to know if my networkd configuration was successful?

I am writing a small program to reconfigure network interfaces for device, which uses systemd and networkd. If I modify network configuration files, I need to do networkctl reload for changes to take ...
user avatar
0 votes
1 answer
27 views

Efficient rotation of non-journal logs with systemd?

I'm moving a service from ECS on AWS to EC2 and as part of that need to figure out log handling. The service generates about 30GB of logs per day per instance. I'm using systemd to start the service ...
user avatar
  • 1
1 vote
1 answer
36 views

How to run a command/process through Linux systemd after screen wake up?

I have an old Linux problem without any solution so maybe you can help me please?! Are there any possibilites to run a cli command/start a process through any systemd handled event after screen wake-...
user avatar
1 vote
0 answers
17 views

systemd service dropin, ExecStartPre as root user

I have a web service running using systemd, this service runs by its own user, and I would like to execute some ExecStartPre commands but running as root user. So more in detail: i.e /lib/systemd/...
user avatar
  • 141
0 votes
0 answers
210 views

What is wrong with KillMode none or process in SystemD?

The systemd.kill docs have the following to say about KillMode: KillMode= Specifies how processes of this unit shall be killed. One of control-group, mixed, process, none. If set to control-group, ...
user avatar
0 votes
0 answers
21 views

which misconfiguration causes system resets when tmpfs reaches its limits?

On an embedded system, there are 2 tmpfs mounts. 1GB mounted to /tmp and another 1GB mounted to /run, total RAM is 8GB. No swap is used. If one of those reaches its limits, system resets itself. i.e. ...
user avatar
2 votes
2 answers
143 views

Raspberry PI / systemd: run script on shutdown/poweroff but not on restart

On Raspberry PI (running raspbian) I need to run script on shutdown/poweroff, but not on reboot. My first attempt was to define a service as following: [Unit] Description=Power off service [Service] ...
user avatar
0 votes
1 answer
20 views

Restart service after resume only if it was active

I need to restart a faulty openvpn service which gets screwed by suspend/resume. My idea is to create a dedicated restart service as documented in many places (e.g. here), but I want the restart to ...
user avatar
4 votes
1 answer
212 views

DRYing up my Service files for Systemd

Right now I have systemd service files with 20+ environment variables in them, expressed as Environment= This is a lot of duplication that I would like to git rid of since I have systemd files for ...
user avatar
  • 542
1 vote
0 answers
43 views

Can't get script to run from systemd service

I'm trying to set up a systemd service in Debian11 Stable to ultimately set up a timer. For some reason even though I can run the script manually, when I run the service nothing happens. This is /etc/...
user avatar
  • 11
1 vote
1 answer
580 views

How should systemd-resolved and docker interact?

This section specifies that a Docker container gets a copy of the host's /etc/resolv.conf. However, when i run a simple container on Fedora 34, i get a different result: $ cat /etc/resolv.conf # This ...
user avatar
  • 45
1 vote
1 answer
57 views

How can I have my service be the first service to begin stopping on system reboot/shutdown?

I am trying to have a custom service shutdown an application on reboot, I can get the service file to work correctly up to a point, that point being that the my custom service needs to be brought down ...
user avatar
0 votes
0 answers
40 views

SSH forwarding exits when started from systemd service

I'm trying to configure SSH forwarding as systemd service. But instead of running indefinitely it exits. What am I doing wrong? Systemd User Service [Unit] Description=Forwarder Service After=network....
user avatar
0 votes
0 answers
51 views

replacing dnsmasq w/ systemd-resolved - alternative to 'address' directive

Been using dnsmasq for ages - mostly for local caching and blocking out dubious domains. Now I have need for split-DNS, so it's time to switch to systemd-resolved. One major feature I'm using from ...
user avatar
  • 213
0 votes
0 answers
32 views

Mount home subdirectory automatically after systemd-homed user login

I have a LUKS-encrypted systemd-homed setup, so my home directory is locked until the user authenticates. Now, I want to setup automatic bind mount between my home sub-directory and a directory at ...
user avatar
1 vote
0 answers
40 views

Interrupt Linux Suspend/Hibernate

I have a dual boot setup of Ubuntu and Windows with shared partitions. What I want to do is be able to hibernate them and then just wake them up individually. Now, this is simple enough. However, ...
user avatar
0 votes
1 answer
95 views

systemd & logrotate: missing error messages in systemd journal

I have just discovered a problem that I don't understand (SLES15 SP2): I had mis-configured one logrotate service (in /etc/logrotate.d). In SLES 15 logrotate.service is triggered by logrotate.timer ...
user avatar
  • 304
0 votes
1 answer
69 views

Ubuntu / systemd fails to mount bindfs mount on boot

On my Ubuntu 20.04.3 LTS server running as KVM VM, I have defined 4 custom mount points in order to access the host's filesystem. Two of them are 9p mounts and two of them are bindfs mounts that are ...
user avatar
  • 101
0 votes
0 answers
26 views

systemd get a number of running instances of myService

I'm running several service instances using systemd, like this systemctl start myservice@{10001..10002} and this command runs two instances of myservice, namely myservice@10001 myservice@10002 now I ...
user avatar
0 votes
1 answer
35 views

No user groups when luching from krunner (systemd --user)

I've noticed that when running konsole via that krunner, id do not return any additional groups. When konsole is launched from the activator bar menu, id return proper groups. Looks for me like ...
user avatar
  • 149
0 votes
0 answers
70 views

Systemd can't find unit but can `cat`/`status` it?

Systemd seems to not be able to find this unit when attempting to start it, but all other operations seem to work. bash-4.2# systemctl daemon-reload bash-4.2# systemctl start xyzzy.service Failed ...
user avatar
  • 538
1 vote
1 answer
179 views

systemd-networkd: What is the configuration file precedence

I have a system I need to configure via systemd-networkd. For configuring the ethernet adapter eth0 I created a file /etc/systemd/network/eth.network with the following contents: [Match] Name=eth* ...
user avatar
  • 120
0 votes
0 answers
102 views

systemd user service does not start at boot

Seems my user service didn't run at all after reboot and user login. $ cat ~/.config/systemd/user/ibus.service [Unit] Description=Intelligent Input Bus Documentation=man:ibus-daemon(1) Conflicts=fcitx....
user avatar
  • 101
0 votes
2 answers
220 views

Postgresql unix domain socket with password authentication

It looks like postgresql supports either of the below Use tcp (i.e. localhost:5432) with password authentication Use Unix domain scoket (i.e /var/run/postgresql/.s.PGSQL.5432 ) with peer/trust ...
user avatar
  • 107
0 votes
1 answer
29 views

systemd's SupplementaryGroups also applicable to worker processes spawned by the main process of the service?

I have to set up a systemd service for an application that is not allowed to run as root, but must access a private key file and elevated ports. Usually the private keys are protected in a way that ...
user avatar
0 votes
0 answers
34 views

Device nodes randomly disappear in Linux

I use vanilla Arch Linux with systemd. I made a psot on the Arch BBS to no avail, so I'm posting here. Problem description: I've been on this install for more than a year and never had this issue. I ...
user avatar
1 vote
1 answer
230 views

domain-based routing with systemd-resolved

I know this has been discussed many times, also on this forum, but I still haven't been able to get a complete answer. I'm trying to use a certain DNS server when resolving a certain domain. What I've ...
user avatar
  • 121
0 votes
0 answers
45 views

Debian: xinit with startx always returns exit code 0

I am starting kiosk mode application (Electron based) with startx in systemd service. I need to stop service when application is exited with specified exit code. The user running service is not in ...
user avatar
  • 1
0 votes
0 answers
161 views

openSUSE tumbleweed 20211025 not rebooting or shutting down

The problem is as simple as trying to reboot my system. It does not work. Even on a fresh start/power on. I am using KDE by the way. My system info is below. These are the last lines of systemd output:...
user avatar
0 votes
0 answers
193 views

WSL2 Doesnt run GUI applications and keeps waiting

I followed the tutorial from https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps Everything worked perfectly, i managed to run gedit. I then wanted to install sosumi with snapd, and there ...
user avatar
0 votes
0 answers
28 views

X0tigervnc run as logged user

I have issue with start VNC server as actual logged user in gui. I have PCs where are users rotate (more users on one pc). I need have running VNC server every time when is user logged in for shering ...
user avatar
  • 1
0 votes
0 answers
90 views

How to automatically start and stop a systemd unit based on a file PathChanged option?

I need to be able to automatically start and stop a service based on if a specific file's path is changed. If I just use a .service and .path file, enable, and start both, this will restrict the unit ...
user avatar
  • 101
1 vote
1 answer
193 views

Configure systemd-network vlans that don't auto-start

Question: Under systemd-networkd, how do I configure a VLAN that doesn't automatically come up on system boot? Details: I'm running Ubuntu 20.04 server. My workstation has two network interfaces. eth0 ...
user avatar
  • 11
0 votes
0 answers
23 views

systemctl start SERVICE does not start all of SERVICE@*

When I run systemctl start openvpn the openvpn@server_tap starts. But I created another server config /etc/openvpn/server_tun and another service /etc/systemd/system/multi-user.target.wants/openvpn@...
user avatar
  • 147
0 votes
0 answers
23 views

How to use more image decompression cores when resuming from hibernation on Ubuntu 20.04?

Currently, I'm using the default systemd hibernation, which is TuxOnIce and when I'm resuming my session I get a log saying something like "Using 3 cores to decompress image", which is not a ...
user avatar
  • 143
0 votes
0 answers
36 views

How can a reverse-SSH connection be launched and maintained on Ubuntu boot with systemd?

My mum has a wee laptop that needs, when it boots up, to reverse-SSH connect itself to a server (so I can help out when needed). I'm struggling to get the connection to persist when it is started by ...
user avatar

1
2 3 4 5
15