Skip to main content

Questions tagged [systemd]

Systemd is an init system developed for use on GNU/Linux, generally replacing the old SysV daemon.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How do I make my script execute as fast as possible on my Raspberry pi Zero W

I have a script that I want my Raspberry pi zero W to run. However, it takes quite a lot of time for it to run my Python Script (around 30-40 seconds). I'm using Raspberry pi OS lite (bookworm). ...
H3LL_0U's user avatar
0 votes
1 answer
32 views

USB Python Script Issue Raspberry Pi OS

I'm encountering an issue where I'm trying to trigger a Python script in the background upon plugging in up to four USB devices, all with the same USB vendor and product IDs. To accomplish this, I've ...
Figaro's user avatar
  • 1
1 vote
1 answer
42 views

Problems with start service automatically on boot

I'm developping a dotnet core service to run in rpi4, and when i execute the service with "dotnet run rpiservice.dll" the code executes normally. So, i created a .service file and insert in /...
FelipeFonsecabh's user avatar
1 vote
1 answer
87 views

Systemd-homed on Raspberry Pi OS Bookworm

I recently bought a Raspberry Pi 5 and installed the latest version of Raspberry Pi OS Bookworm. My question is related to systemd-homed. When I create a new user following the instructions on https://...
David Ramírez's user avatar
0 votes
0 answers
88 views

Kiosk mode audio output problem

