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
1answer
17 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
12 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
22 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
0answers
19 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
50 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
20 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
34 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
34 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
46 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
22 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 ...
4
votes
2answers
185 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
25 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
26 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
25 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/...

15 30 50 per page
1
2 3 4 5
82