The init.d directory contains a number of start/stop scripts for various services on a Linux system.
Questions tagged [init.d]
352 questions
1
vote
1 answer
Starting multiple tomcat instances in one server with init.d script
I'm trying to configure tomcat init.d start script to work with multiple instances (at this time 2 instances)
I'm following below sample script to create init.d script
#!/bin/bash
#
# tomcat This shell script takes care of starting and stopping…

Kasun
- 679
- 1
- 7
- 21
1
vote
1 answer
CentOS, Node.js, init.d, ENOENT, Can't open or write to log files on system reboot when app started automatically
I have a Node.js service script that must be executed when my CentOS 7 server is booted. I utilized an init.d template to create a startup Daemon. The init.d script works perfectly if I am logged into the server as root and execute the script…

Schleichermann
- 1,126
- 3
- 15
- 26
1
vote
0 answers
Python script as service in init.d, is it worth to daemonize?
I have few python scripts that I want to have as a service in a system. My initial approach was to use python-daemon and it worked. Process was detached and running in the background. Then I have learnt that init.d provides wrapper to what I need,…

Drachenfels
- 3,037
- 2
- 32
- 47
1
vote
2 answers
What does START=03 mean in /etc/init.d scripts on openwrt?
I see a lot of patterns like that in /etc/init.d/:
START=03
START=40
START=96
etc...
For instance this script:
#!/bin/sh /etc/rc.common
START=03
start () {
udevd --daemon
}
stop() {
killall -9 udevd
}
What do those numbers…

Don
- 235
- 2
- 4
- 16
1
vote
1 answer
Python Popen process not working when it is executed from init.d script
I have a script stored in /etc/init.d that works ok when executed at boot time. Since I do not export USER, it should execute everything as root (if I'm not wrong).
Then, it executes python3 script.py
In this script, everything works fine until it…

GWorking
- 4,011
- 10
- 49
- 90
1
vote
1 answer
run solr like daemon
I try to make solr to run as a startup script in /etc/init.d/solr.
This is script that I copypasted from How to start Solr automatically?
#!/bin/sh
# Prerequisites:
# 1. Solr needs to be installed at /usr/local/solr/example
# 2. daemon needs to be…

discort
- 678
- 1
- 8
- 26
1
vote
0 answers
init.d script for New Relic plugin for Varnish on Amazon Linux
Documentation of the Varnish plugin for New Relic at https://github.com/varnish/newrelic_varnish_plugin/blob/master/README.md does not beyond an interactive startup: ./newrelic_varnish_plugin
Has anybody succeeded writing an init.d script that would…

Vacilando
- 2,819
- 2
- 30
- 27
1
vote
0 answers
Etherpad service under debian not starting at boot
I am setting up a Debian 7.6 server. I have installed an etherpad (etherpad-lite) and put it behind an nginx web server. The etherpad uses mySQL. This is all working as expected.
Now I want the etherpad to be running as a service. So I've done what…

le_fritz
- 51
- 4
1
vote
0 answers
vagrant / puppet init.d script reports start when no start occurred
So, struggling with a fairly major problem, i've tried multiple different workarounds to try and get this working but there is something happening between puppet and the actual server that is just boggling my mind.
Basically, I have an init.d script…

Jeff U.
- 616
- 1
- 6
- 12
1
vote
0 answers
Give access to a different process for a file system
Lets say I am mounting a partition to a filesystem as below for process wiht uid 1023,i want to give access to that file system for a different process with a different uid,how do I do that?
mount vfat /dev/block/bootdevice/by-name/partition…

vorsicht t
- 33
- 1
- 4
1
vote
0 answers
screen in LSB init script fails to register
Similar issue as: Using screen to startup a minecraft server(linux debian)
System:
Ubuntu 14.04
amd64
I am trying to run a daemon that runs on bootup so I have decided to use init scripts. I would like to interact with the daemons console but not…

dstealth564574
- 35
- 6
1
vote
1 answer
When executing service script, process cannot see environment variables. why?
I made tomcat init.d script used by service like 'service tomcat start'.
script is like this.
...
CATALINA_HOME=/opt/tomcat7/default
if [ $UID -eq 0 ]
then
RUN_COMMAND="runuser -l tomcat -c"
RUN_TOMCAT_COMMAND="sh…

Stephen Choi
- 70
- 1
- 8
1
vote
1 answer
Why can't I initialize an array in my init.d script?
First line of script --
PATHS=()
results in Syntax error: "(" unexpected
What is going on here? Can I not use arrays in my init.d script? Is it being interpreted by a shell that uses different syntax for arrays?
Running on Ubuntu 10.04 server.

Huliax
- 1,489
- 3
- 15
- 27
1
vote
0 answers
Changing the order of init scripts.
I may sound stupid here, But how safe is it to change the order of the init scripts in debian OS?
Being specific here, there are these two init.d script files in the /etc/rcS.d/ folder -
S02udev --> I understand this script starts the…

sKud
- 11
- 2
1
vote
1 answer
/etc/init.d script 'detach' from output
I have created an /etc/init.d script to start a shell script containing a while true loop. Here's the content of the script:
#!/bin/bash
# /etc/init.d/SCRIPT
### BEGIN INIT INFO
# Provides: SCRIPT
# Required-Start: $remote_fs $syslog…

Niek
- 1,000
- 2
- 9
- 19