Questions tagged [systemd]

Systemd is a replacement for the classic init during boot.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

systemd falsly reports service as masked and it is not

I am trying to mask a service using sudo systemctl mask expressvpn.service and the outout comes as Failed to mask unit: File /etc/systemd/system/expressvpn.service already exists.. I tried These ...
0
votes
0answers
7 views

Waiting for mount before executing a systemd service

I have a problem during startup of my device running Embedded Linux. My systemd service runs before some partitions get mounted which is not acceptable. I can list my mounts with command systemctl ...
0
votes
0answers
10 views

Using systemd, is it possible to restart a service/target only if not already up/started?

I have a serviceA.service which is a requirement to serviceB.service and serviceC.service. serviceB.service and serviceC.service are grouped inside a target servicesX.target and need to be restarted ...
0
votes
0answers
4 views

windows manager session is getting logged out automatically started from systemd

I am using Arch Linux and lightdm as a display manager. In my machine, I have bspwm and exwm window manager. I am trying to integrate systemd user-specific service to start all the auto-start service ...
3
votes
1answer
55 views

systemd service “installer” which reinstalls other subsequent services which do not start up in this case

What could be the reason, why could it not work and how to solve the problem? I have an "installer" and several other "firmware" services which are registered to systemd and ...
0
votes
0answers
8 views

run systemd service unit only when another service has finished

i want to schedule my backups and checks with systemd. Therefore I have two service files with corresponding timer files: borg.service and borg.timer: to start a borg backup daily (OnCalendar=daily) ...
0
votes
0answers
13 views

“old” udev - rules is activated a lot later than systemd-udev?

I have a machine that use both systemd-udev and some old udev rules (/etc/udev/rules.d). One of the rules rename a specific network interface to something more readable and easy to remember. So, ...
0
votes
0answers
20 views

Why does this tmux service fail to start via systemd?

