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

1
vote
1answer
23 views

Making service NOT launch at boot

Context I made a service in init.d to be launched at boot (let's call it the primary service). And I updated update-rc.d primaryservice defaults This service calls 2 scripts (2 different task ...
1
vote
1answer
27 views

Have cron check if the bash script is executing

I have a bash script that users while do along with sleep to constantly monitor the connection state and take measures in case something goes wrong. The only thing that is not guarded is the execution ...
2
votes
0answers
25 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 ...
1
vote
1answer
31 views

dropbox process stops when I log out of ssh

I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem: Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup ...
2
votes
1answer
28 views

How to name and where to place upstart script?

I want to start a watchdog kicker on startup but am unsure how to name and where to place my upstart script. start on startup respawn script /usr/sbin/watchdog end script Reference: ...
1
vote
1answer
55 views

ubuntu - Why modifications to init.d script are ignored

I'm using Ubuntu Server 14.04. After I make modification to /etc/init.d/gearman-job-server and type: # sudo service gearman-job-server restart it ignores modification I've made. But then I type: # ...
2
votes
2answers
57 views

Creating a shutdown only script with update-rc.d

I have a Raspberry PI running the standard Raspbian distribution. I have this little C program that I need to run at the very end of the shutdown sequence. All it does is send a couple of logical high ...
0
votes
1answer
34 views

Creating service in SLES / SUSE 11 SP3

I have a python script that works very well executed from a (remote) console like this : sudo /srv/web-asset-server-master/python server.py The problem is, that it only lives as long as the console ...
0
votes
1answer
47 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
0answers
29 views

rc.local isn't being executed on custom Ubuntu LiveCD image

I have unpacked an Ubuntu desktop live ISO and squashfs, added some simple commands to /etc/rc.local (touch a file in /tmp, wget a web page from a local server), but it seems that rc.local isn't ...
0
votes
1answer
315 views

pam_unix(sudo:auth): auth could not identify password for [asteriskpbx]

to install the asterisk program, I created a sudo user and added to /etc/sudoers file like this: asteriskpbx ALL=(ALL) NOPASSWD: ALL but, when I try to start the service, I get the following ...
2
votes
1answer
207 views

status, killproc commands in Ubuntu

I am trying to migrate an init.d script from centos 6.6 server to ubuntu 14.04. Centos machine start, status, stop commands are, daemon --pidfile=/path/to/pidfile /path/to/daemon/script status -p ...
0
votes
1answer
98 views

Creating X11VNC Server Initscript not successful on boot (manually started works)

I have installed X11VNC and starting it on a running System (with X and XFCE running) in a terminal does work. I have written a startup script (used the skeleton in /etc/init.d/skeleton) for that. ...
5
votes
3answers
205 views

sshd not starting after boot on embedded linux built with buildroot?

I've done a minimal install using buildroot's default config for the Raspberry Pi. I also selected openssh and openssl from menuconfig: Package Selection for the target ---> [*] Networking ...
3
votes
1answer
1k views

Nginx init.d script

After a dist-upgrade on my debian machine yesterday I am having some problems with the nginx init script. Whenever I try to start nginx using the init script it comes up with a error message: # ...
2
votes
1answer
262 views

How does one check if a init.d script is working?

I've had the displeasure of bitterly realizing that (after a few days) upon rebooting of my system, that init.d scripts written by myself were not executed. This caused a bit of problems, but I think ...
0
votes
2answers
90 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 ...
1
vote
1answer
27 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 ...
0
votes
2answers
118 views

status command doesn't recognise `-p` option in Ubuntu

status -p $pidfile -l $lockfile $prog This command works on CentOS - /bin/sh shell. But when I try to run the same command on Ubuntu 14.04 with /bin/bash shell (or zsh as well), it throws error, ...
1
vote
0answers
15 views

Systemd and SysVinit compatibility mode [duplicate]

Trying to reuse an existing "SysV" init script with new Linux version that uses "systemd" (RHEL 7). Just copying it into "/etc/init.d/" fails to work as expected. Can only manually Start/Stop service ...
0
votes
2answers
467 views

init.d script not being run on boot

My script is not running on boot in a vagrant box under Ubuntu. My script looks like this - #!/bin/bash # /etc/init.d/mailcatcher ### BEGIN INIT INFO # Provides: scriptname # Required-Start: ...
0
votes
1answer
433 views

Unable to start vsftpd service on CentOS 6.6

I have installed vsftpd ftp server on CentOS 6.6 with yum, But I can't start vsftpd service. When I run /etc/init.d/vsftpd start, I get Starting vsftpd for vsftpd: [FAILED] with no ...
1
vote
3answers
160 views

update-rc.d doesn't accept the header of a script file

I have beagleBoard and I want to start my script at boot time ( boot/reboot). So, i ran command: update-rc.d GatewayStart.sh defaults Output which says: header is rejected ...
1
vote
0answers
67 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
352 views

How to setup DISPLAY to run a Java JAR Swing Executable from Init.d

I need to run a Java JAR Swing GUI executable in a Raspbian Wheezy Debian distribution inside an ARM device during boot time. I am following this as reference with myapp,myapp-start.sh and ...
6
votes
2answers
376 views

Why vim does not recognize new runlevel7 in inittab?

Mainly for test purpose, I wish to modify /etc/inittab and add a new runlevel to my system (/etc/rc7.d). I have not save my modification yet, because I'm confused by Vim behavior. Indeed, the editor ...
0
votes
0answers
24 views

Comparing and updating Python scripts on local machine with latest version on server using shell scripts

I'm got a cubieboard machine running cubian.There's a Python service that runs on start-up that interfaces between the various devices connected to the machine (UART, USB etc) and the web browser. ...
2
votes
1answer
365 views

Raspbian boots to a root@(none) prompt after erroneous changes in /etc

Under a Raspbian 3.18.7 ARMV71 GNU/Linux embedded inside a cute Raspberry Pi B 2, when configuring some 'silent' options under /etc/init.d files with a now evidently broken and stupid file, the ...
1
vote
1answer
75 views

net scripts try to up old physical removed network interface

Situation: Gentoo with kernel 3.8.4 amd64 udev 218 no systemd, no initram, no old network udev rules Previously 3 network interfaces (2 x onboard, 1 pci , all r8189 module ones) After an short ...
0
votes
1answer
113 views

What is wrong with my init.d script [Segmentation fault]

I currently filter out data from a MQTT live stream. I then dump this datum into a csv file named mqtt.csv and the dumping process is done by executor_start_up_job.txt which is written in BASH. I ...
5
votes
3answers
2k views

Running a script during booting/startup; init.d vs cron @reboot

I am currently trying to understand the difference between init.d and cron @reboot for running a script at startup/booting of the system. The use of @reboot (this method was mentioned in this forum ...
2
votes
1answer
392 views

MongoDB will not uninstall

So, it would appear that following the official MongoDB installation instructions when installing on Debian - you're heading for a world of pain. Firstly, it didn't install correctly so now - i'm ...
1
vote
1answer
115 views

Run a script as root during boot and display in the default linux terminal?

Here's how I configured my kickstart system initialization script (this is a kickstart conf script snippet): ... %post --log=/root/ks-post.log --interpreter /bin/bash cd /root curl --silent ...
1
vote
1answer
39 views

rebooting in an init script

Is it doable to get a clean reboot from in an init script? My init script may change other init scripts, including the numbered S/K script symlinks typically found in /etc/rcN.d in many Linux ...
0
votes
1answer
51 views

Calling of scripts between init.d and home directory of server

I have a script (server_up.sh)that automatically makes server up whenever server gets rebooted and is placed on linux server in home directory. I have made another script "up_server.sh" in init.d that ...
1
vote
1answer
106 views

Script not running correctly on startup

I have a very simple script that echoes some stuff then starts a VNC Server. It works fine when I run it on the command line but when it runs on startup it gives some strange results. Here is my ...
2
votes
1answer
276 views

How do I restart tor?

I have been trying to restart tor (for the sole purpose of changing my IP address). So what I did was make an alias to pkill -x tor; tor. But that gives me the usual tor is already in use/the ip ...
1
vote
1answer
56 views

init.d - what does the reconfigure command do?

For example, vnStat has the following script instructions: Usage: /etc/init.d/S32vnstat (start|stop|restart|check|kill|reconfigure) What happens when I run /etc/init.d/S32vnstat reconfigure?
0
votes
2answers
188 views

/etc/init/suricata stopping CentOS from booting up

I am using CentOS 6.6. I put this content into /etc/init.d/suricata. I also ran sudo chkconfig suricata on to make suricata run at boot. My problem is that it is now preventing Centos from ...
1
vote
0answers
190 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 ...
0
votes
0answers
3k views

Running init.d script produces “start-stop-daemon: not found”

I try to start monit using: /etc/init.d/monit start I then get the error: [....] Starting daemon monitor: monit/etc/init.d/monit: 124: /etc/init.d/monit: start-stop-daemon: not found failed! ...
1
vote
2answers
124 views

How to use process substitution within a case statement without getting syntax errors?

I have a script loaded as a service in /etc/init.d/myfile When I try to start the service I get the error /etc/init.d/myservice: 21: /etc/init.d/myservice: Syntax error: "(" unexpected The issue ...
2
votes
1answer
2k views

systemd: default value for environment variable

I would like to migrate some OpenRC init script to systemd but I think that it is general problem of environment variables handling in systemd. Original OpenRC files There is a file e.g. ...
0
votes
1answer
322 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 ...
2
votes
3answers
564 views

Can't start a ZNC service

I try to start ZNC using the following command service znc start I get this error Starting znc: /usr/bin/dirname: extra operand `2>&1.pid' Try `/usr/bin/dirname --help' for more ...
1
vote
1answer
149 views

What starts syslog and logrotate?

I was looking under /etc/rc?.d and I didn't see many scripts compared to the number of scripts in /etc/init.d. I see syslog running on my machine but who started it ? No script in /etc/rc?.d point to ...
0
votes
1answer
739 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 ...
0
votes
1answer
382 views

init.d script launches manually but not via services command or on startup

I have a subversion init.d script that is able to be launched manually if I launch it $ sudo /etc/init.d/subversion start I get this response: $ Starting Subversion Daemon (svnserve): ...
3
votes
1answer
2k views

Is there an init.d start log?

I am experiencing a problem with an init.d script (the service won't start), so I'm wondering if a log is available so I can fix the problem.