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 [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
26 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 ...
1
vote
1answer
48 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
61 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
73 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
48 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
48 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 ...
0
votes
0answers
80 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
166 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
33 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
349 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 ...
2
votes
1answer
265 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
263 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
267 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
35 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
196 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
589 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
396 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
219 views

Paho mqtt client on boot up (temporary name resolution failure)

I am trying to run a Paho mqtt client on boot up just like the person with this question. My specs are the same. Running raspbian Stretch. I'm using crontab with the following entry: @reboot python /...
0
votes
0answers
170 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: ...
4
votes
2answers
4k 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
724 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
88 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 ...
0
votes
0answers
221 views

Amazon Web Services - DynamoDB table

I've been recently working with AWS My task is To send temperature data from my raspberry pi to AWS IoT Transfer the MQTT data from AWS IoT to AWS DynamoDB table Plot graph from that data using ...
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
31 views

Copy files using boot service to different folders

I have a file management problem and would like to find a smarter and more dynamic solution, but that is beyond my current skills. I have a local Pi3 server running samba, with two shared folders. ...
1
vote
2answers
4k 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
30 views

Connecting Pi with instance in Amazon web service

I am trying to connect with the AWS instance using my Pi. I am using mobile data through wifi tethering for Pi. When I am trying to connect with the instance with as mentioned below I am getting No ...
1
vote
1answer
904 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
75 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
178 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'...
8
votes
2answers
52k 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
2k 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
4k 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
227 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
948 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
65 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
597 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
86 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
279 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
242 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
2k 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
102 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 ...
0
votes
1answer
205 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 ...
4
votes
1answer
7k views

Raspbian Jessie: What do “service --status-all” and “systemctl list-units --type=service” show?

So, I read a lot about init systems in the last two hours, since this topic was completely new to me. I now know that Raspbian Jessie uses SystemD. I also found out that systemctl list-units --type=...
0
votes
1answer
130 views

After dd copy image, logging in on ArchArm shows “Module unknown”

I copied a working image from a sd card (8 Gb) to my computer with the command: dd if=/dev/sdx of=archarm2.iso;sync After that i copied the archarm2.iso image to an other sd card(32G) with the reverse ...
0
votes
1answer
426 views

Start / Stop mumble server with gpio button press

I'm an absolute raspberry pi / phyton newbie so be patient with me. Now for the problem (problem? more like a question). (I want to apologize before hand if such a request was already answered before,...
3
votes
1answer
2k views

How to run a golang program in the background?

I made a program in Go. That program compiles and runs very well on the raspi, when I start it via ssh. To start the program correct, I need to set some flags. myservice -port :1234 The program is a ...