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
23
votes
3answers
23k views

Setting up a Raspberry Pi as an access point - the easy way

I know how to do it the classic way as described for example by the official documentation at Wireless connectivity. But that needs many different components which must play together and each ...
20
votes
8answers
52k views

Force IPv4 address

I upgraded my Raspberry Pi to Jessie, which uses systemd. One side-effect is that it connects using IPv6 only and does not have an IPv4 address. How can I force it to get an IPv4 address from the DHCP ...
0
votes
0answers
27 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 ...
1
vote
2answers
2k views

Problem autostarting pigpiod

On my Pi3B+ I had pigpiod configured to run on boot and I can successfully run compiled c programs; specifically DHTXXD.c which contains:- /* DHTXXD.c 2016-02-16 Public Domain */ #include <stdio....
0
votes
1answer
824 views

Wpa_supplicant with openwrt router ‘could not read SSID from driver’

Arch Linux ARM was installed successfully on a Raspberry Pi3 which will be added to a small network. The first attempt at setting up wifi on the Pi3 failed, showing alarm wpa_supplicant[323]: wlan0: ...
0
votes
1answer
495 views

Trying to setup a node.js script as a system service

I am trying to setup a node.js based telegram bot to run as a system service but get Access Denied error every time I try to execute it. Here is the .service file I have created. [Unit] Description=...
0
votes
2answers
34 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 ...
2
votes
1answer
2k views

Make ifplugd available with systemd

On networking I often need to know when a connection is complete established with an ip address or if it gets down. In the past this was done with the classic daemon ifplugd. The Debian package for it ...
0
votes
1answer
26 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 ...
2
votes
3answers
162 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] ...
2
votes
0answers
42 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 ...
5
votes
1answer
4k views

How to setup an unprotected Ad Hoc (IBSS) Network and if possible with WPA encryption?

There are several tutorials out there to setup an Ad Hoc network, for example Ad Hoc setup in RPi 3. But how can I do this using systemd-networkd? And all what I've found is using unprotected ...
0
votes
0answers
29 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 ...
0
votes
0answers
22 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
1answer
120 views

Why is my systemd script not working, while reboot pi my app not receiving signal(SIGTERM, SIGINT )

[Unit] Description=+++++++++++App start/stop+++++++++++++++++ After=network.target [Service] User=root Group=root StandardOutput=null ExecStart=/usr/local/bin/app_start > /dev/null Restart=always ...
1
vote
1answer
682 views

Stop service without reboot when FailureAction=reboot is defined

I have following service, which run java my java app. There is no ExecStop defined, therefore calling systemctl stop garage kills the app and app enters into FAILED state. But then, of course, reboot (...
1
vote
2answers
85 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 ...
0
votes
1answer
220 views

Installed Ubuntu 16.04 LTS 'classic', no .config directory for users

I've installed Ubuntu 16.04 LTS 'classic' on my Pi 3, and am using the CLI which is a struggle but bearable. I've created a user, and subsequent instructions involve configuring a startup daemon in ...
6
votes
3answers
5k 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 ...
1
vote
1answer
170 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/. ...
0
votes
1answer
2k views

Bluetooth service being skipped

I'm attempting to use a HC-06 bluetooth module on a raspberry pi zero (not w). I have it wired correctly and have used it before on older versions of raspbian, but I decided to update to the lastest ...
0
votes
1answer
726 views

DHCP configuration in systemd

Currently, I have configured access point using hostapd and using systemd for configure the network ap0 (access point device). the access point configured automatically to use DHCP server. my ...
1
vote
0answers
45 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 ...
0
votes
1answer
635 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/...
0
votes
1answer
170 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 ...
0
votes
0answers
12 views

rslsync crashing continously

For quite some time I had rslsync up and running on a Raspberry Pi Model 1 until recently, rslsync started crashing & the Raspbian OS stopped to receive updates. So I chose to set it up again, ...
0
votes
1answer
59 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 ...
9
votes
1answer
2k views

Automatically Create Hotspot if no Network is Available

I want to automatically create an access point, if there is no network found, so that I can connect to my Raspberry Pi everywhere. If nobody is connected to the hotspot for a while it should search ...
0
votes
0answers
43 views

SSH tunnel immediately gets closed - systemd

I have made a systemd service called rtunnel.service. It should create a ssh tunnel as the pi boots up but it gets closed immediately. Can somebody explain whats my problem here. Please can somebody ...
0
votes
1answer
1k views

Can't use sudo systemctl start myService

Raspbian Buster Lite: Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux I am getting System has not been booted with systemd as init system (PID 1). Can't operate....
1
vote
0answers
18 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 ...
6
votes
1answer
6k views

How to correctly restart wpa_supplicant debug with networkd-systemd?

I am trying to debug setting up wifi with networkd-systemd managing wpa_supplicant. The overall objective is to get wifi AP and managed client modes working at the same time. I can get managed ...
1
vote
2answers
290 views

systemd status automatically changes to inactive

I can start a service called nodeserver.service and when I check its status it is active. But if I check its status again after a second or two it becomes failed. The service itself looks like this, ...
3
votes
1answer
221 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. ...
1
vote
2answers
80 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 ...
0
votes
0answers
35 views

How to allow other admin to manage systemctl

I have a pi 4b. I added a new admin as explained in https://www.raspberrypi.org/documentation/configuration/security.md, it has access to all those groups. I locked the pi user: sudo usermod --lock ...
2
votes
1answer
994 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 ...
0
votes
1answer
410 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
1answer
26 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 ...
2
votes
1answer
105 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
1answer
427 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 [...
1
vote
2answers
339 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....
0
votes
1answer
31 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 ...
2
votes
2answers
160 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 ...
0
votes
1answer
265 views

Issues with systemctl launching service

I have followed various tutorials to get systemd to launch Homebridge on my Pi. This is the main one which seems to have worked for many others: https://timleland.com/setup-homebridge-to-start-on-...
0
votes
2answers
407 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 ...
1
vote
1answer
685 views

“initMboxBlock: init mbox zaps failed” when using pigpio library in a daemon using node.js

I am writing a daemon using node.js, running under systemd and it will monitor the status of the power supply voltage on a raspberry pi 2 B. I am using the node.js wrapper to the pigpio library The ...
1
vote
1answer
37 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/...
1
vote
1answer
49 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
4answers
16k views

disable dhcpcd.service for static ip?

I'm trying to speed up boot time on my PI. systemctl-analyze tells me it takes 7.7s to start dhcpcd.service. This seems a bit much, all I need is a static ip address for eth0 (for a local network only,...