When the Raspberry Pi 4/5 boots, I automatically start the Chromium browser (kiosk mode) with systemd according to the configuration below. [Unit] Description=kiosk app After=graphical.target [...
Cenk Kalkandelen's user avatar
0 votes
1 answer
85 views

systemd service doesn't work at shutdown, only on reboot

So I have a Raspberry Pi 3B+ running Raspberry OS on Xfce GUI. I'm trying to run a script on shutdown using the advice given on this thread. [Unit] Description=Screensaver [Service] Type=oneshot ...
Javier de Pascual's user avatar
0 votes
1 answer
1k views

Autostart a GUI application as user after this user is logged in (automatically)

I cannot figure out how to autostart a GUI application as the logged in user on the current Raspberry OS Full (Bookworm, 64-bit). I tried via systemd, but for some reason it fails, the error is as if ...
Violet Giraffe's user avatar
0 votes
0 answers
50 views

Raspberry Pi boot time issue

I am using Raspberry pi 3b+ and trying to reduce the boot time from power-on, till the GUI is shown(desktop mode). What basically happens is after power-on it takes some time to show the splash screen ...
John Mist's user avatar
0 votes
4 answers
107 views

Run systemd timer periodically but not on boot

I would like to run a script every 30 minutes on my RbPi, but not immediately after boot. Example: If I boot my RbPi at 15:15, the script should run at 15:30 not before. Setup: My RbPi has no ...
Pa Dalton's user avatar
0 votes
2 answers
1k views

SSH stays on port 22 even after editing sshd_config

I tried changing my SSH port from 22 to 220 but it stays on 22. I used sudo nano /etc/ssh/sshd_config to change the daemon config and uncommented the line with Port 22 and changed it. # This is the ...
Keen Gently's user avatar
0 votes
0 answers
39 views

Executing a script before shutdown on RPi3b+ running Buster

I am looking at executing a script on a RPi3b+ with Raspbian Buster that is copying some files located on a ramdisk to a persistent folder located on the SD Card before a shutdown or a reboot of the ...
jfh999's user avatar
  • 1
0 votes
0 answers
91 views

network.target stays dead, causing troubles for dnsmasq.service

I'm having issues with dnsmasq.service, caused by network.target I've seen people having problems with network.target but for them it was caused by network-online.target. But it works fine for me ● ...
Matt's user avatar
  • 1
-1 votes
1 answer
278 views

Why is systemd-hostnamed.service started at boot and by what?

systemd-hostnamed.service on my Bullseye is started at boot time by what? It does not start at boot time on my Buster. It generates problem when no DHCP-server is present on the network. - In that ...
user2304458's user avatar
0 votes
0 answers
381 views

Cannot run PulseAudio as root (sudo)

I have developed a console application in .net 6 which uses a library that needs direct access to the gpio-pins of the Pi. The Pi is running the latest Pi OS Lite x64. Edit: This is the library ...
Jan's user avatar
  • 1
1 vote
1 answer
261 views

dhcpcd.serve failed after recent updates

My System Raspberry Pi 3B running RaspberryPi OS Bullseye 32 bit. Even though it has a desktop I mainly use it as a server, running Pihole inside a docker container. Probable Cause After the most ...
user68186's user avatar
  • 514
1 vote
1 answer
34 views

Does systemd-timesyncd still check for the presence of other ntp daemons?

In buster, the following command could be used to list the configuration of systemd-timesyncd: $ systemctl cat systemd-timesyncd Note the reference at the end of the cat listing to a [Unit], with ...
Seamus's user avatar
  • 22.3k
0 votes
1 answer
299 views

Start X application (ffplay) on startup

I have an IP camera connected to the Raspberry Pi. I am using ffplay to display the camera through rtsp and it works. But I can't make it start when X starts. I tried several route: rc.local /etc/xdg/...
Luke Skywalker's user avatar
1 vote
3 answers
266 views

Can't play audio via BT from systemd service

I have a Pi0 which I am using to play radio or local music files via a BT speaker (see https://github.com/WhyNine/pi-radio-music for the full source code). The code is written in perl and I am using a ...
WhyNine's user avatar
  • 51
2 votes
1 answer
94 views

Error mounting drive at service startup (ExecStartPre)

As a precondition for starting my Syncthing service, I wish to mount an external USB drive (label MyBook). The action must be synchronous, so putting it anywhere else besides the service's ...
InteXX's user avatar
  • 145
2 votes
2 answers
480 views

systemd user service shows status "dead" on boot, but runs when manually restarted

I'm writing some code to run a sound/light show from a raspberry pi 3 A+, using the latest Bullseye OS. I've been testing it manually, running via ssh, and all is well. However, it needs to run ...
meeotch's user avatar
  • 31
1 vote
1 answer
804 views

How to start darkice on boot using a systemd service (or alternatives)

I'm trying to start darkice each time the raspberry pi is booted. I created a file /etc/systemd/darkice.service like this description = darkice_radio_streamer After = multi-user.target [Service] #...
576i's user avatar
  • 229
3 votes
1 answer
380 views

Plymouth failed at boot - CAUGHT SEGV

I have a degraded systemd on my Raspberry (Raspberry OS) and the culprit is : plymouth. I have this error (catch SEGV) plymouth-start.service: Main process exited, code=killed, status=11/SEGV ░░ ...
JoelCrypto's user avatar
0 votes
2 answers
1k views

How to make systemd wait for my network to come online?

I've created the following systemd unit: [Unit] Description=MagicMirrorConfig After=network-online.target Wants=network-online.target [Service] ExecStart=sh /home/pi/magicmirror-config/launcher.sh ...
pinoob's user avatar
  • 101
1 vote
0 answers
37 views

Why would an app started by systemd on boot perform differently [closed]

I have a python application that I'm trying to start using systemd. I have my unit file set up and systemd configured to start the app. When I sudo systemctl start my_app.service it starts and ...
Riggs's user avatar
  • 11
0 votes
2 answers
3k views

How can I set a fixed IP on Raspberry Pi running Debian bullseye?

I am struggling getting my rPi to get a fixed IP. I have this /etc/dhcpcd.conf, but that doesn't seem to do anything: # A sample configuration for dhcpcd. # See dhcpcd.conf(5) for details. # Allow ...
Bart Friederichs's user avatar
2 votes
2 answers
242 views

Launch a Bluetooth Low Energy command after raspberry startup

I wrote a command in swift that uses the internal bluetooth low energy module of my Raspberry PI 4. This command must be launched as superuser. Everything works perfectly if I launch the executable ...
Andrea's user avatar
  • 123
0 votes
1 answer
156 views

Can't run FFPlay to playback an Audio Stream on Port 80 using systemd service?

I am trying to play a radio station WETA FM from a systemd service. I think the problem is that the URL source goes through port 80 and therefore the radio doesn't play after reboot. It plays fine ...
Jim Dandy BOA's user avatar
2 votes
1 answer
126 views

whats the difference between systemd service and running app directly?

In what ways are things different when running an app directly as a user, vs running the same app as a service with systemd? I wrote an app to play audio cues on my RPI. It is working perfectly when I ...
distractedhamster's user avatar
1 vote
1 answer
663 views

Black screen when running VLC from systemd

I want to display a video on a monitor via systemd. my systemd script looks like this: [Unit] Description=example script [Service] TimeoutStartSec=0 ExecStart=bash /home/pi/script.sh Type=simple User=...
rsheldiii's user avatar
-1 votes
2 answers
734 views

Executing sh script on (first) startup using systemd.run causes black screen/shutdown

I'd like to execute a shell script for some pre-configuration tasks on the first boot. I found systemd.run like this in the cmdline.txt on the boot partition: console=serial0,115200 console=tty1 root=...
Lion's user avatar
  • 207
0 votes
0 answers
495 views

Configure and restart wlan0 network interface with uap0 interface without disrupting connection to uap0

I have two network interfaces, wlan0 and uap0 currently set up. I am using uap0 as WiFi access point that a user's WiFi device can connect to and be used to configure the wlan0 interface via a Web UI ...
ryhansen34's user avatar
-1 votes
1 answer
583 views

GPS Daemon not working on RPi, but works on my Arch PC

I followed this Adafruit Tutorial; trying to make GPS Daemon work on RPi4- on Raspberry OS minimal. Here is my situation: I can see NMEA data is coming thru minicom -b 9600 -D /dev/ttyUSB0. There is ...
Garid's user avatar
  • 101
1 vote
1 answer
2k views

Disable systemd-random-seed

I am looking to speed up the boot time on my Raspberry pi and systemd-random-seed is taking 20s (old Pi 1). From what I've read up this is waiting to collect entropy to generate a system random seed. ...
Spencer's user avatar
  • 107
0 votes
1 answer
405 views

Pygame audio is full of pops/crackling when started via systemd

I'm trying to set up a Python process that plays audio to auromatically start on boot with systemd but when I do the audio is full of pops, even though it's fine when I run it myself in the command ...
Aido's user avatar
  • 111
3 votes
1 answer
9k views

How to Resolve Port 53 Conflict Between, systemd.resolved and pihole-dnscrypt docker

Problem: port 53 conflict between systemd.resolved and pihole in the pihole-dnscrypt docker Setup: pi 4, ubuntu 20.04.2 (clean install) Guides for install: (1) https://github.com/losuler/pihole-...
stinkfoot's user avatar
0 votes
1 answer
462 views

Systemd service not updating

I have a service on my Raspberry Pi which runs a bash file on boot. I recently updated the bash file (run.sh) but the service is not reflecting the update. So far I have tried: sudo systemctl disable/...
Jeremy Hamm's user avatar
1 vote
1 answer
1k views

Why remove systemd random seed in read-only filesystems?

I'm following this excellent tutorial. In it, he guides through creating a read-only filesystem for raspberry pis. One of the steps is to remove the systemd/random-seed $ sudo rm /var/lib/systemd/...
Josh Vander Hook's user avatar
1 vote
0 answers
160 views

Turn SenseHat leds off at shutdown

I am trying to turn off the SenseHat leds when the device reboots/shutsdown etc. The reason is that the leds stay at their last pattern so I cannot visually tell if the machine has actually shutdown. (...
jc508's user avatar
  • 11
0 votes
0 answers
679 views

Failed to get D-Bus connection: Unknown error -1

Well I ran into a major network failure when I try to get two PIs talking to each other directly through their Ethernet ports. They use to connect to each other and communicate, but for some odd ...
ThN's user avatar
  • 1,063
0 votes
1 answer
1k views

Raspberry Pi Auto-start Executable with Systemd, Loaded but Inactive (Dead)

I am trying to run a CPP client application to connect to a server when Raspberry Pi is booted and connected to the Internet. I validated this CPP executable (Asio_Client_Main) works fine when ...
mqmarathon's user avatar
1 vote
2 answers
2k views

Python script not playing audio when run through systemd

After trying every possible solution online I am posting this question. I have a python script that runs on boot with the help of systemd. Everything worked fine till I installed a fresh raspian ...
Nitesh Singh's user avatar
0 votes
1 answer
84 views

Systemd help loading things after a mount

wondering if someone can help. Setting up a seedbox and getting the last few things ironed out have a sata hat raid that i've got to mount using systemd however when I reboot minidlna and qbittorrent ...
JeffTyler27's user avatar
4 votes
0 answers
1k views

Plymouth bootsplash starting too late

I've set up a Plymouth bootsplash inside an initramfs on Raspbian buster. (It's using something similar but not identical to the raspi-config RO overlay.) But I've noticed that there's a ...
Miral's user avatar
  • 211
0 votes
0 answers
151 views

Check if Raspivid service is running?

I am creating a program the requires the following: Check if raspivid is currently running. Check if its running out of a services file. if it is running out of a specific file, determine which ...
Bowman's user avatar
  • 1
0 votes
0 answers
567 views

Folder `/run/user/$(id -u)` does not exist

I am running raspian (Linux raspberrypi 5.4.51-v7+) on a headless raspberry pi (3B+), and I have just realized that my unprivileged user (uid 1001) does not get its /run/user/1001/ folder at boot. ...
mistyped's user avatar
0 votes
3 answers
213 views

Creating a daemon that pipes output from one programme to another under systemd?

The system is a Raspberry Pi B+ running Raspbian GNU/Linux 10 (buster) and using systemd. I had expected this to be a trivial exercise but it is appearing to be less so than expected. I have a USB ...
Tim Barker's user avatar
1 vote
3 answers
2k views

Systemctl not found on Buster

I recently downloaded the Buster lite installation package and have the latest updates. I get systemctl not found. The systemd files it uses are present. Apt-get systemctl fails. I need to run ...
NewtownGuy's user avatar
1 vote
1 answer
4k views

Why this service is inactive(dead)?

i've created a py file to monitor my home network. The script it self is running ok. I've created a service with systemd that will run this script every 30 sec and copy it in /etc/systemd/system/. ...
Bogdan's user avatar
  • 11
2 votes
3 answers
3k views

Help launching Tkinter on boot Pi 3

I tried the example in a Raspberry Pi SE question, creating a systemd ".service" in the past and it worked flawlessly, but now I'm running Tkinter with python3 on a raspberry pi3. [Unit] ...
arnaldo lacerda's user avatar
1 vote
0 answers
221 views

Starting Python program on boot starts but buttons do not work

Latest Raspbian on a pi zero w... I'm newish and still learning. I have a simple python program that connects to i2c lcd display that will control credits on a home arcade machine. So a momentary ...
user3486773's user avatar