Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
25 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
1answer
51 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
17 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
18 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
40 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
36 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
73 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
34 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
49 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
0answers
48 views

Systemd giving interface static ip address fails

I'm trying to get used to systemd, following this. But without success. This file /etc/systemd/network/12-wlan1.network does not take effect: [Match] Name=wlan1 [Network] Address=192.168.4.1/24 ...
0
votes
1answer
31 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
20 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
67 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
70 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/...
2
votes
1answer
284 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
113 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
0answers
31 views

using the terminal as kiosk

i was wondering, is it possible to use the Raspbian Pixel terminal as a kiosk at login? I found about how to do it with chromium, but i would like to start a process on the terminal and put it full ...
0
votes
1answer
66 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
164 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
34 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
53 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
185 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
92 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 ...
5
votes
1answer
2k 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
242 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
333 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
25 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
2k 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
434 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
73 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
2k 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
401 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
227 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
137 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
162 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
95 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
227 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 ...
0
votes
1answer
269 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
3answers
680 views

systemd: hand-made service fails to start on boot

I created an application that I want to start on boot for the raspberry. I had already set up a service for wvdial by hand to make it start on boot and it works like a charm so I then started working ...
1
vote
1answer
312 views

How do I trigger periodic remote shooting on a DSLR using a Raspberry Pi e.g. for time lapse (shutter timer), group pictures or self portraits

I'd like to use my DSLR camera for the following use cases: record a timelapse, e.g. shoot a picture every second (or every minute, or every hour). take a group photo (including me) or self portrait ...
0
votes
0answers
178 views

Raspbian start certain services after boot to optimize boot time [duplicate]

I set up a Raspbian stretch lite and am about to make it start xserver after boot. Now I am confused about the long boot time! I ran system-analyze blame to check which services take the most time: ...
6
votes
1answer
5k views

Howto migrate from networking to systemd-networkd with dynamic failover

Systemd's systemd-networking can replace tbe used to replace the existing networking system on Raspbian. How does it work with Raspbian on a Raspberry Pi 3 and it's two interfaces for ethernet and ...
0
votes
3answers
3k 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,...
4
votes
1answer
818 views

Clarification about the boot process (systemd / init)

I started disabling some services from systemd to speed up the boot time, but I noticed that many services are also in the old init (which runs). There are quite a few things that start in rc.d (or at ...
2
votes
1answer
2k views

How to exit a python daemon cleanly?

I want a simple python script to run in background, therefore I configured daemon test.service in /etc/systemd/system/. [Unit] Description=Test service After=multi-user.target [Service] Type=simple ...
0
votes
0answers
680 views

How to get raspivid to stream with VLC on boot? Systemd doesn't play nice, and VLC gives errors

How do I get VLC to play nice to stream on boot? I've tried running it on rc.local script, I've tried using a service and systemd including After=network.target and so forth so it only runs after we ...
0
votes
0answers
340 views

Raspbian Lite: xinit at boot as soon as possible

Yes, another question on 'How to start the x server at boot' . I am new to linux admin things so I don't know how to do it correctly. I am using Raspbian Lite which does not include any graphical ...
4
votes
2answers
4k views

Speed up Raspbian boot

I'm customizing a Raspbian Stretch Lite image to fit my needs. I'm quite fine with the results but now I would like to speed up the booting process because it takes so long to complete. Here some ...
0
votes
2answers
130 views

Renaming rcx.d symlinks to simulate update-rc in order to activate sshd on boot in raspberry pi

ps: I know that I just have to put a file names ssh in /boot, but that's not what I want I have a raspberry pi running Raspbian Desktop and unfortunately it still didn't migrate everything to systemd....
0
votes
1answer
111 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 ...