Questions tagged [init.d]

Use "init.d" tag for matters related to scripts run during start-up (and shut-down) by the init process - typically they will start daemons or configure pieces of hardware. As of Raspbian Jessie, the default init system is systemd, but other systems such as Upstart and SysVinit exist for other distributions available on the Pi.

52 questions
11
votes
4 answers

Oops I need runlevel 1

So I have a bug in a script in my init.d directory and bottom line...I can't completely boot the pi. How can I boot into runlevel 1 (single user mode) so I can fix the bug?
Deac Karns
  • 225
  • 1
  • 2
  • 8
7
votes
2 answers

I want to run a Python 3 script on startup and in an endless loop on my Raspberry Pi

I have created a smart vending machine using my Raspberry Pi. For now, I open the Raspberry Pi using SSH and run the script manually for every transaction. I want to automate the process and run the script on startup. After execution I want it to…
Adnan Farooqui
  • 111
  • 2
  • 8
5
votes
1 answer

Clarification about the boot process (systemd / init)

I started disabling some services from systemd to speed up the boot time, but I noticed that many services are also in the old init (which runs). There are quite a few things that start in rc.d (or at least my script started when I placed it there…
Radu
  • 480
  • 2
  • 4
  • 13
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 find out the default init system of my raspbian?

I want to write a script to enable my program on boot automatically. This can be done using SysV Init, Upstart or systemd. However, I am not able to figure out which init system my Raspbian uses. Another doubt I have is that, suppose the default…
Adi
  • 151
  • 1
  • 6
4
votes
1 answer

Getting to display images with feh at startup

I can't get my raspberry pi to display images using feh at startup. I have tried placing my simple feh command wrapped in a shell in cron jobs, /etc/rc0-9.d, and init.d but nothing is working. I tried placing it at ~/.config/lxsession/LXDE-pi as is…
chase
  • 141
  • 1
  • 1
  • 2
4
votes
2 answers

SMSC95XX Ethernet Load Time

So I have a custom minimal kernel I have created which boots fine on the RPI. I'm using busybox for my init process. However I am having some trouble with the ethernet port. (This is on the model B RPI). In my init scripts I have the interface being…
4
votes
2 answers

Disable Raspi-Config

I am able to view the output of the boot sequence of the RPi, however, I have no USB keyboard and so cannot get past the raspi-config screen. I also do not have a router, I have only a link-local ethernet connection from my laptop to the RPi. I have…
ose
  • 193
  • 1
  • 6
4
votes
1 answer

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 is that I put this on my new xbian image and I…
Cade Roux
  • 2,117
  • 5
  • 23
  • 27
3
votes
1 answer

How to write an init script

I am developing an automatic watering system on my Pi. The code is C#, run under Mono. I want the system to start automatically when the Pi boots up, so I am trying to create a script in init.d. I copied a script for something else, and just changed…
Nikki Locke
  • 133
  • 1
  • 4
3
votes
2 answers

/etc/init/d/tightvncserver script fails at boot

This is the tightvncserver init.d script, tightvncserver, in /etc/init.d: ============ ### BEGIN INIT INFO # Provides: tightvncserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 #…
Ric Steinberger
  • 33
  • 1
  • 2
  • 5
3
votes
3 answers

When to call script that can capture IP in python

I'm trying to show my local IP on an LCD during startup. My script worked fine during normal testing via the command line, but when called at startup it doesn't seem to be able to fetch the IP. I tried to call the script via crontab and init.d. …
EDP
  • 1,691
  • 1
  • 14
  • 24
3
votes
1 answer

init.d possibly caught in loop

I put the script "myscript.sh" with the following content into init.d: #!/bin/bash while : do raspistill -v --width 1920 --height 1440 --quality 10 -t 1000 -o /home/pi/webcam/current.jpg sleep 3 now=$(date +"%Y_%m_%d_-_%H_%M_%S") scp…
helm
  • 133
  • 3
3
votes
4 answers

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 then physically either reboot the Pi or start the…
alexus
  • 337
  • 2
  • 12
  • 25
1
2 3 4