Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd]

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

1
vote
0answers
14 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
22 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 ...
1
vote
1answer
20 views

Simple openVPN with static keys

For private use I only want to use a simple peer-to-peer openVPN connection without maintaining a complete Public Key Infrastructure. I have heard it can be simplified by using static keys, but how ...
1
vote
1answer
120 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
47 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
35 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
249 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
142 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
92 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 ...
5
votes
2answers
174 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
72 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 ...
1
vote
1answer
359 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
76 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 ...
2
votes
1answer
342 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
102 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
60 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
320 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
29 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
51 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
232 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
135 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
84 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
150 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
0answers
223 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
55 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
26 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
261 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
199 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
1k 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
220 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
340 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 ...
1
vote
2answers
385 views

How to avoid fsck at boot timing out

If the raspberry pi doesn't shut down cleanly, it forces a fsck at boot. My filesystem is on a 64GB micro SD card and it takes quite a while to fsck. But before that can finish a couple of services ...
0
votes
1answer
44 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
163 views

Kernel does not use RTC

I have a PiFace RTC clock that I have setup on archlinux ARM on a rpi2. I have edited /boot/config.txt to add dtparam=i2c=on dtoverlay=i2c-rtc,mcp7941x=0x6f I have added i2c-dev and i2c:mcp7941x ...
1
vote
0answers
311 views

USB mount not able to auto mount external drive due to MTP error

I'm trying to auto mount external hard drives to raspberry pi B+ (raspbian stretch lite image) using usbmount (link). But auto mount fails with the below error saying the device is not MTP. Unlike ...
0
votes
1answer
111 views

Not able to send GPS data (lat, lon and alt) to journal (systemd)

Working on a data acquisition project where I am trying to send GPS data to cloud. Board: Customised board based on the schematics of Raspberry Pi Compute Module 3 Lite and I/O baord. Have added GSM ...
8
votes
2answers
5k 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 Setting up a Raspberry Pi as an access point in a standalone network (NAT). But that needs many different ...
0
votes
1answer
421 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
3answers
897 views

What's wrong with this service file?

I am trying to start a Python3 script on boot. The script listens to a 433 MHz receiver for remote button presses, then publishes an mqtt message for matching button codes. The python code works ...
0
votes
0answers
31 views

Is there a way to automatically activate a script when g_mass_storage reads or writes

I'm using the g_mass_storage on the raspberry pi. Is there any way to trigger a script when the host writes to the pi? Everywhere I've looked has talked about using triggers based upon usb mounting
3
votes
1answer
4k views

How to set custom NTP servers in recent raspbian (Stretch) systems?

How do I set the NTP server setting to a custom value in recent versions of Raspbian? I've noticed in a Stretch image that /etc/ntpd.conf does not exist in the default full image, nor is ntpd process ...
1
vote
1answer
820 views

Python Script with Systemctl not working only on Stretch

I've been using systemctl to manage multiple python scripts on raspberry pi 3b running jessie for a while. I recently got a rpi 3b+ and installed the lates Stretch on it. Set up the exact same way as ...
0
votes
2answers
102 views

How to increase NFS clients beyond 16

I increased my cluster from 16 to 20 machines. One issue which has come up is that I cannot connect more that 16 machines as NFS clients to the raspberry pi nfs server. The nfs server machine runs ...
1
vote
2answers
3k views

Run python script at startup with Systemd service

I am having troubles running a python server script at startup on my RPi 3 B+. I created a python file and placed it in /home/pi/Desktop/scripts/bulb.py, it contains the python interpreter should be ...
0
votes
1answer
647 views

Running my python 3 code on startup with systemd - permission denied

I have a python script which uses motion sensor and camera. It captures an image and stores to the same folder where the script resides. No errors when I run it in bash. But I created this service for ...
1
vote
2answers
368 views

Raspberry pi zero wifi serial1 not created on first boot with yocto

Our company is attempting to use a raspberry pi 0 wifi for an IOT product that we are booting with a custom yocto image. After making some changes (added mender) the serial 1 device stopped working on ...
0
votes
1answer
324 views

How to run a C program at boot time [duplicate]

I have a project and it is running a c program on the PI. The program is meant to start running at startup. So far I have tried to do this with rclocal, but this is depricated. Afterwards I tried ...
1
vote
2answers
254 views

What creates /dev/spidev*?

I’ve got a little program that uses an spi hat that I set to start running from rc.local. It was all running fine under Jessie, but I’ve upgraded to Stretch and now it appears rc.local is being called ...
0
votes
1answer
138 views

Is there a way to drive the display via HDMI from a systemd service

When my Raspberry PI starts it will start a process using systemd. At this point the display of the PI will be the standard PIXEL desktop. This process does not run as root. What I am looking for is ...
0
votes
1answer
427 views

openvpn: make it restart if process fails

I'm testing openvpn to restart if it fails for whatever reason. I edited the file /lib/systemd/system/openvpn.service (with vi straight, just in case) and set the Type to simple, added Restart=always ...