0

Raspbian Buster Lite: Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux

I am getting System has not been booted with systemd as init system (PID 1). Can't operate. error when I am trying to sudo systemctl start DisplayM

I am trying to make a systemd service that starts on boot.

pi@raspberrypi:~ $ cd /lib/systemd/system
pi@raspberrypi:/lib/systemd/system $ sudo mkdir PPD_Display_m.service
pi@raspberrypi:/lib/systemd/system/PPD_Display_m.service $ sudo nano DisplayM.service
pi@raspberrypi:/lib/systemd/system/PPD_Display_m.service $ sudo chmod u+x /var/www/html/4panel/Big_ppd_display_try1
pi@raspberrypi:/lib/systemd/system/PPD_Display_m.service $ sudo systemctl start DisplayM
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Then I have tried this:

pi@raspberrypi:/lib/systemd/system/PPD_Display_m.service $ sudo service DisplayM start
DisplayM: unrecognized service

This is what it's written in the service file:

[Unit]
Description=Big_ppd_display_try1 service

[Service]
ExecStart=/var/www/html/4panel/Big_ppd_display_try1

[Install]
WantedBy=multi-user.target

Big_ppd_display_try1 is a exec file made by a make file from Big_ppd_display_try1.cc

-rwxr-xr-x 1 root root 1248576 Aug 24 17:09 /var/www/html/4panel/Big_ppd_display_try1

  • Which version of raspbian are you using? Try to add init=/bin/systemd to your /boot/cmdline.txt, or better use raspbian buster. – jake Sep 11 at 11:31
  • I am using Raspbian Buster Lite: Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux – bleah1 Sep 11 at 11:31
  • So then I don't understand why the init is not systemd... – jake Sep 11 at 11:38
  • What's the output of ls -la /sbin/init? – jake Sep 11 at 11:41
  • I've added init=/bin/systemd to /boot/cmdline.txt, rebooted and I still get System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down – bleah1 Sep 11 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.