Questions tagged [services]
A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.
119
questions
0
votes
4
answers
50
views
Run systemd timer periodically but not on boot
I would like to run a script every 30 minutes on my RbPi, but not immediately after boot.
Example: If I boot my RbPi at 15:15, the script should run at 15:30 not before.
Setup: My RbPi has no ...
0
votes
0
answers
41
views
network.target stays dead, causing troubles for dnsmasq.service
I'm having issues with dnsmasq.service, caused by network.target
I've seen people having problems with network.target but for them it was caused by network-online.target. But it works fine for me
● ...
0
votes
1
answer
21
views
Raspbian Show Service status via LED not finding substring in output
So im trying to make a Python script that constantly tests if a services is running and output the status via a red LED. I have a script:
import RPi.GPIO as GPIO
import time
import os
...
0
votes
0
answers
110
views
Open command line in running service
So I made a minecraft server on my RaspberyPi 4 on Rasberry OS. I created a service so I can run it in the background. But now I wanna know if I can "open" the command line to run some admin ...
2
votes
3
answers
184
views
Cannot SSH into periphery RPis from master RPi using python script automated from crontab: Host key verification failed
Project Overview
I have a series of RPi 3B+ which collect T/RH data using connected sensors. These "periphery" units collect data every 5 minutes, append the data to a CSV file that holds a ...
0
votes
0
answers
227
views
Restore internet connectivity without Raspberry Pi reboot
Occasionally, my Raspberry Pi 4 disconnects from internet. This unwanted disconnection seems to be due to some errors from wi-fi module drivers. Here is an excerpt of the kernel log:
ieee80211 phy0: ...
-1
votes
1
answer
594
views
shutdown/reboot raspberry using GPIO - doesn't work for me
I need my raspberry Pi to turn OFF automatically when I press a button, so I've forked the Adafruit-GPIO-halt project and created a slight modified version of it here.
I've modified the C code and the ...
1
vote
1
answer
406
views
How to check/see systemctl's running script logs?
Context, I have a python script added to services on systemctl to start on boot.
Thing is, I want to be able to check the actual script's logs, in case there are issues. I tried using the journalctl ...
1
vote
1
answer
2k
views
Disable systemd-random-seed
I am looking to speed up the boot time on my Raspberry pi and systemd-random-seed is taking 20s (old Pi 1). From what I've read up this is waiting to collect entropy to generate a system random seed. ...
0
votes
1
answer
439
views
Running python GUI application with PyQt and python-vlc as a service
I'm trying to run a python GUI application as a service. The application is using PyQt5 and python-vlc packages. I have the following service file:
[Unit]
Description="Python VLC Service Test&...
0
votes
2
answers
188
views
SSL certificate for multiple dock containers running on RPI 4
Hi guys I have a question regarding docker containers and ssl certificates.
I want to install more than one docker containers like pi hole , Bitwarden and motioneye .
To access them I have to type ...
0
votes
1
answer
198
views
Service does not start at boot time
I am running a Flask application on my RPi successfully by issuing the following command
export FLASK_APP=/opt/fzwk-access-source/app.py && flask run --host 0.0.0.0
Now, my next goal is ...
0
votes
1
answer
117
views
Downloads stop when I close Putty. What is happening?
I have Deluge P2P installed on my Raspery Pi. It seems the downloads stop when I close Putty, even though the Raspery Pi is still powered on. Should this happen? How can I prevent it? I don't have ...
0
votes
0
answers
27
views
When should something be registered as a service?
I've red a few tutorials on how to set P2P clients up, specifically Deluge. For some reason all of them say to register it as a service. Why is this? I've just been starting it manually in the ...
0
votes
0
answers
191
views
Howto self-restart a service when network link goes down?
I have a VPN using L2P/IPsec. A service I created establishes the ppp0 interface and tunnel. The service basically executes a shell script that does all the work.
I can start/stop the service and all ...
0
votes
0
answers
138
views
Check if Raspivid service is running?
I am creating a program the requires the following:
Check if raspivid is currently running.
Check if its running out of a services file.
if it is running out of a specific file, determine which ...
0
votes
1
answer
6k
views
How do I manually start/stop the motion service from a program?
I have successfully set up motion to run at boot up on a Raspberry Pi running buster Debian Linux.
Now I want to start and stop the service from within my Python program. I started by changing the /...
0
votes
1
answer
6k
views
Why dhcpcd.service failed for auto matically alllow ip address
I using Raspbery pi zero w.
my dhcpcd.service always fail, I do not know the reason:
my linux is:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID=&...
0
votes
1
answer
246
views
Do I need to stop services when performing a full system backup of Raspberry OS on a RPi4 using rsync?
Well I guess the title is pretty self-explanatory but to put a little more words on, I want to use rsync to perform a weekly, incremental backup of my RPi4 which is hosting Pi-Hole, Unbound DNS and ...
2
votes
2
answers
605
views
Unable to auto livestream when booting - enable .service does not work (failed to enable unit: Invalid argument)
I want to set up a service that starts a livestream when booting the rasp. I have been following this tutorial: domoticproject.com/creating-raspberry-pi-service
This is what my .service in /lib/system/...
0
votes
0
answers
144
views
All in one Raspberry pi Server?
Does Grafana server + influxDB + ChirpStack Gateway OS full runs on same Raspberry pi that RAK2245 mounted gateway? As you know latest raspberry pi 4 have 8gb ram. I will only monitor about 20-30 ...
0
votes
2
answers
189
views
Trying to install OrientDB a run it as service
I'm trying to install OrientDB on my Raspberry 3, and configure it to run it as a service. I'm following the instruction found at here.
I downloaded the binaries, and unpacked them at /opt/orientdb/ ...
2
votes
1
answer
67
views
Does Raspbian start its automatic services/daemons when it's turned or when someone logs in?
I'm using Raspbian. I connect through Putty. My question is, before I connect with Putty, is the Pi actually doing anything or is it just sitting their idly? Before logged in, does it start the ...
1
vote
0
answers
1k
views
My raspbian buster is stuck at Splash Screen with polkit.service!
I was working fine with my Rpi4 this morning. Next time when I started it was okay. Then there was some resolution issue. so I went into raspi-config and disabled the OpenGL. After a restart my PC is ...
0
votes
1
answer
58
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 ...
0
votes
0
answers
95
views
Cannot setup Samba
I want to access files from my Raspberry on my Windows machine. I did it previously, but I resetted both my devices some time ago. I haven't made any advanced network configurations to them yet. I ...
1
vote
1
answer
76
views
Troubleshooting my project xorg error. Services not booting
My /etc/X11/xorg.conf is empty i did have a 99-calibration.conf I put in /etc/X11/xorg.conf.d/ but I had to make the xorg.conf.d/ dir so i migth have already messed up before.
Now starting the pi ...
2
votes
5
answers
7k
views
Which services on the Pi are mandatory and optional?
I am looking to make the Pi more responsive by disabling unneeded service. I am looking to disable services in /etc/init.d (and anywhere else if there are other places) and want to find a list ...
0
votes
1
answer
567
views
Switch back from WLAN AccessPoint to normal WLAN client
I configured my Raspi (3B+, Raspbian Stretch) as a WLAN Access Point, as described here:
https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md
Now I want to switch my Raspi ...
0
votes
0
answers
198
views
Python app scheduler issue on Raspberry pi, i got error like this "python[2132]: WARNING:apscheduler.scheduler:Execution of job"
I an using Raspberry PI zero W and connected 5 sensors to getting reading from sensors. i used services for start the sensors scripts and i installed python apscheduler for time sequence.
Sometime ...
0
votes
1
answer
644
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-...
2
votes
2
answers
703
views
Determining how specific services were started?
I have a Raspberry Pi which is running well, and am looking at creating a status app for it. I have some services that are run on startup, and I want my app to check that they are running, and if not ...
3
votes
2
answers
1k
views
Can't establish SSH connection in systemd.service
I created following service:
[Unit]
Description=Server Tunneling
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=ssh -R server-login:80:localhost:8003 serveo....
2
votes
1
answer
3k
views
isc-dhcp-server can't bind to dhcp address
I'm trying to set up an ethernet DHCP server on a Raspberry Pi to connect one device via eth0 and give it an ip address, but I cannot for the life of me get the service to start.
This won't be an ...
0
votes
0
answers
941
views
Can't restart failed services
I have two processes in my Pi that are stuck in the failed status.
The output of systemctl --failed is:
● lighttpd.service loaded failed failed Lighttpd Daemon
● wpa_supplicant.service ...
0
votes
1
answer
159
views
The service error for startup app in a terminal
My Python application needs to run on a Raspberry Pi 3 at startup and in a terminal.
What I did:
I created a service screenscript.service in /etc/systemd/system
a bash file in /home/pi/mydir/screen....
-3
votes
1
answer
682
views
software copy protection in raspberry pi [closed]
i need to ensure that even if my executable C/C++ codes are copied to another raspberry Pi (dumping the SDcard), they will not run there.
what are the possible ways to do this.
Update:
adding "PI ...
0
votes
0
answers
32
views
The application stalls when the service is loaded at startup
I have RPI3B + with Raspian Stretch on which I run the QT application.
When I create my service to launch the application after starting the rpi i have problems.. The application starts and then the ...
1
vote
2
answers
982
views
Running pygame and webcam works from command line not when using a service
I am writing a small program for a Museum display that captures a still from a webcam, displays it on screen, waits a few seconds and takes another, loop forever. This all works fine from the command ...
0
votes
1
answer
5k
views
Running a Python script as a service file on boot
I have a Python script (that works) set up and I want to run it automatically every time the Raspberry Pi is on.
I have read that I need to create a unit file and I have done so, but whenever I try ...
0
votes
2
answers
1k
views
Restart Pi after ping failure?
I have been creating a prototype using Pi Zeros, they work great at my house but are failing often at customer's site (other side of country).
I do not know if the Pi kernel is crashing or if it's ...
4
votes
1
answer
3k
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 ...
-1
votes
1
answer
71
views
Python program runs with 'python3 progfile.py' but fail to start as service
I installed a python program from a github repo with an automatic script. It is configured to launch itself as a service on startup, and everything seems working fine. I edited the 'py' file to change ...
2
votes
1
answer
166
views
Monitoring NICs on the Pi
Is it possible to have a script running as a service constantly monitor certain NICs and alert me throught LEDs if one of them has been disconnected or is not properly detected by the OS?
Would ...
1
vote
1
answer
890
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 ...
0
votes
1
answer
74
views
Functioning Script for Access Point Which Fails When Run as a Service
In order to reach my Raspberry Pi 3 B +, I need it to broadcast an access point upon booting.
I am aware that there are common issues with crontab @reboot and systemctl running when networking is ...
1
vote
1
answer
55
views
Getting Service status and automatic mounting of external drives
I have following bash script, I wanted to add few more things to it: (This script runs from root cronjob every 6 hours). Device is Raspberry Pi running raspberian.
#!/bin/bash
# Script: temp_email.sh
...
3
votes
1
answer
3k
views
Start Service with Sudo
I am trying to run an Express API server with sudo permissions and have it automatically start on boot.
The API needs access to bcm2835 library, and I get the following when trying to run node server....
0
votes
1
answer
505
views
running python script as service and calling functions from another program
I have a python script to control some LEDS. In a compiled c++ program I have been calling python scripts like so in various places:
system("python /home/pi/leds_flash.py")
system("python /home/pi/...
0
votes
1
answer
4k
views
Not able to start the Plex Media Server on my Raspberry 3 anymore
I currently have the problem, that my Plex Media Server, which is set up on a Raspberry Pi 3 Model B, cannot be started. When I hit sudo service plexmediaservice status, I get the following error:
pi@...