Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd]

systemd is an alternative approach to SystemV and Upstart init daemons for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead.

0
votes
0answers
17 views

systemd - mount mount process exited, code=exited status=32

First Boot always fails. Is it possible to make it work ? Working on modified OS image. Where it uses kernel of version 3.10 (Centos 7.6) but grub is still old version 0.97. When deployment of OS ...
3
votes
1answer
37 views

Have systemd not kill your service if it is in a state it should not be killed

I have a question regarding the configuration of a systemd service. The service application is an application the controls a machine. Within the application the SIGINT, SIGTERM, SIGQUIT and SIGHUP ...
1
vote
0answers
11 views

/dev/mapper device remains after stopping cryptsetup unit

This is an ArchLinux box and I can't cleanly stop an encrypted container by means of systemd. I have to additionally issue cryptsetup close. Is this misconfiguration or a bug? /etc/crypttab: ...
0
votes
0answers
24 views

systemd service stop always fails

I am converting our service startup script from SysV to systemd. Our "service" is a java server running in Netty. To start the service, in the unit file I have something like: [Service] ...
3
votes
1answer
50 views

Why does a systemd unit file at `/usr/lib/systemd/system/` still works for Ubuntu?

I understand that systemd stores unit files at different locations for different versions of Linux. On RHEL, it's at /usr/lib/systemd/system/, whereas on Debian-based machines it's at /lib/systemd/...
0
votes
1answer
15 views

How to check status for user level systemd unit

If alice has a user level systemd service unit named foo.service located at /home/alice/.config/systemd/user/foo.service then I can switch user to alice and check the status of the unit using the --...
0
votes
1answer
16 views

enable debug for kernel but not systemd

I have added the debug parameter on the kernel command line to enable debug in the kernel, unfortunately this also enables debug in systemd causing my /var/log/daemon.log and /var/log/debug to fill up ...
1
vote
0answers
9 views

interactive unkillable shell during shutdown

My VBox CentOS 7 image with some custom software has a problem that it shuts down too long. I'd like to find the culprit by running shell commands from the console, but all shells are being killed. I ...
2
votes
0answers
8 views

systemd service management using pkla equivalents to polkit's rules on Debian

I'm trying to allow users of a somegroup to manage someunit systemd service. In polkit (>=0.106), this can be done by adding rules: /etc/polkit-1/rules.d/20-someunit.rules --- polkit.addRule(...
0
votes
0answers
23 views

how to update the log message about failure of service

I configured the service - calc_mem.service as the following Restart=on-failure RestartSec=5 StartLimitInterval=400 StartLimitBurst=3 the configuration above should do the following the service ...
0
votes
3answers
50 views

systemctl + what is the meaning of Restart=always

I configured the service - calc_mem.service as the following Restart=on-failure RestartSec=5 StartLimitInterval=400 StartLimitBurst=3 the configuration above should do the following from my ...
-3
votes
0answers
34 views

At what level and aspect does systemd manage each service? [on hold]

At what level does systemd manage each service? Does systemd manage each socket-based service at the socket level? systemctl status doesn't seem to mention socket, port, IP address. For comparison,...
1
vote
1answer
23 views

Can't find SSHD/systemd socket-activated logs

I'm trying to view the logs for my SSH server (CentOS 7) but cannot seem to find them. It's configured to use the systemd socket activation. I normally expect to find them with journalctl -b -u sshd....
6
votes
3answers
258 views

“before” and “want” for the same systemd service?

In this example of a systemd unit file: # systemd-timesyncd.service ... Before=time-sync.target sysinit.target shutdown.target Conflicts=shutdown.target Wants=time-sync.target systemd-timesyncd....
2
votes
1answer
49 views

Stop systemd from cleaning my /tmp

Before the advent of systemd, my /tmp was cleaned when and only when I rebooted my machine. I was happy. Now systemd has changed this decades-old default so that my /tmp is cleaned every 24 hours, ...
1
vote
1answer
25 views

Are the services managed by systemd implemented based on sockets?

Are all (or most) of the services managed by systemd (or sysvinit) implemented based on sockets (either internet or unix domain sockets)? I have this question, because I am not sure what the concept "...
2
votes
1answer
35 views

What's the difference between `nfs-server` and `nfs-kernel-server`?

