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
0answers
30 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
38 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
350 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
11 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
53 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
20 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
50 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 ...
4
votes
3answers
216 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
1answer
101 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
43 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
26 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
20 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
54 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
79 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
29 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
98 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
94 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
972 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
70 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 ...
1
vote
1answer
249 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
246 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
3answers
298 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
73 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
453 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
124 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
747 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.
1
vote
2answers
68 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 ...
3
votes
1answer
182 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
204 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 # ...
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
397 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
203 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
36 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
167 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
1answer
51 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
2answers
364 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 ...
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 ...
1
vote
1answer
679 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 ...
1
vote
0answers
816 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 ...
0
votes
2answers
5k 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 ...
2
votes
2answers
193 views

Postponing ntpd

I am currently trying to cut boot time for an embedded Linux system. One way we figured we could do that is by postponing the ntp init.d script. The daemon tried to synchronize with the server via ...
4
votes
1answer
1k views

How does init determine which devices to modprobe?

I'm building a totally custom initramfs for a netbooting project and in the process learning a lot about it, but I'm a little puzzled by the loading of modules. I know modprobe can be used to load ...
0
votes
2answers
280 views

Launch a program on boot (Debian server)

Path to folder: root/CumulusServer Command to execute: ./CumulusServer --daemon [--pidfile=/var/run/CumulusServer.pid] I've spent considerable time trying to figure out how to modify init.d? Any ...
2
votes
2answers
3k 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 ...
2
votes
2answers
8k 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 # ...
1
vote
0answers
316 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 ...
0
votes
0answers
33 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 ...
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
1answer
551 views

Use /etc/init.d/fetchmail with the personnal ~/.fetchmailrc

Now, I have two users in my system using fetchmail with a personal ~/.fetchmailrc and syncing there mails with the command fetchmail -kv --uidl -m '\''/usr/bin/procmail -d %T'\ (In a cron but this ...
1
vote
0answers
583 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, ...