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
2answers
45 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
0answers
11 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
22 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
39 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 ...
4
votes
3answers
317 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
0answers
28 views

Attaching a screen started by a script on startup [closed]

I'm starting a screen with a script on startup (placed into init.d). How can i attach to that screen later on (the server it runs is still running). If i start the script manually i'm able to attach ...
2
votes
1answer
158 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 ...
4
votes
3answers
2k 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 ...
1
vote
0answers
42 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
1answer
487 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
1answer
638 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 ...
0
votes
0answers
31 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
64 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
360 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
9k 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
528 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
12 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
83 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
0answers
23 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
56 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
53 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
27 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
25 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
60 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
97 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
32 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?
3
votes
4answers
12k 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
3answers
330 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 ...
0
votes
2answers
112 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
116 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
1k 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
334 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. ...
1
vote
2answers
76 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 ...
6
votes
1answer
12k views

How do I set the user of php-fpm to be php-user instead of www-data?

I am using php-fpm on debian with nginx for php5 support. I would like to have php-fpm to be under the user&group php-user instead of www-data. I thought the init.d script would have the user ...
0
votes
1answer
249 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 ...
1
vote
1answer
83 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 ...
1
vote
2answers
69 views

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

I have a 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 updates ...
0
votes
1answer
149 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): ...
2
votes
1answer
930 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.
3
votes
1answer
204 views

What does the hyphen mean in chkconfig run level in an /etc/init.d script?

I just have a simple question but scouring the search engines I have not found any explanation of what the - (hyphen) in the chkconfig run level actually stands for within the init script file. For ...
1
vote
1answer
247 views

Daemon /etc/init.d message on Debian

When I start/stop/restart a daemon (eg. apache2), no message appears. I am on Debian testing (jessie). On my old server (Debian testing too), messages are displayed: root@old-server # ...
3
votes
3answers
3k views

disable init.d script in systemd

I changed the init system from sysvinit to systemd on a raspbian installation. The install boots fine, but now starts lightdm on boot. I don't want it to do that. I noticed lightdm.service is started ...
2
votes
2answers
2k views

start-stop-daemon won't start my Python script as service

I am trying to run Google AppEngine on my Debian machine, I created a file init.d/gae: . /lib/lsb/init-functions # # Initialize variables # name=gae user=$name pid=/var/run/$name.pid prog="python ...
1
vote
2answers
422 views

How does the script /etc/init.d/sudo work?

I was reading the script /etc/init.d/sudo. It has been written as a comment in the script that it provides limited super user privileges to specific users. Though, I could not understand the script ...
1
vote
4answers
216 views

How to have service that makes sure program keeps running?

I made a service called thin_keep_alive_service in /etc/init.d. I gave it chmod +x rights. The script looks as follows: #!/bin/bash ### BEGIN INIT INFO # Provides: thin_keep_alive_service # ...
1
vote
0answers
37 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 ...
4
votes
2answers
172 views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
2
votes
2answers
375 views

How can I make this System V init script start at boot?

I've installed udisks-glue on my Raspbian Raspberry Pi, along with a System V init script at /etc/init.d/udisks-glue (as per instructions here). I make it executable and run the following, which ...
2
votes
1answer
60 views

Late running of scripts during bootup, ending with a reboot without the login prompt

I'm making a special "installer" for an embedded system where I'd like the kernel to boot up, execute a set of things very late in the process where the peripherals have been set up and then reboot ...
2
votes
1answer
735 views

What is the difference between rc, rc.local and rc.sysinit?

I tried to display the list of startup scripts for the current runlevel at bootup. I wrote the following code. rl=`runlevel | cut -d " " -f2` ls /etc/rc.d/rc$rl.d/S* | cut -d "/" -f5 sleep 10 It's ...