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
-1
votes
1answer
13 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 ...
0
votes
1answer
20 views

Service in systemd dies when logging rotated

I have a Python program that I start on boot with a service in systemd. It works fine until Unix tries to rotate the system log file, and I get an error: "Journal has been rotated since unit was ...
0
votes
0answers
21 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
0answers
14 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 ...
2
votes
1answer
59 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. ...
0
votes
2answers
40 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
16 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
274 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
100 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
23 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
36 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
123 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
69 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
23 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
135 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
2answers
122 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
29 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/...
3
votes
2answers
214 views

systemd service enabled doesnt start on boot

Im having troubleshooting configuring systemd with rtorrent and screen in my raspberry pi. I have the service unit file configured and when i start it manually with systemctl start rtorrent it starts ...
1
vote
1answer
39 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
0answers
56 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 ...
2
votes
3answers
182 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
1answer
61 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 ...
0
votes
1answer
69 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
1answer
40 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 ...
1
vote
3answers
87 views

wget script randomly stops working

I am using a Raspberry Pi4 with Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux. I have a service that starts a C++ program. This program starts a script, reads ...
0
votes
1answer
1k 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
207 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 ...
0
votes
1answer
615 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....
0
votes
1answer
314 views

plexmediaserver service not starting giving Bad message on attempt

plexmediaserver service is not starting what should I do, all i was trying to make external hard drive accessible while attempting to add plex to pi andpi group to plex everything stopped working $ ...
1
vote
1answer
544 views

Unable to set autologin on Pi Zero W running Raspbian Buster lite, previous solutions ineffective

Upon setting boot options to autologin to console in my pi zero, it still asks for the username/password after reboot. I tried following the advice of this fourm post: https://www.raspberrypi.org/...
2
votes
1answer
2k views

Raspbian Buster - Keep network interface down on boot

I am configuring my raspberry pi zero w for a project in which I am using a micro-USB Ethernet (eth0) and WiFi (wlan0) as network interfaces. I am using wpa_supplicant to configure wlan0 to connect to ...
1
vote
1answer
61 views

Disable logging of dotnet core console output

I have a dotnet core application that is executed by a systemctl service. In normal operation it will always execute in this context. However the application may also be executed manually by the user ...
1
vote
0answers
77 views

ssh.service keeps restating forever

On my rpi machine pi@pi2 ~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.9 (stretch) Release: 9.9 Codename: stretch I ...
2
votes
1answer
108 views

USB WiFi dongle not recognized as network interface: ar9271

I'm running raspbian stretch on a Pi 3. I used these instructions, to use it as a wifi and ethernet router with systemd-networkd while USB tethering with my phone: How can I set my up to be WiFi AND ...
9
votes
1answer
1k 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 ...
1
vote
1answer
522 views

init.d script does not run start on boot but starts manually (Raspbian)

Whenever the system starts, the zfs-import init script does not run: root@kapnet:# /etc/init.d/zfs-import status ● zfs-import.service - LSB: Import ZFS pools Loaded: loaded (/etc/init.d/zfs-import;...
0
votes
3answers
274 views

Running subprocess in a service not working?

I have an automation python script to give a login request to local web server for captive portal wifi hotspot. Sometimes, even the wifi is connected the python login requests is give connection abort ...
0
votes
0answers
270 views

/sbin/init exists but couldn't execute it (error -13); systemd is a directory

My Rpi fails to boot. I get /sbin/init exists but couldn't execute it (error -13). Following the symlink leads to /lib/systemd/systemd. However it seems to be a directory rather than a executable. ...
1
vote
0answers
24 views

Full-disc encrypting Pi causes unpredictable network interface naming to stop

Today I setup a Pi 3B+ with the latest Raspbian Stretch image and recognized a strange behavior: When initially looking at the network interfaces, the unpredictable network-interface naming was ...
1
vote
2answers
284 views

Administering a RPi with AWS Systems Manager: systemd not starting amazon-ssm-agent.service on startup

Following this blog post about administering a RPi with AWS Systems Manager: https://aws.amazon.com/blogs/mt/manage-raspberry-pi-devices-using-aws-systems-manager/ ...I have installed and enabled ...
2
votes
1answer
671 views

Configure Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”

"How Do I configure a local caching DNS stub Resolver using "systemd-resolved"?" I've been using BIND to enhance performance by caching name queries on hosts. Since systemd-resolved is part of the ...
0
votes
0answers
113 views

SystemD running script before device driver loaded

We've a few Pi's, model 2, 3B+ and Zero W all running default Raspbian and with the latest firmware updates as of 25 March '19. All of these have an Infineon TPM 2.0 board attached to the gpio pins ...
0
votes
1answer
104 views

How to setup an acces point on 8812au driver using systemd networking?

I've been using this guide I've setup a Raspberry Pi 3+ which has a WiFi dongle and onboard WiFi to do this. The WiFi dongle is an AC600 with the 8812au chipset, requiring compiled kernel drivers, ...
1
vote
1answer
3k views

Replacing hostapd with wpa_supplicant

I want to get rid of hostapd, because it is very unstable, and use wpa_supplicant instead. What I did So I followed these instructions. I have a RasPi 1 with two external wifi dongles. I used a ...
1
vote
2answers
2k views

Raspbian not clearing systemd logs

I have some scripts that are running via systemctl. They generate lots of logs. My raspberry pi crashed, I checked and found out the SD card was full, and there were huge files in /var/log. I have ...
0
votes
1answer
1k views

Understanding why .service is failing to start

I'm new to the Raspberry Pi, but have gotten mosquitto to work & a similar mosquitto service running on one pi, but when I try running it on another Pi I encounter an error. For context, the ...
8
votes
3answers
3k views

How can I delay the startup of systemd services until the datetime is set (no RTC on the Raspberry Pi)

When I shutdown and power off the Raspberry Pi 3b and then power it up again the next day, I get wrong starting date/time printed when checking sudo systemctl status DustSensor. The printed date/time ...
0
votes
2answers
234 views

make systemd restart a service with different parameters

I do understand from the configs how to make a service restart in case of a fail but in this case a simple restart would always result in the same fail again and again how can set a service to ...
5
votes
1answer
3k 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
1answer
566 views

/etc/rc.local fail on boot with “Failed at step STDOUT spawning /etc/rc.local: No such device” in /var/log/syslog

I am trying to diagnose why /etc/rc.local is not successfully executing on boot of a raspberry pi. I have stripped the content of /etc/rc.local to a minimal version, and still cannot get it to touch ...