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
1 answer
15 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 ...
2 votes
2 answers
52 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 ...
  • 123
0 votes
1 answer
34 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 ...
1 vote
1 answer
41 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 ...
0 votes
0 answers
237 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=...
0 votes
0 answers
63 views

Systemd service as status control

I have a script which is supposed to be executed on boot when the network connection is established (local network would be sufficient). It is the shell version of linphone. This is my current unit ...
  • 101
-1 votes
2 answers
196 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=...
  • 157
0 votes
0 answers
162 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 ...
-1 votes
1 answer
162 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 ...
  • 1
1 vote
1 answer
1k 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. ...
  • 107
0 votes
1 answer
205 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 ...
  • 111
1 vote
1 answer
3k 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-...
0 votes
1 answer
217 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/...
1 vote
1 answer
730 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/...
1 vote
0 answers
56 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. (...
  • 11
0 votes
0 answers
343 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 ...
  • 1,052
0 votes
1 answer
566 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 ...
1 vote
1 answer
758 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 ...
0 votes
1 answer
57 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 ...
4 votes
0 answers
839 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 ...
  • 211
0 votes
0 answers
104 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 ...
  • 1
0 votes
0 answers
253 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. ...
0 votes
3 answers
97 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 ...
1 vote
3 answers
1k 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 ...
1 vote
1 answer
3k 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/. ...
  • 11
2 votes
3 answers
2k 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] ...
1 vote
0 answers
170 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 ...
1 vote
1 answer
9k views

systemd error: (Loaded: bad-setting)

I'm using a Raspberry Pi 3B+ with Raspbian GNU/Linux 10 (Buster) currently installed as my OS. I'm having some issues in starting a systemd service that will rerun a Python script whenever it stops/...
1 vote
1 answer
886 views

dhcpcd not trying to reconnect after disconnections

I have a Pi (with Raspberry Pi OS) connected to the router via ethernet, and whenever it loses connection, dhcpcd doesn't automatically try to reconnect. Now, that is especially a problem since I'm ...
7 votes
4 answers
17k views

Wireguard "Unknown device type" "Protocol not supported"

I recently installed Raspberry Pi OS on my Pi 3b. After some basic configuration and running raspi-config, I installed wireguard using apt and the debian backport repos, according to a tutorial. I ...
  • 286
0 votes
1 answer
294 views

How to disable systemd-resolved so that netctl keeps working?

I tend to disable most systemd daemons, even systemd-journald, but systemd-resolved is elusive. If I disable it, netctl responds with: Unit dbus-org.freedesktop.resolve1.service not found. I believe ...
1 vote
0 answers
27 views

How do I fix my crashed bluetooth? [duplicate]

After an apt update today, my bluetooth menu disappeared from the menu bar. Even the services are not running anymore. Whenever I am trying to fix something(with systemctl and apt), this message ...
  • 1,780
3 votes
1 answer
1k views

Schedule power off with systemd

I've enabled the following systemd unit file in order to properly shutdown my Raspberry Pi before a real timer in between cuts the power off. but it does a reboot, not the actual shutdown that I want. ...
  • 31
2 votes
2 answers
478 views

Allow non-root user to set system time

I am using Raspbian Buster on an Raspberry Pi 4. I would like to give permissions to a non-root user to be able to set the time with /bin/date -s. The user is going to be used to run a python script ...
  • 251
2 votes
1 answer
3k views

Jack audio server - can start on CLI but not as a systemd service

I try to start jack server on boot I can run it manually on the desktop: pi@raspberrypi:~ $ /usr/bin/jackd -r -d alsa -r 44100 jackdmp 1.9.12 Copyright 2001-2005 Paul Davis and others. Copyright ...
  • 161
1 vote
1 answer
2k views

Raspberry Pi4 systemctl suspend or systemctl hibernated not supported?

I need to get my Pi4 running Raspbian to sleep or hibernate. The when I type the commands systemctl suspend or systemctl hibernated I get the error 'not supported'. Is it possible to enable this ...
0 votes
1 answer
105 views

