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
0
votes
1answer
10 views

The service error for srartup 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....
0
votes
1answer
42 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
54 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
97 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 ...
-3
votes
1answer
62 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
1answer
215 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/...
14
votes
2answers
73k 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 ...
0
votes
1answer
277 views

Raspberry Transmission-daemon doesn't restart automatically

I followed this guide: https://pimylifeup.com/raspberry-pi-torrentbox/ transmission works without problems but everytime I reboot the RaspberryPi I need to stop the service and then start again ...
0
votes
1answer
361 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 ...
1
vote
1answer
81 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
1answer
427 views

How to prevent application from crashes in Rpi?

I replace ~/.config/lxsession/LXDE-pi/autostart file to run my script that runs my application. But when my application crashes never run again. I tried before run my app in a service, but as my app ...
0
votes
0answers
22 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 ...
3
votes
1answer
550 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 ...
0
votes
1answer
321 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
0answers
54 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 ...
2
votes
1answer
385 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....
2
votes
2answers
3k 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
2answers
72 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 ...
1
vote
0answers
183 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 ...
-1
votes
1answer
40 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
3answers
12k views

Raspbian wpa_supplicant fails, which service to (re)start?

I'm using Raspberry Pi 2 installed with Raspbian (Debian Wheezy) ~ Release date: 2015-02-16. Every now and then wpa_supplicant dies on me and usually when I'm remote and I cannot do anything other ...
2
votes
1answer
34 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
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
1answer
30 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 ...
0
votes
1answer
585 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
268 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 ...
8
votes
2answers
9k 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
2answers
61 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 ...
4
votes
1answer
330 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: ...
1
vote
1answer
699 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
1k 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 ...
0
votes
1answer
492 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
2answers
748 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 ...
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 ...
2
votes
1answer
6k views

How to disable OpenVPN from running at startup on Raspbian?

I'm trying to disable OpenVPN from running at startup. I tried changed the setting for AUTOSTART in /etc/default/openvpn from all to none, but that didn't work. How do I disable OpenVPN from running ...
1
vote
2answers
1k views

Using darkice as a service at startup

I am trying to setup a Raspberry Pi to stream to Broadcastify using Darkice. I have followed the setup process outlined on this website: The issue I'm currently facing is that I cannot get the ...
2
votes
2answers
1k 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 ...
0
votes
3answers
1k 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. ...
7
votes
2answers
2k views

QtMultimedia on RaspBerry Pi

I've been trying to get QtMultimedia working on Raspberry Pi for a few weeks now, cross-compiling using the BakeQtPi script, yet the QtMultimedia plugin never seems to find an appropriate service to ...
1
vote
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. ...
0
votes
0answers
262 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: ...
1
vote
0answers
138 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 ...
8
votes
2answers
17k views

What's the right way to run a python script as a daemon (service) in raspbian (or debian)?

I'd like to use my Pi as a home thermostat, with the control loop running in a python script. I want to run it as a daemon on raspbian (debian) at startup. There's an example bash script in /etc/init....
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
81 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
258 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'...
4
votes
1answer
9k views

Apache2 subtext can't acces 000-default

I have been using Apache2 and webmin with my Raspberry Pi. After a restart and reinstallations Apache won't start. > sudo /etc/init.d/apache2 restart apache2: Syntax error on line 268 of /etc/...
0
votes
1answer
1k views

Apache2 Fails To Start Second Time After Install

I have a Pi 3 and just installed Apache and PHP via this link sudo apt-get install apache2 -y sudo apt-get install php5 libapache2-mod-php5 -y The Apache server turned on with no problems and I was ...
4
votes
3answers
15k views

Disabling start of services at boot

Okay, I think these questions might have been asked a lot, but I haven't really found a detailed answer yet (If there is one, please enlighten me ;)). Which services absolutely NEED to be started at ...