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. These may also be utilised by other processes that run with PID = 1 such as "upstart" or the modern (Linux Os only) ...

learn more… | top users | synonyms

0
votes
1answer
52 views

How to kill startup script?

I just added a script to send me my ip-address of my pi via email as soon as it starts. Something went terrible wrong with it. On each boot I get a A start job is running for LSB: Raise network ...
1
vote
1answer
56 views

How does Raspbian Jessie set the hostname during system startup?

Most systems seem to read the contents of /etc/hostname and make a call to /bin/hostname during the system startup from an init.d (or similar) script. Raspbian Jessie appears to have a different way ...
3
votes
1answer
81 views

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 ...
3
votes
1answer
98 views

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. ...
1
vote
1answer
105 views

Why cant I get forever to run on my Raspberry Pi 2 (node 0.10.2

I've installed node 0.10.2 and forever on my raspberry pi. I had to update npm in order to install forever. I've created the following bash script to run my node app, but when I run it, it just prints ...
0
votes
0answers
230 views

Controller Not connecting to “Mac adress” with bluetoothctl (connect cmd)

Hy, I'm trying to use a 8bitdo Controller on a Raspberry Pi 2, I read many posts on forums, and tried several things but i still don't manage to get it to work. Here is my problem. I followed the ...
1
vote
3answers
189 views

Can't stop script from running at start up

Hope this is the correct forum. I'm new to Raspberry Pi and programming. I have been trying to get my script running at startup without any success, until I found an answer on stack overflow. ...
1
vote
1answer
577 views

/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: ...
1
vote
1answer
90 views

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 ...
0
votes
2answers
453 views

Cannot get Synergy to start with Raspbian

I've tried multiple ways to get it to work, https://learn.adafruit.com/synergy-on-raspberry-pi/setup-synergy-client-autostart ...
0
votes
1answer
141 views

boot script is not called on boot

I have the following script named /etc/init.d/asplashscreen: #! /bin/sh ### BEGIN INIT INFO # Provides: asplashscreen # Required-Start: # Required-Stop: # Should-Start: # ...
2
votes
0answers
267 views

Get an init.d script to wait for internet? [closed]

I've got an init.d script that starts on boot and all it does it run a shell script. The script, tries to update a github repo before running the server, the idea being, on a reboot everything ...
0
votes
1answer
119 views

Why won't `gpio` work from an init script?

I have an init.d script that successfully runs scripts to an LED board from Adafruit using this software: https://github.com/hzeller/rpi-rgb-led-matrix In addition, I've set up a simple single LED ...
0
votes
0answers
23 views

Weird autostart issue?

I have a bash script called motiondetector.sh in /etc/init.d, which in turns runs a motion detection script. Already chmod 755-ed it and ran sudo update-rc.d motiondetector.sh defaults Of ...
0
votes
0answers
119 views

Running Node.js as service keeps giving out code 0 error

first time post so sorry if it's a little blank, or sparse. I'm trying to run a node.js script with mosquitto as a service daemon on my Raspberry Pi running Raspbian (Which is debian). I can run the ...
2
votes
2answers
51 views

Latency variation

I have a problem using my raspberry pi 2 for applications that need low latency. I wrote a c++ GPIO routine that reads a high resolution quadrature ttl encoder. It then updates a counter and adds it ...
3
votes
1answer
107 views

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 ...
0
votes
0answers
300 views

udhcpd init.d script makes trouble using RPi as WiFi AP

I wrote an udhcpd init script. It is more or less like the standard script, which also made trouble. However it supports at least a status output. The problem is that it does not start automatically ...
0
votes
2answers
314 views

raspbian wpa_supplicant fails, which service to (re)start?

I'm using Raspberry Pi 2 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 ...
2
votes
2answers
2k views

Stuck in boot after trying to work with init.d script to run at boot

I messed up the boot on a raspberry pi that is meant to run an important project. It started when I was trying to get a script to run at boot. I tried creating a daemon and I successfully started and ...
3
votes
2answers
723 views

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 ...
3
votes
2answers
816 views

How to run the NTP daemon automatically?

On my RaspBMC, the time drifts pretty much (more than a day in one month). So I started to use NTP, but have problems running it. I called sudo update-rc.d ntp enable, I also added DAEMONS=(!hwclock ...
1
vote
0answers
241 views

How can I get my init.d script to be the last startup item on runlevel 4?

After reading a lot of other questions regarding kiosk mode, I'm using matchbox window manager to launch chromium on my pi that is booting raspbian. I'm started using an older script that was ...
2
votes
2answers
4k views

Access denied when starting systemd service

Noob question, but hopefully someone can help me out here. I'm transitioning from init.d to systemd on my RPi running Linux, as I'm told it would cut my boot time in half. My init script requires ...
1
vote
1answer
155 views

How do I run a script (that needs WIFI) on shutdown before WIFI is down

I have a script on the PI to shutdown my NAS "shutdown_nas.sh". I have created that script in /etc/init.d according to the instructions in /etc/init.d/README It is symlinked in ...
2
votes
1answer
476 views

Redirecting stdout and stderr to UART

I am building my own cross-linux-from-scratch (CLFS) system for Raspberry Pi. I already build whole system, I prepared SD card and now I try to boot. I am redirecting all kernel output to serial ...
1
vote
3answers
5k views

Using init.d script to start my python program on startup

I have a python script that I would like to be run at startup. I have made a init.d script as follows: #! /bin/sh case "$1" in start) echo "starting pitracker" su 'pi' -c 'python3 ...
2
votes
1answer
5k views

Run python-flask server from daemon

I have a python script that uses Flask to run a web server on my Raspberry Pi. This script is working just fine when run from the command line directly but I would love for it to start in the ...
1
vote
0answers
255 views

Shairport 1.0-dev startpar issue [closed]

I've just tried setting up shairport 1.0-dev on the raspberry pi running Raspbian “wheezy” and it works fine when started manually (music plays and is discoverable). I then tried to make it start on ...
2
votes
3answers
5k views

Deluge have no init scripts?

Deluge have no init scripts in raspberry pi repository? root@rpi ~# service deluged start deluged: unrecognized service root@rpi ~# service deluge-web deluge-web: unrecognized service But deluged ...
4
votes
2answers
704 views

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 ...
5
votes
5answers
10k views

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?
2
votes
1answer
4k views

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 ...