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
vote
0answers
18 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
14 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 ...
5
votes
1answer
206 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
16 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
26 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
1answer
39 views

Running subprocess in a service not working?

I have made a systemd service in Raspberry Pi with Jessy OS and it is given by. /etc/systemd/system/caportal.service [Unit] Description=captive portal automation [Service] Type=simple ExecStart=/...
0
votes
0answers
32 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
16 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
62 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
56 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 ...
2
votes
1answer
186 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
53 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
43 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
607 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
238 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
155 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
267 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
101 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
605 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
133 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
567 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
183 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
70 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
500 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
35 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
65 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
339 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
246 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
201 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
280 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
68 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
408 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
293 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
260 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
464 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
492 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
49 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
215 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
349 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
121 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 ...
9
votes
2answers
6k 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
490 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
1k 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
34 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
6k 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
987 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
116 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 ...