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
15
votes
2answers
74k 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 ...
8
votes
2answers
10k 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
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....
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
2answers
34k 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 ...
6
votes
4answers
39k 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 ...
4
votes
1answer
24k 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
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 ...
4
votes
1answer
352 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
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 ...
4
votes
1answer
12k 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
3k 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
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 ...
4
votes
1answer
12k 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 ...
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/...
4
votes
2answers
1k 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
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
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 ...
3
votes
3answers
18k 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
42 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
634 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 ...
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
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 ...
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 ...
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
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 ...
2
votes
1answer
1k 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
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 ...
2
votes
1answer
443 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
0answers
250 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
317 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
733 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
1answer
222 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 ...
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. ...
1
vote
1answer
101 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
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 ...
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
1answer
36 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
2answers
2k 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 ...
1
vote
1answer
9k views

Edit startup services for reboot?

I'm trying to start openvpn and transmission-daemon on startup. But using: sudo update-rc.d transmission-daemon defaults does not work. They're in the start up services list. But they don't start on ...
1
vote
1answer
112 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
0answers
187 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
vote
1answer
56 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 ...
1
vote
0answers
147 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 ...
1
vote
0answers
492 views

transmission-daemon.serviceJob for transmission-daemon.service failed

I followed an italian guide (http://maxtrixnix.blogspot.it/2013/08/raspberry-pi-come-installare-e.html) to set Transmission on Raspberry Pi and I get the error: Reloading transmission-daemon ...
0
votes
2answers
4k views

Start and run a Python script at boot and use Cron to make sure its still alive

Hopefully someone can tell me if I'm going at this the right way. I have a Python script which I want to launch at boot. That was easy enough by putting a file in /etc/init.d/myBootFile I want to ...
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/...