Stack Exchange Network

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

1
vote
1answer
50 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
23 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
85 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
57 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 ...
2
votes
1answer
245 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
37 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
32 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
115 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
33 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
29 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
230 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
200 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
358 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@...
0
votes
3answers
178 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
57 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
163 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
260 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
67 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
601 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 ...
3
votes
1answer
822 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
2answers
549 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
773 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
53 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
391 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
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
814 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
224 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
2answers
7k 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
125 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 ...
2
votes
2answers
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 ...
1
vote
2answers
5k 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. ...
1
vote
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
79 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
226 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'...
12
votes
2answers
67k 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
3k 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
7k 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
296 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
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 ...
0
votes
2answers
72 views

Changing run level causes freeze

I accidentally discovered that the Raspberry Pi 3 can run on 2.1A, so I constantly get the Lightning Bolt in the corner, indicating that I'm going to go over the limit it will let me. So, to consume ...
0
votes
0answers
750 views

Python script as systemd service not running [duplicate]

I know there have been a lot of similar questions, but for the life of me I can't figure out what's wrong! I have a script that forwards a port via ssh tunnel, and it works pretty fine, and I want to ...
1
vote
1answer
97 views

Simple “service runner” for a Raspberry Pi

I created several simple "microservices" for my Raspberry Pi (running Raspbian) for a variety of different purposes, for example: HTTP server that reads temperature from a sensor and returns it when ...
0
votes
1answer
388 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 ...
2
votes
0answers
247 views

How to write service on Jessie [closed]

I would like to write a service with the standard start, stop, restart, status interface and that runs on startup and restarts if killed. However, in researching solutions, I've discovered that there ...
0
votes
1answer
3k views

Disable the “vncserver-x11-serviced.service” Service at Startup

I see that the service "vncserver-x11-serviced.service" is running at startup- ● vncserver-x11-serviced.service - VNC Server in Service Mode daemon Loaded: loaded (/usr/lib/systemd/system/...
0
votes
1answer
143 views

getty service on RP3 just doesn't go away

I have put a neo GPS chip onto the /dev/ttyAMA0 port and set it up. All is good until I reboot the pi then I have comms issues with the AMA0 port. I eventually find a service I thought was dead and ...
1
vote
1answer
3k views

Access Point service is not starting on boot with systemd

I've followed this guide to enable both AP and client modes in my RPi 3 at the same time, and it's working fine (some tweaking involved). But now I'm trying to start the AP on boot, which is covered ...
4
votes
1answer
1k views

C# service to run on Windows 10 IoT

I've developed a Windows based service, is it possible to install the service to Windows 10 IoT? If YES, please state how. TQ P/S: I'm using PI-2 model B
1
vote
1answer
5k 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 ...