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.

119 questions
17
votes
3 answers

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 have to hook my RPi up to a keyboard and monitor,…
smeeb
  • 645
  • 3
  • 9
  • 22
10
votes
3 answers

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.
10
votes
2 answers

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 ExecStart=/usr/bin/python…
EarlyEarl
  • 103
  • 1
  • 5
10
votes
2 answers

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.d/skeleton, but it seems unpythonic to mash bash…
hobs
  • 203
  • 1
  • 2
  • 7
8
votes
2 answers

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 output video through a MediaPlayer element, which…
8
votes
2 answers

How to restart service

How do you restart a service on Raspbian? With most Linux distros I've used, it's simply: sudo service restart But when I try to run: sudo service ssh restart on Raspbian, it hangs indefinitely. Does Raspbian have some non-standard way of…
Cerin
  • 2,291
  • 8
  • 33
  • 49
7
votes
5 answers

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. I picked up the Microsoft LifeCam Cinema 720p HD…
Weston Ruter
  • 171
  • 1
  • 1
  • 5
6
votes
1 answer

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 tried to issue the following command that usually…
Robert Hume
  • 175
  • 1
  • 1
  • 8
6
votes
3 answers

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 system boot? (e.g. I get the feeling that I don't…
Parzival
  • 63
  • 1
  • 1
  • 3
6
votes
4 answers

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 the rpi time was wrong (after a short power…
danielv
  • 221
  • 1
  • 2
  • 6
5
votes
1 answer

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: somedomain.net However, running sudo systemctl restart…
DA--
  • 223
  • 2
  • 6
5
votes
1 answer

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 at startup?
franck
  • 153
  • 1
  • 1
  • 4
5
votes
1 answer

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=service shows me a list of all SystemD services…
Markus Weninger
  • 153
  • 1
  • 1
  • 8
5
votes
1 answer

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 microservice, which is a simple http server. Now…
apxp
  • 153
  • 1
  • 5
5
votes
1 answer

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. That worked and my program was able to get…
ThN
  • 1,081
  • 6
  • 22
  • 37
1
2 3 4 5 6 7 8