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
16
votes
3answers
79k 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 ...
9
votes
2answers
19k 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....
8
votes
3answers
16k 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.
8
votes
2answers
42k views

How to restart service

How do you restart a service on Raspbian? With most Linux distros I've used, it's simply: sudo service <name> restart But when I try to run: sudo service ssh restart on Raspbian, it hangs ...
7
votes
2answers
5k 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 ...
7
votes
5answers
22k views

Webcam disconnects after a few hours of running motion

I've been working on getting a Raspberry Pi webcam set up, thanks to a how-to post on PingBin. However, I cannot get past a problem where the camera becomes lost after a few hours of taking snapshots. ...
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 ...
6
votes
4answers
41k views

NTPd is not updating time

I am running raspbian wheezy, upgraded to all the latest packages. The only custom package installed on it is Oracle's Java 8, everything else and its configuration is stock. Yesterday I noticed that ...
5
votes
1answer
18k views

How to manually install dhcpcd?

I upgraded wheezy to jessie and there is no dhcpcd installed. I installed it with apt-get install dhcpcd but I cannot start the service. When I do sudo service dhcpcd start I get Failed to start ...
5
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/...
5
votes
2answers
2k views

Bluetooth Dongle not automatically Pairing with BlueSmirf

I've setup Bluetooth on my RaspPi and attempted to connect to my BlueSmirf from Sparkfun. I can send text to my BlueSmirf from the RaspberryPi using: echo "Testing" > /dev/rfcomm0 Now the red ...
4
votes
1answer
26k views

Why my program won't communicate through ttyAMA0 on Raspbian (Jessie)?

I am running two different Raspberry PI and they are running Raspbian Wheezy and Jessie. On Wheezy, I simply commented out a line T0:23: respawn:/sbin/getty -L ttyAMA0 115200 Vt00 in /etc/inittab file....
4
votes
3answers
5k 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 ...
4
votes
1answer
653 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: ...
4
votes
1answer
19k 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=...
4
votes
1answer
4k 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 ...
4
votes
1answer
3k 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 ...
4
votes
1answer
2k 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
4
votes
3answers
18k 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 ...
3
votes
3answers
19k views

How do I run a background service written in MONO?

I need the service to automatically start upon boot, it does not require console access for a start. Ofcause it would be nice to be able to produce some output for logging/debugging/stats. But for now,...
3
votes
2answers
289 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....
3
votes
1answer
1k 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 ...
3
votes
2answers
2k views

How to run the NTP daemon automatically?

On my RaspBMC, the time drifts pretty much (more than a day in one month). So I started to use NTP, but have problems running it. I called sudo update-rc.d ntp enable, I also added DAEMONS=(!hwclock ...
3
votes
1answer
5k views

Init after everything is up?

I have a service I start/stop on boot/shutdown which I'm using to help me keep track of what I'm doing while experimenting with distributions on my RPi and swapping SD cards all the time. The problem ...
3
votes
1answer
1k 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
1answer
44 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 ...
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 [...
2
votes
2answers
89 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 ...
2
votes
1answer
8k 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 ...
2
votes
2answers
3k 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 ...
2
votes
2answers
8k 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
2k views

Script to restart service

I'm having an issue that hopefully someone will be able to help me with. I have a Raspberry Pi 2 running OSMC, and I run my traffic through a VPN using the openvpn service. Every so often my pi loses ...
2
votes
4answers
15k 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
0answers
256 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 ...
1
vote
3answers
407 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 ...
1
vote
3answers
656 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 ...
1
vote
1answer
982 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 ...
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 ...
1
vote
1answer
19 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
1answer
568 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 ...
1
vote
1answer
537 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
33 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
117 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 ...
1
vote
1answer
4k 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 ...
1
vote
2answers
2k views

EDITING RC.LOCAL for NZBGet and Sickrage at startup on OSMC

#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. ...
1
vote
2answers
33 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/...
1
vote
1answer
48 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 ...
1
vote
2answers
411 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 ...
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 ...
1
vote
1answer
514 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 ...