My python script does not shutdown when started during startup

So I have a python script that starts as expected during power-on by following: Startup by systemd My Pi has a button connect to GPIO which is used to stop the logger and then shut down the Pi like ...
3 votes
1 answer
422 views

Mounting an external drive by label at startup with systemd

I'm working on some home automation via a Raspberry Pi 3 B, I've got an external drive attached to it that I want to mount at startup without using fstab because I'll likely remove it at some point ...
0 votes
1 answer
2k views

Open (lx)terminal on startup, run program in it

I have the following service: [Unit] Description=Create test directory After=graphical.target [Service] Type=oneshot RemainAfterExit=yes User=pi ExecStart=/home/pi/Desktop/startup-script.sh [...
  • 143
1 vote
2 answers
1k views

Raspbian Stretch unable to start SSH on boot: Problem starting ssh on boot exit 255 when executing ssh -D $SSHD_OPTS?

When I boot my Raspberry pi running Stretch 9, the syntax checks out alright, but when it goes to start the following error is what it gets: pi@hostname:~ $ sudo systemctl status ssh.service * ssh....
  • 704
0 votes
1 answer
48 views

Problem with launching webpage at boot

I am facing some issues starting a webpage with my raspberry pi at boot. I created a web weather dashboard with some widgets and I want my raspberry pi to start this webpage at boot. My raspberry ...
  • 3
2 votes
2 answers
238 views

Running IRSEND through custom service

I am totally new to raspberry pi and I am trying to get the IRSEND command to work in my custom service. My objective is when my pi is about to shutdown or reboot that it would execute a shell script ...
1 vote
2 answers
2k views

Raspbian: journalctl only lists current boot although syslogs exist

Although there are previous syslog files in /var/log -rw-r----- 1 root adm 55117 Feb 10 06:25 syslog.6.gz -rw-r----- 1 root adm 66363 Feb 11 06:25 syslog.5.gz -rw-r----- 1 root adm 54885 ...
  • 255
1 vote
1 answer
55 views

Start a pyhton script, which depends on I2S as soon as possible during the startup of my Raspberrypi

I have the following systemd service, which starts a systemd service as soon as I boot my raspberrypi: [Unit] Description=MyService DefaultDependencies=false [Service] Environment=SERVICE_HOME=/home/...
  • 824
1 vote
1 answer
142 views

Program Crashes on Systemd (systemctl), Works Fine Running Manually

I have a program (c program, run using a shell script) that uses sockets to connect to a server, retrieve data (on an interval) and (based on that data) power an LED matrix. When I run this program ...
0 votes
0 answers
80 views

pulseaudio server RP3 can't play audio from network client and local client at the same time

I have a Raspberry Pi 3 B connected to my speakers through a usb soundinterface. It's also connected via usb midi to a masterkeyboard which I use to play piano and doesn't have it's own speakers. On ...
  • 1
3 votes
3 answers
2k views

How to know if time is synced?

I'm writing a software in C and it is running as a systemd service. I need the service to run after time has synced or alternatively, I need a way for my C program to identify if time has synced. I'm ...
1 vote
1 answer
166 views

Boot time problem

i want to reduce boot time on my Raspberry Pi 3B+. I'm using this tutorial http://himeshp.blogspot.com/2018/08/fast-boot-with-raspberry-pi.html and i done 1,2 and 3 step. After this i reboot Pi and ...
  • 11
0 votes
1 answer
470 views

openvpn exits with error 1194 port already in use

I have pivpn installed on my raspbian stretch running on 1194 port. in the beginning it was working fine , but now from few days I am getting this error on reboot. Sep 26 21:17:29 titan ovpn-bridge-...
0 votes
1 answer
67 views

Custom systemd service stays linked

I have a custom systemd service defined in /lib/systemd/system/myservice.service: [Unit] Description=My simple service daemon After=network.target udev.service [Service] User=serviceuser Type=simple ...