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
1answer
750 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 ...
1
vote
0answers
8 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 ...
0
votes
1answer
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
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 ...
3
votes
7answers
18k views

hostapd will not start via “service” — but will start directly

I am having trouble getting hostapd to start as a service. It fails when I try to start it: $ sudo service hostapd start [FAIL] Starting advanced IEEE 802.11 management: hostapd failed! From what ...
1
vote
1answer
28 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
27 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 ...
3
votes
1answer
1k views

how to specify daemon dependency upon another daemon

in /etc/init.d/ first daemon # Provides: first # Required-Start: $remote_fs $syslog second daemon # Provides: second # Required-Start: $remote_fs $syslog first Is this ...
1
vote
1answer
2k views

How does killproc knows what PID to kill?

When I look at my /etc/rc.d/init.d/functions, I see the following under my killproc() function. if [ -n "${LSB:-}" -a -n "$killlevel" ]; then RC=7 # Program is not running ...
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
30 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: # ...
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 ...
1
vote
2answers
7k views

Run a script at startup

I am using Ubuntu 14.04. I wrote a small script named trial. The contents of the script are as follows: #!/bin/sh SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin sh -c firefox I copied the ...
1
vote
1answer
76 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 ...
2
votes
2answers
62 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
2answers
488 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
39 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
48 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
32 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
345 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
228 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 ...
5
votes
3answers
209 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 ...
5
votes
2answers
3k views

Use start-stop-daemon for a PHP server

I'm working on a socket server written in PHP. This part of the work is done but now I need to run it as a daemon. For this I've tried to use start-stop-daemon but it doesn't work. My server is ...
0
votes
1answer
104 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. ...
0
votes
3answers
620 views

How to restore the /etc/init.d/pure-ftpd-mysql?

By a mistake... this is my new /etc/init.d/pure-ftpd-mysql: /etc/init.d/pure-ftpd-mysql restart How to install or recover the file? The standard apt-get remove, apt-get install or apt-get ...
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 ...
2
votes
1answer
282 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 ...
4
votes
2answers
12k views

How to debug init.d script that isn't being run

I am trying to get god to start during boot on Debian. I added a script to the /etc/init.d/ directory which looks like this. #!/usr/bin/sh ### BEGIN INIT INFO # Provides: god # ...
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: # ...
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 ...
2
votes
3answers
5k views

How do I force booting in text mode?

Newer Linux distributions have the idea to boot into graphics modes. The grub menu does this. The init.d system does this. X does this. I can justify X. But both grub and init.d have only caused ...
0
votes
2answers
122 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
16 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
1answer
464 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
163 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 ...
2
votes
1answer
396 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
0answers
69 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
369 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 ...
1
vote
3answers
12k views

How to start teamspeak 3 on boot, ubuntu server 12.04

So I'm quite new to linux but I'm starting to understand it. I have a Ubuntu Server 12.04 system, fresh install, and I installed a teamspeak 3 server on it: $ sudo useradd teamspeak (provided user ...
2
votes
1answer
636 views

How to respawn vpnc when it stops?

As root, I've setup a crontab rule that launches vpnc everyday early in the morning (before I arrive at my workplace). But it often occurs that the vpn stopped mid day. As a result, I have to sudo ...
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
375 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 ...
0
votes
1answer
114 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 ...
1
vote
1answer
117 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
55 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
108 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 ...