$ sudo systemctl status ccrsTmux ● ccrsTmux.service - Start CCRS in the ccrs-session tmux session Loaded: loaded (/nix/store/a9vvi2mlmszwnj7ahpzwln5ab639n3n2-unit-ccrsTmux.service/ccrsTmux....
0
votes
1answer
37 views

How to unmask a SystemD service unit on a remote machine?

I have a huuuge problem and need help. While trying to speed up the boot process on my LMDE4 machine by disabling/masking "unnecessary" services, I masked systemd-logind.service and can no ...
0
votes
0answers
14 views

Debian machine can't finalize DHCPREQUEST

I have two public IPs for my home connection, and I'm currently just using one (for my current firewall/router). I'd like to migrate from this router to a new one (Debian based, mostly an excuse to ...
2
votes
1answer
21 views

Is it possible to write a systemd service that binds to each cpuX instance?

I'm trying to write a systemd .service unit as myservice@.service that automatically binds to each cpuX instance using %i when it start to create and register each instance as myservice@cpu0.service ...
0
votes
0answers
12 views

RHEL 7.9: While rebooting, systemd calls ExecStart, but not ExecStop

abc.service definition: [Unit] DefaultDependencies=no Description=ABC service RequiresMountsFor=/apps After=syslog.target network.target auditd.service dnsmasq.service Before=systemd-user-sessions....
0
votes
0answers
24 views

Stuck in single user mode after getting the log: systemd[1]: Failed to start LSB : executed by init(8) upon entering runlevel 1 (single)

I tried to enter in single user mode on Ubuntu 20.04 but after the login (or even without the login) it gave me the next log and then it stuck. systemd[1]: Failed to start LSB : executed by init(8) ...
0
votes
0answers
16 views

`systemctl disable` deleted the unit file from /etc/systemd/system - is a dump of in-memory copy possible?

What happened: I've placed the unit file (openmeetings.service in my case) to /etc/systemd/system (which was probably wrong place and my terrible mistake) and then started adjusting it to match my ...
1
vote
0answers
20 views

Running an overnight systemd timer on a suspended laptop

I'd like to schedule a regular overnight backup on a laptop (currently running Ubuntu 20.04), which is normally left suspended. Systemd timers seem like just the thing, but aren't quite working - the ...
1
vote
1answer
36 views

How can I trigger a process on start (boot) and stop (shutdown, reboot) using systemd units?

Similar, but not identical to Run script at shutdown/reboot with systemd: I want to run a custom process using systemd when the system is going down (shutdown or reboot, maybe panic also), and when ...
1
vote
0answers
38 views

How to make gpg-agent to use socket activation for all gpg command request

I am using arch linux and using the gpg (GnuPG) 2.2.27 I configured gpg with System service at /home/vipin/.local/share/systemd/user/ and using socket activation to start gpg-agent.service gpg-agent-...
0
votes
0answers
83 views

gpg-agent ssh-support throwing sign_and_send_pubkey: signing failed for RSA “(none)” from agent: agent refused

I am using Arch Linux and gpg (GnuPG) 2.2.27. Trying to do a ssh-support with gpg, This i used along with git ssh public key authetication. For that i created a pubic key from gpg. When the socket ...
0
votes
1answer
40 views

Booting stops with systemd-fstab-generator “but it is not a device”

Since a few my arch (upgraded to latest packages today) is not booting properly. [ 0.658449] nvme nvme0: missing or invalid SUBNQN field. [ 0.851921] nvme nvme0: 16/0/0 default/read/poll queues [...
0
votes
1answer
16 views

configure outgoing ipv6 with systemd-networkd

I have the following systemd-network config and want to set the outgoing ipv6 address: [Match] MACAddress=aa:bb:cc:dd:ee:ff [Network] DNS=2001:4860:4860::8888 DNS=2001:4860:4860::8844 Gateway=2a01:...
0
votes
0answers
9 views

Is it safe to follow guides that refer to /etc/init.d scripts for OS that uses systemd?

I have Ubuntu 20.10 which uses systemd. I have found this guide that refers to init.d scripts. Is it safe for me to follow it? Or init.d scripts are a System V thing, and my system uses systemd ...
0
votes
0answers
21 views

Migrate custom initctl emit command to systemctl (upstart to systemd)

I have a custom service (I did not create it) that stops multiple services. The server currently uses upstart, and I need to migrate to systemd. I discovered from this question that I cannot use ...
1
vote
0answers
48 views

Screen as a service on systemd wont start

I'm trying to run screen on a systemd service as startup, so i can check on it later if needed, on an interactive shell, but the session wont stay up, and apparently it doesn't even start. This is my ...
0
votes
0answers
16 views

Cannot create a virtual access point interface before starting hostapd

I have a system that I'm trying to setup as a software access point. The NIC, however, has some kind of quirk and cannot be referenced directly by hostapd, but I need to create a virtual access point ...
1
vote
0answers
191 views

systemd error message : Failed to start LVM event activation on device 253:0

I have an Acer Notebook with Debian Linux 10.0. As may be seen from lsblk output below, root partition is on 256GB SSD at /var/home and SWAP is located on an LVM2 volume located on two LUKS encrypted ...
0
votes
1answer
28 views

To fork or not to fork in 2021?

Now days services are managed by systemd or can be easily wrapped with Debian's old start-stop-daemon utility for init.d. Is there any cases when forking is preferred?
0
votes
0answers
186 views

Systemd service unit failed with result 'exit-code'

I have a python script that works fine if I run it with /usr/bin/python3. But I would like to be able to run it from a bash file as root through a service unit from systemd. I want to be able to pass ...
0
votes
0answers
18 views

systemd[1]: Started Session c

I have lines like that - every 5 Minutes in my Logs: Feb 13 05:30:04 myServer systemd[1]: session-c20840.scope: Succeeded. Feb 13 05:30:04 myServer systemd[1]: Started Session c20841 of user bim-bom. ...
0
votes
1answer
36 views

Systemd: how to start service after another service started

I have these two services, one is Google start up script service and second one is redis service, I want to start redis service once the startup script service is started and done, I have these ...
0
votes
1answer
49 views

Custom Systemd service not finishing activation

This page on the Arch Wiki describes a systemd unit that can adjust the keyboard repeat rate in the tty, which I have written in my home directory and symlinked to the following directory: /etc/...
1
vote
1answer
139 views

Kubuntu 20.04, Wireguard and systemd-resolved DNS leak

Fresh install of Kubuntu 20.04 (uses systemd-resolve by default) with Wireguard installed. I have a wg tunnel (going through a wifi interface wlp0s20f3) and all traffic is supposed to route through ...
0
votes
0answers
6 views

Systemd audit terminates my application

Some of my apps that are started vis systemd get reset after a period of inactivity (I think that is the reason). I get the following entry in the jounral control (-k) log: Feb 01 08:42:11 imx8mqscs ...
2
votes
0answers
41 views

Having all systemd timers mail to root on error

cron sends an email to the crontab owner on job error. How can i have systemd do the same when it runs a timer? Note: I am not looking for a recipe for adding email notification to a specific service. ...
0
votes
1answer
29 views

How to attach to linux container started with systemd?

Long story short, I have a few unprivileged containers that run on boot that I used to be able to start from rc.local. That no longer works, and currently start them with a systemd unit. They start, ...
1
vote
0answers
24 views

systemd-networkd resets my static eth0.network configuration

I am running a custom Yocto based Linux with kernel version 5.4.41. I am using systemd-network to manage my networks. root@box:~# systemctl --version systemd 244 (244.3+) +PAM -AUDIT -SELINUX +IMA -...
0
votes
1answer
25 views

not able to execute pyQT application using systemd

I am trying to execute the pyQt4 application program using systemd service, but the service status shows that the program is unable to connect to the X server. [Unit] Description = Test After=multi-...
0
votes
1answer
28 views

How do I delay a script to allow FreeIPA to start first?

I have a handful of containers with a FreeIPA server against which all users authenticate. All the OS are linux. Some of my containers have services that are run on startup via systemd. Unfortunately ...
0
votes
1answer
35 views

Oscillate between running service A and B with systemd

A livingroom multimedia solution consists of Kodi and Chromium (.xinitrc: exec chromium-browser ...) ran by a Raspberry Pi. If the two processes are ran together, Kodi overrides the screen, and there ...
1
vote
1answer
30 views

unable to make it so docker starts up automatically

Per https://docs.docker.com/engine/install/linux-postinstall/#configure-docker-to-start-on-boot I tried sudo systemctl enable docker. I then restarted and typed in sudo docker ps and... nothing. When ...
1
vote
1answer
88 views

How to use IPv6 internet addresses on Linux with systemd-networkd

I have a problem with my providers internet router using IPv6 addresses and I realized that I do not really understand how to use IPv6 addresses. To get an idea I like to ask how to use the different ...
0
votes
0answers
16 views

Can we limit systemd journals log rotation to be per boot?

Most journalctl options seems to be around time and file size. Is there any way to limit by number of reboots since that is what makes the most sense for a desktop?
0
votes
0answers
17 views

using proper /tmp on systemd service

Let's say i want to create a systemd service and I do want to use regular /tmp with no nonsense on top. I know, shocking, right? I tried to read the manpage for tmpfile.d and there's nothing that ...
0
votes
1answer
35 views

Converting /etc/init.d service to systemd

I am in the process of converting an existing /etc/init.d service to systemd. It seemed to be working but I have encountered a strange issue. The systemd service will happily start with the command &...
0
votes
0answers
23 views

Mount overlay before starting services on Centos 8

I'm using centos 8 OS. I need to mount overlay on boot (for example to store /var/log on a different disk) before other services started. My initial implementation was to write a service (/etc/systemd/...
3
votes
0answers
40 views

How to set permanent ACLs on hardware (/dev) devices in systemd?

I tried to prevent a user from accessing the webcam via systemd ACLs, but whatever I set is reset on a new login: For regular files, this works just fine, with any access by userx to random_file ...
0
votes
1answer
23 views

How do I find which user sent a message (systemd) / mount encrypted zfs on login

Question How do I send a message from a user to a daemon where the daemon is guaranteed that the message came from the user? Assuming the user might be malicious. Original Problem I'm on linux (arch ...
-1
votes
2answers
44 views

I accidentally removed SYSTEM group & 'Authenticated Users' group from C:\ permissions in Windows 10

Hoping someone can help. I was following the instructions for 'Solution 6:' on this linked page in an attempt to fix a blank preview screen in the OBS Studio app OBS Blank Preview Screen Fixes Sadly ...
0
votes
1answer
82 views

Process /snap/code/52/usr/share/cod spawned by systemd has enormous CPU usage

This process seems to call itself and drains my CPU, causing laptop overheating. $ ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | grep "/snap/code/52/usr/share/cod" 12843 3656 /snap/code/...
0
votes
0answers
42 views

how to change link's current scope to DNS?

I try to use following command to add dns to a bridge: # systemd-resolve --interface virbr0 --set-dns 192.168.200.1 --set-domain vms However the scope remains none: Link 7 (virbr0) Current ...
0
votes
1answer
53 views

How to disable systemd timers “Succeeded” messages

Every 30 minutes we get a Dec 10 02:09:00 fileserver systemd[1]: phpsessionclean.service: Succeeded. message. We use logcheck to get an email when there is something in the log, but now after we ...

1
2 3 4 5
14