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
0
votes
0answers
25 views

powershell fills up systemd journal with trash

on a small debian VM i started journalctl and the VM was stuck for a couple of minutes. It seems that there are 43378717 lines collected from 2021-04-20 to 2021-05-17 and most are powershell "...
1
vote
0answers
10 views

How to find out why systemd reloads unit?

I have samba server that constantly reloads each ~2min for some reason: $ sudo systemctl status smbd ● smbd.service - Samba SMB Daemon Loaded: loaded (/lib/systemd/system/smbd.service; enabled; ...
0
votes
1answer
15 views

Logging to /var/log/messages stopped. How to turn it back on?

while frantically trying to resolve a time sync issue, I somehow must have turned off some (but not all journalling). /var/log/messages ends last eventing, and journalctl -eu chronyd doesn't show any ...
1
vote
0answers
22 views

Does systemd fail if a dependency in After=/Requires= doesn't exist?

I have a service A that runs in a limited number of environments to provision a host with some files. I have another service B that runs in all environments. I'd like B to depend on (and only start ...
0
votes
0answers
21 views

How to disable auto mounting of root partition during systemd init embedded Linux [migrated]

I am trying to reduce the boot time with embedded Linux based on yocto. One of the things I observed is the systemd is mounting the root partition which is passed as an kernel argument. The root ...
-1
votes
2answers
24 views

Why most services use non-root account could create logfile in /var/log?

I want to write a service putting log in /var/log, then I edit a xxx.service under systemd. [Service] User=xxx Group=xxx But the service throw a error that open /var/log/xxx.log the permission denied....
0
votes
1answer
42 views

How do you kill all instances of a systemd service?

I want to kill all instances of a systemd service. This works fine: sudo systemctl stop 'custom-service@*' but it is slow since it runs my custom ExecStop which does extra work to safely shut down the ...
-1
votes
1answer
19 views

Docker acts different in WMWare VM than on real CentOS 7 box

I'm using Docker to provide a integration testing CentOS 7 environment and need an image with systemd running. Everything seemed fine until a coworker tried to use the setup in a CentOS 7 VM. I was ...
0
votes
2answers
79 views

Execution of ExecStop when script in ExecStart exits

I am a little confused with the behavior of systemd services. I have the above systemd service. [Unit] After=libvirtd.service [Service] Type=simple Environment=VM_XML=xxxxxxx ExecStartPre=/usr/bin/...
0
votes
0answers
14 views

systemd unit starts before boot delay timer

I have a service that I wrote myself. It consumes a fair amount of CPU, so I want to delay startup 15 minutes after boot in case I am doing something else with the system in the meantime. After that I ...
2
votes
0answers
17 views

Systemd and Disaster-Recovery Stand-By systems

We're using systemd to run various services in production. (Duh...) We're building out a matching "disaster-recovery" site, which will have the same application installed -- with the same ...
0
votes
0answers
37 views

How does linux know to mount / without /etc/fstab [migrated]

When /etc/fstab gets deleted/name is changed booting into the machine still works, in addition the root file system (/) is still mounted and on the correct storage device, how does it know to mount / ...
0
votes
0answers
48 views

Operability System docker daemon

I have a serious problem with the docker daemon administration on my Docker VM node. And I can't quite understand what exactly is happening. It's a VM with Ubuntu 18.04 LTS from system base, yesterday ...
1
vote
0answers
41 views

Php-fpm service fails to start on solus. Possibly due to snmp module

I am having some trouble to start the php-fpm service on solus OS. It appears that is is maybe related to the snmp module. Here are some info about the error : ~ $ sudo systemctl status php-fpm Mot de ...
-1
votes
1answer
60 views

User service stops even with Restart=always

I have a discord bot that run on my server. I wanted to create a service in systemd instead of using the shell to start by hand. I want the bot to restart when it fails or it is stopped. So I put ...
0
votes
0answers
49 views

Systemd: Type=forking vs. PIDFile

After the Unix admins enabled the systemd --user for our application's account, I created the following service-template (itself generated from an Ansible-template first, as you may notice -- because ...
0
votes
0answers
47 views

How can mount a disk in OpenVZ container?

I have a OpenVZ container. And I mount a disk from a host node to the container: /sbin/vzctl set 111 --devnodes sda:rw --save When the container starts the disk can't mount because systemd doesn't ...
0
votes
1answer
39 views

systemd-resolve fails to resolve hostnames when using bind9

I'm running Ubuntu 20.04. I set up bind9 inside a docker-container that I want to use as the dns-server. The container is running fine and will resolve correctly if queried with dig. Running dig on ...
0
votes
0answers
28 views

Error dbus-daemon[1466]: [system] Activating systemd to hand-off: service name='org.freedesktop.login1'

I rebooted server running Ubuntu 18.04 and run into some problems. Basically almost every command I enter gives me this error: mail-server:~# systemctl status dbus.service Failed to connect to bus: No ...
0
votes
0answers
23 views

Showing journalctl log entries with relative timestamps?

I am using journalctl (from systemd v237) to look at some logs for some systemd logs. By default it shows the timestamp of the log entry on the left, in the email date style. Is it possible for ...
1
vote
1answer
42 views

Change network interface name with systemd.link on Ubuntu 18.04.5

I am trying to set some universal names for the predictable names. I am doing this to be able to have the same interface names on all my machines. Iam trying to follow "Example 2. /etc/systemd/...
1
vote
1answer
90 views

How to use SIGHUP for reloading services?

I've installed Hachicorp Vault and did setup the TLS configuration. My goal now is to have the vault.service to do an automatic reload if the TLS certificates were renewed. The official documentation ...
0
votes
0answers
26 views

Systemd Service Start/Stop Before/After

So I currently have 2 scripts, let's call them script A and script B. What I need when the server boots is for Script A to start (this brings up a database) once that's done, it will bring up Script B ...
1
vote
1answer
62 views

Nftables “Error: Interface does not exist” after reboot

at using nftables on a new virtual machine (Debian 10) I installed and configured nftables as automatic service (systemd). I use also LXC and use an additional interface (lxcbr0). I recognized the ...
0
votes
1answer
44 views

Allow a user to restart a service

I am trying to restart a service without being root. Here is the code snippet where the command being used template { source = "{{vault_template_dir}}/agent.crt.tpl" destination = &...
0
votes
0answers
47 views

systemd raspbian wpa_supplicatant access point not working

Moving on from my prior question about identifying source of a wireless SSID, I am now ready to move on to the next challenge. Most of the documentation I found for wpa_supplicant and creation of a ...
0
votes
0answers
8 views

Patterns or templates in systemd scopes?

I'm working with an external service that creates its own systemd scopes like system.slice/someapp.slice/instance-400.scope or user.slice/user-1000.slice/app-1234.scope. The scope names embed the pid, ...
0
votes
0answers
33 views

Applying systemd control group resource limits automatically to specific user applications in a gnome-shell session

Having seen that GNOME now launches apps under systemd scopes I've been looking at a way to get systemd to apply some cgroup resource and memory limits to my browser. I want to apply a MemoryMax and ...
6
votes
2answers
232 views

How to restart service after some time?

We have multiple systems that suffer from a firmware bug. The vendor is aware of the problem and will fix the firmware bug. Until then we have to live with a workaround: restart the relevant service ...
0
votes
0answers
30 views

Virtualbox systemd unit service: ask for password

I'm using the following systemd template unit file for managing VirtualBox VMs: [Unit] Description=VirtualBox VM %I After=network.target vboxdrv.service Before=runlevel2.target shutdown.target [...
0
votes
0answers
33 views

When using atop as a systemd service it only runs and logs to file once

I am on CentOS 7 and using atop v2.6.0 If I run atop manually with the following command everything runs as expected and the log is written to every 10 seconds: /usr/bin/atop -w /var/log/atop/...
0
votes
1answer
28 views

Grant a user sudo powers to start/stop/etc a systemd service w/o sudo password

I have one non-root user, and I would like to give them sudo permission to start & stop (etc.) a systemd service file without needing a password. I tried to just make the following file in /etc/...
0
votes
0answers
41 views

Best practice for configuring a complex virtual network with multple links and multiple virtual machines

I have a somewhat complex virtual network setup with multiple virtual machines and the links between them. There are perhaps 40 ip commands to set it up which (if I read the docs correctly) need to be ...
1
vote
0answers
37 views

Delete old SSH session recordings

Recently I've been testing SSH Session recording in Fedora + Cockpit as a method of auditing. This has been working pretty well, but it records too much information, and more importantly, picked up a ...
0
votes
1answer
118 views

How to change the docker.socket group

I am managing several compute hosts running Ubuntu 18.04 (with systemd) and Docker inside a mostly trusted network. I have an auth server so rather than manually add users to the docker group, so that ...
1
vote
0answers
55 views

How to troubleshoot a systemd timer on Ubuntu 16.04 that won't re-schedule every minute as expected?

I have an existing systemctl target that was originally (by default installation) scheduled to run everyday, almost continuosly with just a pause of 30 seconds between the end and beginning of each ...
0
votes
1answer
51 views

Log systemd service stderr to different file using rsyslog

I have the following config in a systemd service: StandardOutput=syslog StandardError=syslog SyslogIdentifier=udocit And this rsyslog conf file: if $programname == 'udocit' and $syslogseverity > 5 ...
0
votes
1answer
30 views

simple systemd service and socket failing

I had a service I was trying to run this way but it was slightly a large python program. I took a step back and built a dead simple python program to see if I can get it to run. It fails when I try ...
0
votes
0answers
19 views

service stuck on failed after very fast restart calls

our IT guys encountered an error with one of our service following very fast restart requests service is stuck on failed until another restart call question is, how can recover from failed ...
0
votes
0answers
18 views

How do I find what's launching my systemd service?

I have systemd (v237) on Ubuntu 18.04, and a blah.service unit which runs a simple batch job. I have a corresponding blah.timer unit to start it. i.e. this is a simple 'cron-like' replacement. It runs ...
1
vote
1answer
48 views

networkmanager script failing, how to see full logs output

journalctl -u NetworkManager.service tells me dispatcher: 01-ifupdown [...] /etc/NetworkManager/dispatcher.d/01-ifupdown exited with error status 1 This is almost certainly a script we have hooked/...
1
vote
0answers
32 views

Why does this systemd service not run at the right time (loading encryption keys from a network drive which are required for lxc containers)?

In Debian with systemd, I use zfs and lxc. My zfs datasets are encrypted and their keys can be loaded from a network host via my /etc/zfs/zfs-load-key.sh script. My LXC containers are started by lxc....
0
votes
0answers
14 views

Something is incorretly editing my systemd-resolved config file

I recently started running a simple DigitalOcean VPS for work, but every time I update the system (Fedora; I have it set to update weekly), the contents of /etc/systemd/resolved.conf is overwritten ...
0
votes
1answer
87 views

Simple code running in systemd exits to fast?

I had this old code base running in xinet d. It was basically a simple python script that waited for standard in to come in on a socket, it would do something with it and respond on standard out. ...
1
vote
0answers
19 views

Can I make systemd run the command in ExecStartPre during a restart? Should I?

My service is a game server, and I've added updating the server files as a command in ExecStartPre. I want this command to run also when I am restarting the service, but it seems that this command is ...
1
vote
2answers
39 views

How to ask systemd why a service was stopped

I would like to know why a given service was stopped. I can think of several reasons: The service crashed The service exited by itself The service was explicitly stopped through systemctl stop The ...
1
vote
0answers
38 views

Generate systemd task on the fly

I'm writing a script to backup each mysql databases separately on from a mysql server, but instead of handling this inside the script I would like to rely on systemd to generate a backup job to get ...
0
votes
0answers
25 views

systemd disables timers after reboot

I have a service and a timer that activates every night: /etc/systemd/system/daily-backup.service: [Unit] Description=Running daily backup [Service] Type=oneshot ExecStart=/hosting/backup/daily-...
6
votes
1answer
217 views

systemd's “predictable interface names” not being predictable

I'm running Debian Testing (kernel 5.10.0-2-amd64 / systemd 247.2-5) on a Mac Pro as a NAS / VM host. Today, I added a Thunderbolt 3 card (Gigabyte Titan Ridge) - and noticed something strange: the ...
0
votes
0answers
60 views

Scaleway's Arch Linux instance won't boot after system upgrade

Yesterday (February 22 2021), I started a new DEV-L instance on Scaleway with the Arch Linux image, after a full system update and a reboot, the machine is marked as "running" on the ...

1
2 3 4 5
25