Skip to main content

All Questions

Tagged with
4 votes
2 answers
2k views

Raspberry PI / systemd: run script on shutdown/poweroff but not on restart

On Raspberry PI (running raspbian) I need to run script on shutdown/poweroff, but not on reboot. My first attempt was to define a service as following: [Unit] Description=Power off service [Service] ...
Denis Itskovich's user avatar
0 votes
2 answers
431 views

Raspbian - systemd user instance not working

I'm setting up a small server on a RaspberryPi 3 and added a new user ('server') for a rootless docker instance. But I'm facing the problem, that i do not get the user instance of systemd working. It ...
Max.-F.'s user avatar
  • 103
0 votes
0 answers
261 views

dpkg - Configuring systemd results in name regex error

One day, upon attempting to upgrade the packages on my seldom updated Raspberry Pi Zero W, systemd fails to be configured correctly due to what seems to be a bad name to addgroup. Setting up systemd (...
Mona the Monad's user avatar
1 vote
1 answer
829 views

Writing a systemd script that starts 2 applications in linux

OS: Raspbian I'm failing to execute 2 applications at once with rc.local I need to find a simple example for how to start an app with systemd The problem is Im only finding specific examples for ...
Mi Po's user avatar
  • 157
24 votes
1 answer
38k views

How to find out the systemd version on Raspbian

How can I find the systemd version that came as part of my linux (raspbian) installation? On running lsb_release -a, I get the linux (raspbian) version information as follows Distributor ID: ...
tanay's user avatar
  • 371
1 vote
1 answer
2k views

Debugging systemd service that deads on startup

I wrote this simple systemd service to start my application on boot: [Unit] Description=Autostart After=multi-user.target [Service] Environment=LD_LIBRARY_PATH=/home/pi/bin ExecStart=/home/pi/bin/...
Mark's user avatar
  • 438
0 votes
3 answers
7k views

Lighttpd fails to start after reboot

I installed lightpd on a Raspberry Pi (running Raspbian Stretch) in this way: apt-get install -y lighttpd php-common php-cgi php lighty-enable-mod fastcgi-php usermod -aG www-data pi after starting ...
Mark's user avatar
  • 438
1 vote
1 answer
3k views

How can I start usb_modeswitch before the network-configuration?

I'm using a Huawei E3531 to connect a Raspberry Zero running on vanilla Raspbian 8.0 (jessie) to the internet. As this is for a remote standalone application, it needs to be able to automatically get ...
Christian Benke's user avatar
0 votes
1 answer
802 views

Extract text from journalctl logging facility

I have a system which I can access directly with the keyboard but not by ssh (which is my problem, and which arises the question; a RasPi 3 with OSMC 2016.05-1, which is Debian-based, version: 8.5). I ...
Tobias's user avatar
  • 315