Questions tagged [init]

The first process run, and thus the (grand)-parent of all others in a *nix system; also the only one which can never be stopped. Used to control boot/system services.

The current init daemon used on Raspbian and most other forms of GNU/Linux is . However, the first version of Raspbian (7, "wheezy", following Debian's numbering) used SysV init, which dates back to the 1980's and was long used on a range of Unix derived operating systems.

Init is used to start system services at boot and control them thereafter.

25 questions
12
votes
3 answers

How to build custom OS for Raspberry pi from scratch?

I am new to kernel and embedded Linux. I have recently bought a Raspberry Pi and booted it using the Raspbian. I was fascinated by the Pi, to learn more on Embedded I have decided to make an home automation system. I wanted to use my own kernel, and…
CenTauR
  • 123
  • 1
  • 1
  • 4
11
votes
2 answers

Custom Raspbian image fails to boot with "no init found"

I'm building a custom SD image of Raspbian using debootstrap, and the resulting image fails to boot with Kernel panic - not syncing: No init found. on both my Raspberry Pi and under qemu. I can successfully boot the 2012-07-15-wheezy-raspbian image…
mgorven
  • 261
  • 1
  • 2
  • 7
8
votes
3 answers

How does init get to know about power events?

I have a Pi Model B Rev 2.0 (I think) and I intend to use it for a Home Automation system. As I have a prepayment meter on my electricity supply I occasionally run out of electrons to go around my home's Mains Supply! To avoid problems I have…
SlySven
  • 3,631
  • 1
  • 20
  • 46
6
votes
1 answer

Essential parts for booting the Raspberry Pi 2

This git repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware, as you can read it in the README file: https://github.com/raspberrypi/firmware. What do I need to…
fhmgufs
  • 115
  • 6
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
4
votes
5 answers

INIT: Id "1" respawning too fast: disabled for 5 minutes

I am having a strange error with the latest version of Raspbian. I recently upgraded from a 4gb sd card to a 16gb one and proceeded to reinstall Raspbian onto the card (I did not restore the previous system, I wanted a fresh start). On my first…
qaxf6auux
  • 253
  • 1
  • 2
  • 9
4
votes
5 answers

Pi boots to a white login screen instead of desktop after making tightvncserver boot at startup

I installed tightvncserver, started the service, logged in remotely with no issues. I created a file in /etc/init.d/ called vncboot. ### BEGIN INIT INFO # Provides: vncboot # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs…
Matt
  • 41
  • 1
  • 1
  • 3
3
votes
2 answers

Run script with virtualenv on init

I have bash script which loads a virtualenv and run 3 python scripts. I have tried to init on startup by ini.d and rc.local methods but it doesnt work and I have no idea why is not working but if I start it manually it works the content of run.sh…
Jandako
  • 61
  • 1
  • 5
3
votes
1 answer

Does Stretch Lite support systemd?

Rpi 1 Model A here. I would like to use a Raspbian image in my first pi project, and want to configure it to run an executable Java app (jar file) at startup. According to this article I might be able to configure this Java app as a systemd startup…
smeeb
  • 645
  • 3
  • 9
  • 22
3
votes
1 answer

Why raspbian has /usr/sbin/service?

I know that Raspbian, being a Debian derived distribution, uses systemd as its init system, but the question is, why is there the binary /usr/sbin/service from the upstart init system? Is there to provide compatibility? ps. Package upstart has…
debuti
  • 131
  • 2
2
votes
1 answer

issues installing cross-compiled kernel onto blank SD card

I've followed this tutorial when it comes to compiling a kernel for the Raspberry Pi. I'm installing onto a properly partitioned SD card, which I completely formatted first (it now has a fat32 boot partition and ext4 file system partition). …
npp1993
  • 193
  • 1
  • 9
2
votes
1 answer

How best to clone SD card to larger - have tried dd, but get file system errors?

I have a headless raspberry pi running Home Assistant and a bunch of other docker containers. It has been running on a 64GB SD for some time and runs fine, but very occasionally runs out of space due to accumulated downloads or similar. I bought a…
hitch
  • 123
  • 1
  • 3
2
votes
1 answer

Wrong password creating on first boot (cloud-init) (Ubuntu 20.04 server, RPI 4)

I try create preinstalled user for Ubuntu 20.04. For this i add some entries in accordance with official docs, to /etc/cloud/cloud.cfg (config for cloud-init ) Old: users: - default My: users: - default - name: myuser groups:…
Feuermann
  • 123
  • 4
1
vote
2 answers

Custom initramfs

I'm working on a custom version of initramfs for RaspberryPi 3, where I'd like to run some commands to validate CPU serial number and other validations before start init process itself. I was trying to modify /usr/share/initramfs-tools/scripts files…
1
vote
0 answers

Error on init/boot '/init: line 27: can't create /sys/class/leds/led0/trigger'

Sorry for asking the same question twice, but it seems I can't fix the problem yet. I have a web server running on my pi. One day I found that my server is down and I try to access my pi using VNC and I can't. I plugged in HDMI, keyboard and mouse…
ostell
  • 11
  • 1
1
2