The init.d directory contains a number of start/stop scripts for various services on a Linux system.
Questions tagged [init.d]
352 questions
2
votes
1 answer
Gradle test task testReport task - Deprecated properties with Gradle 2.3 / Java7 or Java8
I am trying my project to change from java7 to java8.
So i made changes to existing gradle extra.commons-myp.gradle script that i used for gradle 1.6.
I made change of complie to JavaCompile as it is deprecated after 2.0.
I get error at test…

Srivignesh
- 21
- 1
- 4
2
votes
0 answers
scanbd doesn't work unless I restart it from the command line
NAME "Raspbian GNU/Linux"
VERSION_ID "7"
VERSION "7 (wheezy)”
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux
I’ve installed SANE and scanbd with a Canoscan LIDA 210. From Instructions Here I’ve put in an…

RightmireM
- 2,381
- 2
- 24
- 42
2
votes
1 answer
Raspberry Pi script boot order
There're three forms about running a script on the boot of the Raspberry, that are modifying /etc/rc.local, modifying the cron daemon and making a script that automatically run on boot in /etc/init.d
I want to know which of the methods listed about…

Fernando Gallego Fernández
- 456
- 1
- 3
- 19
2
votes
2 answers
Ubuntu: When upstart service is run with user root, it returns Unknown job
As you can see from the following output(not limited to mysql, other service gives similar result), when run service/status with sudo, it gives correct result, but gives 'Unknown job' when run directly with root.
I googled a lot, but key words like…

D3Hunter
- 1,329
- 10
- 21
2
votes
2 answers
Celery, what is the recommended way to deamonise as a worker and a scheduler?
I have Django and Celery set up. I am only using one node for the worker.
I want to use use it as an asynchronous queue and as a scheduler.
I can launch the task as follows, with the -B option and it will do both.
celery worker start 127.0.0.1…

wobbily_col
- 11,390
- 12
- 62
- 86
2
votes
1 answer
/etc/init.d execution order & how it relates to /etc/rcN.d
After a spot of digging around I have established - I may be wrong since my knowledge of these issues is rather sketchy - that the scripts in /etc/init.d are run in the order determined by the symlinks in /etc/rcN.d.
It is not quite clear to me why…

DroidOS
- 8,530
- 16
- 99
- 171
2
votes
2 answers
Starting service as non root user
Can someone help us understand how to properly start our programs service as the services user (marty for example).
We're using init.d to start our process (java application), but when the system(s) boot (Ubuntu and Debian) because the service…

Atomiklan
- 5,164
- 11
- 40
- 62
2
votes
2 answers
Aria2 working init script
I want that aria2 starts when the system is booting. I found different init.d scripts but non of them is working for me...
Can you tell me whats wrong with that init.d script?
#!/bin/sh
### BEGIN INIT INFO
# Provides: Aria2
# Required-Start:…

mjx649
- 81
- 2
- 9
2
votes
2 answers
In a bash script that starts with set -e, can I set the exit code to a different value than the first failed command's?
I'm currently working on some init scripts that should both use set -e and confirm to the Linux Standard Base core specification. Now those two don't really work together:
Since due to the set -e the first command that fails causes the scripts to…

a.peganz
- 318
- 1
- 4
- 11
2
votes
1 answer
Shell Script on Boot up does not execute on Raspberry pi
I want to run the following commands just after bootup of Raspberry Pi running the raspbian wheezy:
sudo gcc -lpthread server.c -o wifiserver.o
sudo ./wifiserver.o
I created the following files and ran the following steps:
Created a script file…

RootPhoenix
- 1,626
- 1
- 22
- 40
2
votes
2 answers
Unix script on startup in /etc/init.d not working
I've been trying to get my Java application to run as a daemon in the background after startup. I've followed the instructions given in the top answer here and to no avail.
This is my /etc/init.d/myapp file:
#!/bin/bash
# MyApp
#
# description: bla…

OsaSoft
- 589
- 5
- 19
2
votes
0 answers
celeryd not launching startup
I am trying to install an init.d script, to run celery for scheduling tasks. I'd like to launch celery automatically at startup.
Here is the steps I followed:
copied the file celeryd and pasted it in folder /etc/init.d/
created a configuration file…

apatel
- 83
- 3
2
votes
2 answers
Single instance of a python daemon (with python-daemon)
I want to create a program that runs forever, which there is only one instance running at a time and that can be launched with an init.d script. python-daemon seems to be a good choice to do that as it is the reference implementation of PEP 3143.…

Charly
- 193
- 1
- 8
2
votes
2 answers
Restart a crashed process (python) script automatically in linux
I want to restart a process (python script) automatically if it ends/crashed.
Below my bash init.d script so far.
I was thinking to replace the do_start() call in the start section with:
until do_start; do
echo "Restarting.." >> error.txt
…

dgrat
- 2,214
- 4
- 24
- 46
2
votes
3 answers
Redis starts manually with init.d but not on startup
Redis properly starts up if I run the command:
sudo /etc/init.d/redis-server start
I've added my startup script with:
sudo update-rc.d redis-server defaults
But when I startup from a fresh boot, Redis isn't running. Where should I look to…
user479947