Questions tagged [systemd]
Systemd is a replacement for the classic init during boot.
782
questions
0
votes
0
answers
5
views
poweroff/reboot hangs when sddm is logged in
I am using KDE plasma5 wayland with sddm, and systemd 253.4. sddm starts on tty7, and kde starts on tty2. After logging in to GUI, whenever I tried to poweroff or reboot (terminal or button, through ...
0
votes
0
answers
21
views
Debian network config via systemd: where do the ifup instances get set?
Debian 11 by default appears configures the network using systemd and ifupdown. I'm interested in how systemd gets to network-online.target.
# systemctl show network-online.target | grep -E 'After|...
0
votes
1
answer
20
views
How to stop systemd oneshot from running when file has not changed?
I have created a systemd service to restart some docker containers when their SSL certificate is renewed. I created this unit file, so that my script to restart the containers is executed when service ...
0
votes
1
answer
23
views
How do I prevent systemd from running my timer after reboot
I have the following oneshot service+timer :
$ systemctl cat stop_syncro.service stop_syncro.timer
# /usr/local/lib/systemd/system/stop_syncro.service
[Unit]
Description=Service d_arret de la Synchro
...
0
votes
1
answer
9
views
SystemD timer error on CentOS7 : Failed to parse calendar specification, ignoring: Mon..Sat *-*-* 18:00:00
My timer is rejected by the system on CentOS7 :
$ journalctl -u synchro_ADN_To_Scality.timer --no-pager | sed 's/^.*systemd.1.: //' | sort -u
-- Logs begin at Thu 2023-04-06 10:25:28 CEST, end at Thu ...
1
vote
0
answers
12
views
How to mount a partition after resuming from hibernation with systemd
I am hibernating from Linux (Pop_OS) in a dualboot setup, and I have one partition shared between the two systems. I hibernate using a script that ensures the shared partition is unmounted first:
#!/...
1
vote
1
answer
36
views
Systemd in WSL on Windows 11 is not working
I'm running a fully upgraded Windows 11 Enterprise host (version 22H2, build 22621.1702) and I have installed enabled WSL in the normal fashion (https://www.windows11.dev/ce7in/how-to-install-wsl2-and-...
2
votes
0
answers
153
views
systemd corruption on Ubuntu server 22.04.2
I've just upgraded my Ubuntu server 20.04 LTS to 22.04.2 LTS (apt update, apt upgrade, apt dist-upgrade, do-release-upgrade, apt full-upgrade) and after the upgrade ended up with systemd corruption ...
1
vote
2
answers
93
views
force filebeat to log to a file
Using filebeat-8.7.1, I have it configured to push several sources to a remote elastisearch. I cannot get it to log its own logging to a local file /var/log/filebeat/filebeat.log, and I cannot prevent ...
1
vote
0
answers
58
views
rsync permission issue when run as systemd service in userspace
Ssh:d to a raspberry pi with Raspbian 11 I'm trying to create a userspace systemd service unit and timer for running an rsync command that would sync two folders under the home folder of the user I'm ...
1
vote
1
answer
70
views
How to disable/prevent default ipv6 route with systemd-networkd
I'm using systemd-networkd on my linux router, and this is ip -6 route output:
::1 dev lo proto kernel metric 256 pref medium
240e:3b0:3041:4df::/64 dev ppp0 proto ra metric 1024 expires 2591826sec ...
2
votes
0
answers
32
views
systemd: intercepting poweroff, shutdown, reboot and alert us we still have KVM QEMU guest(s) running
I want to interrupt a poweroff or reboot if KVM/QEMU Guests are still running.
It should work regardless whether shutdown/reboot is requested from XFCE, or from terminal. I already have a script that ...
1
vote
1
answer
67
views
systemd brings up sshd before networkd, causing no ssh service
On my Ubuntu 23.04 system, systemd will attempt to bring up sshd before the network's bridge is brought up by systemd-networkd
First it reports: Cannot assign requested address
And then: br0: netdev ...
0
votes
0
answers
49
views
How to bind a folder with idmap on ZFS with systemd-nspawn
It seems that as of Ubuntu 23.10, ZFS now supports idmapping. I wanted to use this to bind mount a ZFS mount /zpool/secure to an nspawn container with root /zpool/kiba, so that the bound mount would ...
0
votes
0
answers
46
views
How to prevent systemd.timer immediately restart a service?
I have a daemon service that needs to keep working 08:00~16:00 every workday, and I want it exit at 16:00, and keep exited at rest time range and weekend.
I make a systemd.timer for it as following:
[...
0
votes
0
answers
45
views
Running wireguard VPN and noip2. How do I update my DDNS to my default public IP with namespace?
I'm running wireguard VPN on my linux machine (B) as a client connecting to a server (A) in a different country.
I also need to access B remotely without using the VPN so I'm running a noip2 DUC DDNS ...
0
votes
0
answers
97
views
Udev Not Creating input/by-id symlinks
I'm trying to use hawck which depends on /dev/input/by-id symlinks. But for some reason the directory is not being created there. The /dev/input/by-path is there but not the by-id. I looked at the ...
0
votes
0
answers
43
views
zsh tab-completion does not work for my own /lib/systemd/system services
In my Ubuntu 20.04 focal environment, zsh tab-completion is not working for my own /lib/systemd/system services.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: ...
1
vote
0
answers
165
views
How do I get a program to autostart in Arch Linux?
The question sounds trivial, but hear me out.
I have set up Arch and added icewm to it, works like a charm with xserver.
I can start icewm with the .xinitrc file no problem, but when I add "...
0
votes
0
answers
76
views
Why is the RuntimeDirectory is not created by user service startup?
when I start "myApplication-myInstance.service" as a user, the RuntimeDirectory (see man systemd.exec) is not created :
$ systemctl --user cat myApplication-myInstance.service | grep ...
1
vote
0
answers
111
views
How to logrotate Docker containers with journald log-driver
I would like to achieve log rotation for Docker containers, but also preserve logs on Docker container recreate (docker compose up --force-recreate). Local driver seems perfect (it allows custom file ...
0
votes
1
answer
156
views
systemctl start service command is not working in userdata of ec2
I am trying to run systemctl service in ec2 instance on launching of ec2 instance.
So for to run my script on start of ec2 instance i am running my script using user data of ec2 instance.
So my script ...
0
votes
0
answers
16
views
What are the directories that systemd scans for a new service file that runs an application that does not belong to the OS?
I need to create a new systemd service that launches an application stored in /opt/myApp/, where should I create a myService.service file on the Linux filesystem ?
EDIT0 : I created my service into /...
0
votes
1
answer
48
views
How to restart a daemon program with another argument using systemd watchdog
An application managed by systemd should be restarted when it freezes. Systemd should restart application passing another argument as on the first time after boot. Any idea how to do that?
3
votes
1
answer
221
views
WSL2 Hibernate Ubuntu 22 Windows 10
Why are (or how can I stop) my WSL2 Ubuntu 22.04 instances shutting down when I hibernate my Windows 10 laptop?
I have been happily using WSL1 for some time and recently got WSL2 working correctly. I ...
0
votes
1
answer
238
views
How can I add a permanent IP routes that survives a network restart (systemd-networkd)?
Given that adding routes is allowed on a node, how can I setup a persistent IP route? Currently when I use:
ip route add {NETWORK/MASK} via {GATEWAYIP}
It gets removed after every network restart.
I ...
0
votes
2
answers
76
views
At boot, howto start systemd service described in a NFS path
on our centos 8 servers, we have many custom services to start at boot time.
To split things between system and "our stuff", we put everything in our path /truc
Thoses services are enabled ...
0
votes
0
answers
312
views
How to debug: Failed to connect to bus: No such file or directory (systemctl --user status)?
I am trying to run systemctl --user status from a user account in order to not run services from root.
The way I do it is as follows:
loginctl enable-linger $USER
export XDG_RUNTIME_DIR="/run/...
0
votes
0
answers
49
views
Systemd timer OnCalendar based on instance name with calculation
I have a systemd timer that is templated. The instance names are all just integers (mytimer@1.timer etc).
Is it possible, in the OnCalendar directive, to have the calendar expression perform basic ...
1
vote
0
answers
11
views
I am doing a project on object without monitor and i choosen ststemd for that and i am getting error [closed]
[Unit]
Description=object
After=network.target
[Service]
ExecStart=/usr/bin/python3 /home/pi/raspberry_pi/test.py
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
This is the code. When I ...
1
vote
1
answer
42
views
debian unitfile execStart binary error but manually works
I'm trying to run a go binary as systemd service. I have others with same configuration working fine. But I don't know If I missed something. This is my unit file:
[Unit]
Description=my service app
[...
0
votes
1
answer
39
views
How to stop tasks at specific time using systemd
I have script that is executed when system starts. I would like to use at or something else to stop the script (processes spammed by this script) at specific time. I tried to write something like this,...
1
vote
0
answers
152
views
Systemd TightVNC Multi User
This may have already been answered before, but if it has, my google foo isn't strong enough to find it.
I'm running a TightVNC server and I want multiple users to connect to it. I have found the ...
0
votes
1
answer
345
views
Systemd service keeps stopping
I have several systemd user services, but after a while they all stop (and restart), with little information. Here's one of the services, a Go web server:
[Unit]
Description=App
[Service]
...
0
votes
0
answers
88
views
How is the systemd-journald RateLimitBurst multiplier applied when Storage=volatile or Storage=none?
The journald.conf manual mentions that:
[...] the effective rate limit is multiplied with a factor derived from the available free disk space for the journal.
If Storage=persistent, then I think ...
0
votes
0
answers
35
views
Mount target for network shares
I mount my file storage over samba via systemd automount to /mnt.
But I can't really recall why I it that way instead of mounting it to my single users ~/. Now I wonder whether there is a good reason ...
1
vote
0
answers
197
views
Static IP address not being assigned by DHCP server to host on a certain interface of a systemd-networkd bridge
I've got a box that I configured as a wired/wireless router, using systemd-networkd to define a bridge (br0) between enp3s0 (wired) and wlp1s0 (wireless) interfaces, with the systemd-networkd DHCP ...
2
votes
0
answers
62
views
Issue with systemd: several critical services failed
I've discovered I have an issue with systemd on my Debian server.
I've seen that some logging service don't want to start through systemd but the daemon itself start without issues:
❯ systemctl start ...
0
votes
0
answers
66
views
python application executed via systemd versus commandline
I have a python application which is exhibiting a bug when run via systemd but not when run via the commandline.
The python application utilizes multiprocessing and each process routinely outputs ...
1
vote
0
answers
73
views
systemd-network only works for a short time
I recently noticed that ping only works for a short time on my server. Five to ten minutes after I reboot, pinging any server but mine results in 100% package loss.
I have localized the problem to the ...
0
votes
0
answers
44
views
systemd service reads .ini file, throws no section error
I am working with a systemd service that must start a python script, which is configured with a .ini file. The service looks like this:
[Unit]
Description=service to configure and run python script ...
0
votes
1
answer
163
views
Always append a per link routing domain with NetworkManager to be used by systemd-resolved
I'm using a global DNS server with the routing domain ~. to make sure that DNS queries are not being leaked:
# cat /etc/systemd/resolved.conf.d/dns.conf
[Resolve]
DNS=1.2.3.4#example.org
DNSOverTLS=...
0
votes
1
answer
72
views
Automatic DHCP after Softether VPN Client starts via SystemD
Long story short: I have this SystemD unit for my Softether VPN client:
[Unit]
Description=SoftEther VPN Client
After=network.target
Wants=softethervpn-server.service
[Service]
Type=forking
ExecStart=...
0
votes
0
answers
26
views
Config for all systemd services
I would like to add a few config options either as defaults or overrides (preferrably the latter) to all systemd services on a system. Is that possible?
Background:
I have a server where sometimes ...
2
votes
1
answer
332
views
user@0.service failed in WSL with systemctl enabled
The user@0.service unit failed to start in my WSL system on my Windows machine. The error is because the /run/user/0 directory belongs to my user account, not the root. I tried to change its owner to ...
1
vote
0
answers
25
views
How do all the networking services fit together? [closed]
I am struggling a little with understanding what all the different networking systems do. On my Fedora workstation, everything "just works", but I am running Debian on a Raspberry Pi and I ...
0
votes
0
answers
345
views
ModuleNotFoundError: No module named 'pyModbusTCP'
I am trying to run a python file on bootup which will collect some data from another device.
I created a service in the /etc/systemd/system directory
[Unit]
Description = File which requests data from ...
0
votes
1
answer
245
views
How can i use systemctl to start up a python program on startup in raspbian
I have a python program that receives some data from a different device and prints it to the console. I want to make this program run on startup, the way I read online to do so is by creating a ...
1
vote
0
answers
20
views
ping6 echo requests from container get lost partially
Thanks to kasperd's response on "ipv6 ping host got destination host unreachable until run tcpdump" I learned about tcpdump putting the listened on interface into promiscous mode. When ...
0
votes
0
answers
445
views
Log stdout to journal from SystemD
I have a service unit with the following lines:
[Service]
StandardOutput=journal
StandardError=journal
When my service logs to stderr, I can see the logs with journalctl -f -t my-service.
But when I ...