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.

Filter by
Sorted by
Tagged with
1
vote
3answers
93 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
1answer
23 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
0answers
28 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
1answer
29 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
2answers
44 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
2answers
119 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....
1
vote
1answer
212 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
0answers
80 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
1answer
26 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
1answer
124 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
0answers
26 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
1answer
243 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
0answers
73 views

How to disable all service messages on boot

i'm quite new to raspberry development and i've already tried as much as i found to get a really clean boot -> cmdline.txt adapted (changed console=tty1 to console=tty3; added quiet etc...) but no ...
0
votes
1answer
984 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
2answers
128 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 ...
3
votes
1answer
868 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
1answer
43 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
1answer
37 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
1answer
323 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
1answer
52 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
1answer
31 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 ...
2
votes
1answer
638 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
1answer
247 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
1answer
937 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@...
1
vote
3answers
455 views

Boot: multi-user.target starting late

My Raspberry Pi Zero running Raspbian Stretch Lite (2018-10-09) seems to be slow at boot. First off, the state of the OS: It is basically a freshly installed image on a properly working Class 10 SD ...
0
votes
2answers
89 views

How to make a service to run a python script which includes browser automation

I have python script which is using selenium web driver to do some web automation task. This python code is running perfectly fine when I am running it from the terminal. It launches firefox and does ...
1
vote
0answers
214 views

rfcomm service not working for Bluetooth over serial

I'm trying to connect with a terminal to my Raspberry Pi over Bluetooth, however with my current configuration (which is what I have found in numerous places online) when any device pairs and connects ...
4
votes
1answer
457 views

Service failing to wait for internet connection

I'm strying to make my systemd service start after internet connection has been established. I read several questions on this forum, but no success so far. The error is analog to Invalid host: ...
0
votes
1answer
190 views

Service won't run python srcipt with privileges RASPBIAN JEESIE

I have script in python that need to be run with "sudo" keyword. Everything because I'm accessing "/dev/mem". Now I need to start this python script on RPi startup. So I create simple service that ...
1
vote
1answer
871 views

“service restart” working although init.d script doesn't support “restart”

I wrote the following script /etc/init.d/tomcat in order to manage my manually-installed Apache Tomcat server as a service: #!/bin/sh # # /etc/init.d/tomcat -- startup script for the Tomcat servlet ...
4
votes
1answer
2k views

How to stop XRDP service from autostarting

I'm using Raspbian Stretch and I installed XRDP from APT: sudo apt-get install xrdp After that, the XRDP service is started automatically on boot. Now, I would like to disable the autostart, so I ...
1
vote
2answers
1k views

Can I fix memory leaks of a chromium tab by killing and restarting the tab or chromium?

I'm running a raspberry with a small monitor in kiosk mode, which means: it's running a full-screen chromium tab all around the clock. The problem is that I have noticed that there are many websites ...
2
votes
2answers
2k views

Python script does not run when called by service

I have written a python program that continuously parses my current IP and emails it to me if it changes that I want to begin running as soon as the computer boots up: /home/pi/sendIP.py#note that ...
1
vote
1answer
65 views

Php7.0 is installed, but service doesn't appear in services list

I have install php7.0 and some it extention, but when I type "sudo service php7.0 restart", what I found is "Failed to restart php7.0.service: Unit php7.0.service failed to load: No such file or ...
0
votes
1answer
662 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 ...
1
vote
3answers
2k 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 ...
0
votes
1answer
1k views

Disable dnsmasq on boot Raspbian Stretch

I need to disable dnsmasq from starting during boot. So far I've tried sudo systemctl disable dnsmasq.service sudo update-rc.d -f dnsmasq remove ENABLED=0 in /etc/default/dnsmasq None of these work. ...
0
votes
0answers
337 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: ...
8
votes
2answers
12k views

How do I restart sshd on raspbian?

How do I restart sshd on raspbian stretch? This does not work: pi@raspberrypi:~/.ssh $ sudo systemctl restart sshd Failed to restart sshd.service: Unit sshd.service not found.
0
votes
0answers
1k views

DHCP Server not starting up on boot

I have installed isc-dhcp-server on my Raspbian OS RPi. The RPi boots up after my switch and other devices have successfully booted. However the DHCP server does not start automatically while other ...
1
vote
0answers
171 views

Radicale running in local network, though not reachable from laptop

Obviously, I am a complete beginner in setting up a server. That is why I started to play around with a raspberry pi in the first place. I already managed to set up some smb shares. I am trying for ...
4
votes
2answers
4k 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 ...
2
votes
2answers
6k views

MongoDB 3.2 or higher on Raspberry Pi 3

I'm trying to update my mongodb version on my raspberry pi. I've runned following commands $ sudo apt-get install mongodb So far so good. I can access the mongo shell by typing mongo in the console. ...
2
votes
1answer
1k views

Configured Python Script as Service doesn't run on Startup

I created a service to run my python program at Raspberry Startup. But the program doesn't execute. My Service File: [Unit] Description =Serviço para iniciar o Gateway After= multi-user.target [...
-1
votes
1answer
83 views

RPi corrupting one SD card a week

I have a model 3 running some python code as a service. It's never on for more than 30 minutes at a time and is maybe used once a day. However, when I do use it, it is often powered on and off ...
0
votes
1answer
305 views

Why can't I install/start minidlna?

Since this week start, I can no more start minidlna. The main change being I had an electric shutdown of my Raspberry. When I try to start the service using service minidlna start, the service doesn'...
15
votes
2answers
76k views

Enabling SSH by default on Raspbian Stretch

I have a Raspberry Pi 1 Model A running an image of Raspbian Stretch Lite. I've noticed that when I power on my pi and allow it to start up, I can't seem to SSH into it from my Mac laptop. First, I ...
4
votes
3answers
4k views

Check service status in real-time

I'd like to check the status of a service in real-time. I already know the command to check for example my Homebridge server: /etc/init.d/homebridge status When I'm debugging, I'd like to see the ...
0
votes
1answer
10k views

Setting up Firewall on RaspberryPi [closed]

As default, Raspbian loads firewalld.service on boot. I wish to define firewall's inbound and outbound ports in order to allow services such as pigpiod, VNC, SSH and so , to be able to control each ...
0
votes
1answer
436 views

How to disable other applications also desktop applications in Raspberry Pi?

I want to disable unused programs and services also desktop application in Raspberry Pi except my own program to gain performance from RAM. I searched on the web and found some information. To ...