We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
1answer
76 views

start chromium on raspberry pi in kiosk mode using systemd service instead of through LXDE-pi/autostart

As many people, i'm looking to use my pi as a kiosk. I have managed to get everything running when starting the kiosk. my kiosk.sh script, which works fine #!/bin/bash URL="http://127.0.0.1" xset s ...
1
vote
1answer
33 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
26 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
26 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
63 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
154 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
32 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
0answers
100 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
41 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
122 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/...
0
votes
1answer
54 views

Restart wifi using bash script and systemd service?

My rpi is connected to a captive portal hotspot. I have prepared a python login script to login to the captive portal and it was working fine. But sometimes the wifi is getting disconnected and at ...
2
votes
1answer
798 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
37 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
27 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
35 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 ...
7
votes
1answer
569 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
20 views

stop code via systemd vs termination

i have an 16*2 char LCD connected to PI ,a C++ code is written to display "Date/Time" on LCD. when i execute the compiled code on terminal using sudo ./LCD it stats showing Time and when i terminate ...
1
vote
1answer
89 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
102 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
73 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
17 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
149 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
313 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
80 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
68 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, ...
0
votes
1answer
1k 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 ...
0
votes
2answers
711 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
433 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 ...
6
votes
3answers
705 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
144 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 ...
3
votes
1answer
1k 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
307 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 ...
3
votes
1answer
828 views

Docker 'core-dump' error when starting service

I'm using a Raspberry Pi 1 Model B. I've just installed using the easy script: curl -sSL https://get.docker.com | sh install results: # Executing docker install script, commit: 4957679 + sudo -E ...
2
votes
1answer
374 views

Run a system startup script after network and DNS resolution are available

I'm trying to set up a system init script on my Raspbian, just to send an HTTP POST request to a public web server (99,9% uptime), reporting that the Raspbian has just been started up (or rebooted). ...
0
votes
1answer
122 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-...
1
vote
2answers
800 views

On boot open tmux session and start continuous python script

I've spent days going in circles with this one, my google skills have failed me... I am using a systemd service to run a shell script on boot which should open a new tmux session and start a python ...
0
votes
1answer
57 views

How can I recover from a system boot autoload service that keeps rebooting?

I don't want to start over from scratch. There are several ways I could change the monitor.service so it would fail or run without booting: pi@raspberrypi:~ $ sudo systemctl --full edit monitor....
0
votes
0answers
83 views

Disconnect RTC from systemd-timesyncd.service

I have an RPI3 with an added external RTC (Adafruit PiRTC - PCF8523). My system does not have consistent access to the internet, occasionally loses power, and is remote (in the field), so physical ...
1
vote
1answer
597 views

How to fix the systemd file permissions?

I have a raspberry pi python3 program "monitor.py" that works from the terminal But it fails to run when I start it from boot. Check status: pi@raspberrypi:~ $ systemctl status monitor.service ● ...
1
vote
1answer
689 views

How to start a systemd service as a non-root user?

I've been using qbittorrent-nox on a headless Raspberry Pi 3 B+. The setup was a breeze. But then I wanted to autostart qbittorrent after boot, so I wrote a systemd service unit and enabled it. It ...
2
votes
2answers
88 views

Waiting for network connectivity instead of just sleep fixed time

I'm new to the whole Raspberry Pi and Bash scripting thing, so bear with me. I run raspberry autopilot on a remotely controlled vehicle thru a 3G/4G connection. Raspberry Pi is installed onboard the ...
1
vote
1answer
303 views

Running a Python Script with Tensorflow via systemd doesn't work, but running the same script via the terminal works

I have successfully coded a Python 3 Script that detects objects in a frame given my the camera. Based on those objects detected, I run commands and logic. I have tested this and I can run it via the ...
1
vote
1answer
466 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
84 views

How to change MAC address using systemd?

I wonder how it is possible to change the mac address of a wifi dongle using systemd. I tried this but without success: cat > /etc/systemd/network/00-wlx*********.link <<EOF [Match] Name=...
0
votes
2answers
30 views

Program not able to open file at start up but when running from command line, runs as expected

using a library from https://github.com/BLavery/LIBtft144 this line of code doesn't seem to run when I run the program from a systemd. I also tried calling it from a crontab call of my .py program. ...
1
vote
1answer
660 views

Why won't my systemd execute?

I get this error message when I try to run systemd: Failed to create /user.slice/user-1000.slice/session-c2.scope/init.scope control group: Permission denied Failed to allocate manager object: ...
1
vote
2answers
583 views

Can't enable service with systemd

I have created the service sendir.service and put it in /etc/systemd/system This is what the service looks like: [Unit] Description=sendir [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/...
3
votes
1answer
3k 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
0answers
340 views

Captive Portal using systemd raspbian stretch

I am trying to setup a captive portal on my raspbian stretch access point connecting to my node server. Currently using systemd to set up my network so I can ssh into my pi and use it as a access ...
0
votes
1answer
681 views

Executing multiple scripts on startup in a particular order

I am running Raspbian GNU Linux (9) Stretch, on my Raspberry Pi 3. Project Overview Python script which makes use of 2 inputs to the Pi. Calculations are performed based on these inputs, and values ...