init.d (usually /etc/init.d) is a directory holding configurations regarding programs to be started at boot time by the `init` process. For questions regarding the `init` process itself, use [init].

learn more… | top users | synonyms

0
votes
3answers
202 views

Startup script needs root permissions

I have a script that I need to run at startup. I have it in init.d. I need to execute one of the commands within the script with root permissions. How do I go about doing this? Edit 1: For reference,...
1
vote
2answers
149 views

Running SQL call as root user in init.d script?

I have an SQL query that must be run on every startup after a software update (updates come with new installations of mysql and thus change the debian-sys-maint user's password, which my script ...
0
votes
2answers
126 views

Service start fails after Capistrano2 deploy task

Below is a part of the /etc/init.d script that controls a daemon. The full init.script is available at http://pastebin.com/02G5tpgH case "$1" in start) printf "%-50s" "Starting $DAEMON_NAME......
2
votes
1answer
17 views

Update on reboot with init.d

I created a script to add a bunch of packages and update the system on a fresh install. Here's the relevant part of my init.d script that is giving me trouble: #!/bin/sh ### BEGIN INIT INFO # ...
2
votes
1answer
140 views

Unable to start ZNC as a service

Firstly, this is the exact same question as found here, but the given solutions did not work in my situation. Background I am running a CentOS 6 VPS and I want to run a ZNC bouncer on it. I ...
2
votes
1answer
62 views

Init scripts. Distinction of booting and starting activity

I have some script that runs and shuts down some service placed into /etc/init.d. It has symbolic link into /etc/rc5.d added with chkconfig for autolaunch on booting. Hence it starts on boot and can ...
1
vote
1answer
29 views

Does metainit have a directive to generate a log file?

Does metainit have a directive to generate a log file by redirecting process's standard output stream to it? The naive way of: Exec: /srv/wordy/wordy >/var/log/wordy.log does not seem to work ...
1
vote
1answer
61 views

Booting into VNCViewer on a Raspberry Pi.

Here's my problem. I'm new to Linux scripting and RasPi and I am beating my head against the wall on an issue. I want to use this raspi for displaying a vm using VNC. I got VNC installed. Created a ....
1
vote
1answer
1k views

openfire chat server Deamon not getting start while server up every time

we using a Chat server, its installed with openfire, for local office use we installed it, every day morning while server getting ON openfire service is not getting started, I have added it in run ...
1
vote
1answer
415 views

what starts runsv on a Debian system using init and how?

A bit of background: I installed git-daemon-run on a Debian system, and now git-daemon starts at boot automatically, even though there is no init script for it in /etc/init.d. I did some digging and ...
0
votes
1answer
24 views

linux program not running at boot time

I have a few scripts: collection.sh start.sh script1.sh and script2.sh. I have these set up to run at boot time so that: collection.sh calls start.sh start.sh calls both script?.sh collection is ...
0
votes
1answer
70 views

Execute a init script from C++ program

I have a script in my /etc/init.d/ which executes an application. I am able to start,stop and get status of the service from terminal. Now I would like to start the same service from my C++ program. ...
0
votes
1answer
142 views

Init script for a daemon to run screens on CentOS

I have a question concerning a init.d script. Currently I have a init script that launches a custom daemon as follows: sudo -u "$user" $cmd >> "$stdout_log" 2>> "$stderr_log" & ...
0
votes
1answer
93 views

Automatically start a script while booting on OpenSuse 11

I need the following sample script to run when OpenSuSe 11 is booting: #!/bin/sh i=0; while true; do "SOME COMMAND FOR SAVING i TO ANOTHER PLACE" &> /dev/null i=$((i+1)) sleep 1 ...
0
votes
1answer
254 views

Is there a specific SSH boot log?

My sshd won't start at bootup. I have to type it in manually (sudo service ssh start). I've posted a question on how to start ssh at bootup (How to start SSH daemon on boot on Linux Mint Debian v2), ...
0
votes
1answer
461 views

Ubuntu 14.10 init scripts: where to find shell function “clean_all”?

I just installed Ubuntu 14.10 . One of the things that I prefer in my desktop is to not clear out /tmp . I'm trying to do the same in 14.10: to prevent the /tmp from being cleared at boot. In one of ...
0
votes
1answer
979 views

RedHat init.d script will not start with service after stop

I have the service script below, which calls a shell script. We changed something in the script When I run the shell script directly, everything works fine. When I restart the servER, everything works ...
3
votes
0answers
110 views

How do I make a service stop all at once?

I used the script here to create a service to start and stop a Minecraft server on boot and shutdown. The script basically starts the server jar file in a GNU screen (it also does backups and updates ...
2
votes
0answers
14 views

Linux startup script dependency issue

I have a startup script in init.d that starts some process that depends on Redis server running. When init script executes on boot my process fails due to connection failure to Redis server. I have ...
1
vote
0answers
25 views

Commands in init script refuse to run or actually do anything

Edit -- So it turns out that this line is the culprit . /lib/lsb/init-functions If I comment out that line then the commands are actually able to run. Why would this be? I'm able to source this file ...
1
vote
0answers
15 views

starting application in rc.d causes terminal to freeze

I have a application which uses stdin and stdout. I wish this application to start running as soon as possible after all the background daemons are running. I am using openwrt on an embedded system, ...
1
vote
0answers
55 views

Runlevels behaviour when kill script has failed

When I execute sudo init 3, the system executes the kill scripts in /etc/rc.3/ One of those scripts returns a failure (this is expected because the thing it's trying to do won't work). When I then do ...
1
vote
0answers
33 views

When creating an init.d demon, what is the .service file?

I am trying to create a service that will eventually run at start, however I am getting stuck just trying to get the service to run using: sudo service fortech_bluetooth_server start Whenever I run ...
1
vote
0answers
65 views

Running Python application on boot through init.d script

I am trying to start an Python application on a Debian based OS that is running on a router. This application comes prebundled with site-packages and a python binary. Like a virtual environment. The ...
1
vote
0answers
17 views

Log on standard output

I'm using Debian Jessie and I'm having big init.d script which starts or stops variety of daemons (more than 10), which list is taken from configuration file. Using systemctl restart parstart.service ...
1
vote
0answers
48 views

What puts TCPMSS in iptables?

I used to have (well, I still sort of do) have a script that expects: -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu to have been entered in to iptables ahead of my ...
1
vote
0answers
239 views

insserv: warning: script 'XXX.sh' missing LSB tags and overrides

What causes insserv: warning: script 'XXX.sh' missing LSB tags and overrides, and how is it prevented? pi@raspberrypi /etc/init.d $ sudo rm 5_* pi@raspberrypi /etc/init.d $ sudo vi /etc/init.d/...
1
vote
0answers
78 views

How to write LSB init.d scripts that can run multiple instances of the same service?

Here is the problem I have: I do have to run multiple instances of several services on the same machine and I want to be able to re-use the init.d scripts. You can see here an example of service ...
1
vote
0answers
130 views

Process starts from inittab but stops by itself at the same time

I have installed pyload in my My Book World Edition and I would like to make it boot everytime I boot up the drive. I wrote the line below in "inittab" ::respawn:/opt/share/pyload/pyLoadCore.py My ...
1
vote
0answers
321 views

init.d script ignored in yocto based distro

I'm modifying an embedded distro that is built using the yocto project. I need to add cron to it and have the cron daemon start on startup. I have created the symlink /etc/rc5.d/S98cronstart that ...
1
vote
0answers
71 views

Multiple daemons init script

I have two daemons currently running on my development server (OpenSUSE 12). There are two daemon that work together as a whole and must start together and die together. Is there a standard way to ...
1
vote
0answers
3k views

checking sendmail status as NON root user

I am in the process of converting to CentOS 6.5 from 5.5 and need a way to check if sendmail is on or not. For reasons I don't want to go through, I need to be able to check if sendmail is ON as a ...
1
vote
0answers
971 views

Debian init.d with a working C++ daemon, unexpected results

I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
1
vote
0answers
2k views

Bittorrent Sync Autostart as a Service

I'm running a raspberry pi with the latest raspbian (debian) on it. I've installed btsync. Now I want to run Bittorrent Sync, when the system boots, not only when somebody logs in. Do I have to run ...
0
votes
0answers
21 views

Install custom init.d service on debian7?

please help me. Stupid question, but I look at the syntax and do not really understand how to correct it. The point: do a service for python3 http server. The command must be executed so. cd /var/www/...
0
votes
0answers
21 views

hadoop as init.d Process - status_of_proc return process not found

I was trying to use the init.d script to control hadoop service. The start and stop commands work without any issue. However status_of_proc does not find the process and its returning service is not ...
0
votes
0answers
47 views

Linux + how to shutdown application properly with reboot or init 0 + init.d scripts

I have Linux Redhat (version 6.5) machine that manages some application before each reboot or init 0 I shutdown the application as the follows: /etc/app-LM.bash /etc/app-UPP.pl /bin/DT-apl.c ...
0
votes
0answers
40 views

linux + start script under /etc/init.d dependencies with other services

from some reason the script UPMnT.sh not start at boot I cheeked everything: chkconfig is ok links are ok but I worry about maybe there are dependencies between other script to this script can ...
0
votes
0answers
30 views

I'm able Start Service With init.d script, however doing service <service name> start does not work

I'm able to start a service with an init.d script, however doing service <service name> start does not work. For e.g. /etc/init.d/haskal start, the service is starting fine and service haskal ...
0
votes
0answers
55 views

How to enable kibana at startup

I just downloaded kibana-4.3 tar file , extract it and it works fine. But i want to enable the service at system startup and i got the error by using chkconfig command: service kibana does not ...
0
votes
0answers
16 views

inittab entries without runlevels

Refering to here 1 ap::sysinit:/sbin/autopush -f /etc/iu.ap 2 ap::sysinit:/sbin/soconfig -f /etc/sock2path 3 fs::sysinit:/sbin/rcS sysinit >/dev/msglog 2<>/dev/msglog </dev/console 4 is:...
0
votes
0answers
27 views

Who does write apache2 PID on Debian 8

I am a bit lost: who is in-charge to write the apache2 PID in Debian GNU/Linux 8 (jessie)? I think /etc/init.d/apache2 invokes /usr/sbin/apache2ctl which in turn calls /usr/sbin/apache2. But in ...
0
votes
0answers
197 views

How to make resolvconf / dnscrypt / unbound work together on systemd - and respect openVPN routes?

I'm finding it tremendously confusing to appropriately setup Unbound.service on systemd. Use Case I am trying to get my Debian Jessie laptop to use DNScrypt as default DNS and Unbound as the local ...
0
votes
0answers
109 views

How to run script on startup?

I'm trying to run my script spoofy.sh on start up and I'm having some troubles hoping somebody could shed some light here. I am running Arch Linux, heres my script: #!/bin/bash ifconfig wlo1 down ...
0
votes
0answers
46 views

The program called by the init.d works by itself, but not when the init.d itself runs

I currently have two programs, my_sql_auto_update.sh and my_sql_auto_update_initd.sh, the latter is the init.d script located at ~/etc/init.d/ which [should] run the my_sql_auto_update.sh. The ...
0
votes
0answers
39 views

Can you have two paths listed in init.d file?

In /etc/init.d/red5 can I list two home paths for different programs using it that are in different locations? I have red5 set up in /var/www/html but I also have it set up in /var/www/html/red5/...