Autocompletion shows $ sudo service nfs- stop nfs-blkmap nfs-common nfs-config nfs-idmapd nfs-kernel-server nfs-mountd nfs-server nfs-utils ...
1
vote
0answers
12 views

How to migrate a multi-instance LSB script to systemd?

I wrote an LSB init script that can manage multiple instances of my daemon: rcfoo start starts all the instances (which are found in some /etc configuration file), rcfoo stop stops all the instances, ...
0
votes
1answer
29 views

How to append systemd service logs to the journal

I am trying to control a continuously running license server on a workstation using systemd. The service itself is started by a shell script, which is essentially Usage: ./rlm_control.sh {start|stop|...
2
votes
0answers
29 views

Why am I being thrown into an emergency shell when booting?

I have set up Arch Linux with full-disk encryption and partitioned my system disk using LVM. I just changed the motherboard, CPU and RAM of my machine, and after enabling legacy boot and disabling ...
0
votes
1answer
23 views

systemd: poweroff.target and reboot.target

In a nutshell, why systemctl list-units doesn't list poweroff.target or reboot.target and systemctl list-unit-files does? The .target files are in /lib/systemd/system folder; systemctl cat poweroff....
3
votes
2answers
88 views

Does systemctl consider service dependencies when starting or stopping multiple services in one command?

systemctl allows to pass multiple service names in start or stop command. Let's assume in systemd service A is configured to be stopped before service B. When I now execute systemctl stop B A ...
1
vote
1answer
21 views

templated service dependency on systemd

I have some templated Base Services. Let's call them basis@foo.service, basis@bar.service (and optionally more basis@xyz.service) . And I have a more complex service which should be started after all ...
0
votes
1answer
29 views

Why I don't have a /usr/lib/systemd/system folder?

I am trying to use systemd for the first time after giving up on supervisord. Following this documentation for airflow here, my understanding is that I need to move the .service files to /usr/lib/...
0
votes
0answers
19 views

How to add a default route to a DHCP-enabled interface?

All my servers' networking is configured via DHCP which sends, among others, a static route (needed for a VPN) and a gateway. This works fine. I have one exception: a server which should not get the ...
2
votes
0answers
21 views

Suspend delayed after lid close

For some reason, when I close my laptop lid, it takes my system 25 seconds to sleep. This is without any autolock prorams (xss-lock, xautolock, etc.) running. In my journalctl I can see exactly a 25 ...
0
votes
0answers
11 views

How to simulate a Timeout on the dockerd processes?

Does anyone have any suggestion on how to simulate a timeout of the dockerd demon? I have tried kill -SIGSTOP ; but the dockerd demon does not restart even though it has a systemd setting of ...
0
votes
2answers
30 views

Should systemctl stop honour Restart=always?

Is/should "Restart=always" be honoured when "systemctl stop docker.service" is excuted? My understanding (which is limited) is that systemctl stop should stop with an Exit Code of 0. I then expect ...
2
votes
2answers
79 views

Why do most systemd examples contain WantedBy=multi-user.target?

I have read what is multi-user.target and the systemd documentation, which states that the multi-user.target is a special target. Further, a lot of the systemd examples contain that line. Why do so ...
0
votes
0answers
18 views

systemd-timesyncd not starting with /var set as a rw ubifs volume

I am running debian with systemd version 241. I have a nand flash ubifs partition for my rootfs that I have split into two volumes (/dev/ubi0_1 for rootfs and /dev/ubi0_2 for var): ubi0:rootfs on / ...
0
votes
0answers
11 views

How to create a memory limit group for systemd services with internal shutdown of this services according to demand?

I want to do something like that: I have 3 services (A, B and C). I want to join them in something like a .slice file, and set a memory limit for it. But when one of this services need more memory it ...
1
vote
0answers
11 views

Systemd - How to restart a node process from userspace that uses passwordless sudo

I have a nodejs process that runs as a non-root user (and needs to for a reason) but it has one dependency that requires root access for the raspberry pi gpio interrupts. So the solution is I have ...
1
vote
0answers
16 views

ExecStartPre= with Restart=always with systemD

I've a systemd service with Restart=always, ExecStartPre=/bin/... and ExecStart= All of the Process exit after about 1 second with exit code 0. Which process is started again? ExecStartPre and ...
0
votes
2answers
30 views

Manually set time overwritten without a time sync active (in a VM)

I'm trying to set a fake time on Ubuntu 18.04 (systemd 237) for purposes of testing an execution of a monthly periodic task. This is running on a virtual machine (virtualbox with guest additions). ...
3
votes
1answer
169 views

Trouble making an executable as a service

I would like this to run as a service on my Ubuntu server 18.x... https://github.com/xiaodoudou/PlexIPTV I have downloaded the linux x64 file, made it executable in my home folder and tried to run it....
0
votes
0answers
29 views

systemd: process with fork() only shows logs after child exits

I have a program that fork()s and exits. Its child remains running for about 50 seconds, while it prints out messages each 5 seconds. When I run from a terminal it runs as expected, the parent exits, ...
2
votes
0answers
14 views

systemctl echos prints interference from other unit

I am working on a service which runs just fine. My poblem (or rather a mild annoyance) is that when I run systemctl status foo.service or journalctl -u foo.service I will occasionally see error ...
1
vote
1answer
30 views

Getting systemd service logs faster from my service

I'm having a systemd service defined as follows, that works fine: [Unit] Description=my service After=network.target [Service] User=myuser Group=mygroup WorkingDirectory=/home/myuser/myapp ...
0
votes
0answers
11 views

systemd: run a clean-up action after a few number of service restarts?

I have a service that hold some internal persistent states across restarts. In the unexpected case that the service fails due to broken internal persistent states, I would like to run a clean-up ...
0
votes
0answers
28 views

Unable to change from graphical target to other systemd targets in Ubuntu

I am currently a newer user of terminal in Ubuntu. I was trying to demonstrate some features of targets in systemd. Each time that I do systemctl enable or systemctl isolate , I enter my credentials, ...
0
votes
2answers
73 views

Debian Systemd doesn't start any service [closed]

I don't know how nor why but my Debian systemd stopped starting any service, particularly sshd service so I can't access to my machine. It's a headless machine without monitor and moreover I can't ...
0
votes
0answers
29 views

How to create a udev rules?

I am trying to create a simple udev rule, for the device below, Sony Computer Entertainment Inc BD Remote Control, but it does not work, I have read several tutorials, some documentation and other ...
2
votes
1answer
16 views

Prevent Systemd Requires from executing on restart

I have an application I'd like to compile once on boot and if it succeeds, run it. I have two services: compile-app and run-app. When I set it up using Requires it works but whenever I do systemctl ...
1
vote
0answers
18 views

systemd start as unprivileged user in a group

I'd like users in group foogroup to be able to: systemctl start foo.service, systemctl stop foo.service, systemctl status foo.service, and journalctl -u foo.service without using elevated ...
1
vote
0answers
15 views

systemd unit config that waits for PPPoe connection

On Ubuntu 16.04LTS I'm having trouble getting my service to wait for my PPPoe internet connection before starting. My unit file: [Unit] Description=Home Assistant Wants=network-online.target After=...
0
votes
1answer
32 views

How to get a shell script to execute correctly on reboot

I have a shell script that gets updates from github and then runs the code that it retrieved. it is located at /home/me/Desktop/refreshCode.sh -- refreshCode.sh -- #!/bin/bash cd /home/me/src/...
2
votes
1answer
15 views

SLES 12.4| systemd-coredump[<PID>]: Failed to parse resource limit: <daemon_name>

I am using SLES 12.4 VM where I have a custom daemon dumping core frequently as I see from /var/log/messages and coredumpctl. But I never see a core file in /var/lib/systemd/coredump/ or in any other ...
1
vote
0answers
24 views

systemd's [ok] and [fail] at the beginning of the line

I have got to re-write heaps of boot scripts for a variety of servers of mine because of upgrading from CentOS 6.X (SysVinit) to CentOS 7.X (systemd). There is a file "/etc/rc.d/init.d/function" that ...
2
votes
2answers
62 views

A start job is running for eth0

I am using a new installation of Arch Linux and whenever I boot my system I have to wait for 90 seconds as there is a start job running for my network interfaces. I installed Arch yesterday and ...
12
votes
2answers
642 views

chrony vs. systemd-timesyncd – What are the differences and use cases as NTP clients?

Somehow but not quite building upon the older question "ntpd vs. systemd-timesyncd - How to achieve reliable NTP syncing?", I'd like to ask about the differences between chrony and systemd-timesyncd ...