Questions tagged [init.d]

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].

At boot time, the init.d directory is browsed by the init (PID 1) process, which executes all programs expected to run at boot time (daemons, servers, ...).

This tag may be used for questions related to programs starting at boot time. It should be used for systems using the init system, or alternatives also relying on /etc/init.d.

188 questions
7
votes
1 answer

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 else failure $"$base…
5
votes
1 answer

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 I've fixed it. So now, I would like write up a…
3kstc
  • 4,706
3
votes
2 answers

How to measure uptime between restarts

I want to track my time at the desk. As a first approximation, I guess tracking the time the computer is turned on, and then subtracting the relatively constant lunch break should do. How can I execute a script at the early stages of shutting down…
Vorac
  • 3,077
2
votes
1 answer

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/5_second_cron pi@raspberrypi /etc/init.d $ sudo chmod +x…
user1032531
  • 1,897
  • 6
  • 31
  • 36
2
votes
1 answer

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 it. Also logrotate is not running (ps aux | grep…
Thomas
  • 893
1
vote
1 answer

Is xfstt necessary?

I am using Lubuntu 11.10. Every time when I shutdown the system I can read on the black screen an error for trying to stop xfstt. I found info about this process here. I have K20xfstt in /etc/rc0.d and also in other folders. But I don't know if it…
Sigur
  • 2,431
1
vote
1 answer

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
1 answer

To set auto restart of a service with a user other than root

I want the service to auto restart on reboot of system. It's already placed in init.d file, but am not getting what can be modified to get it restarted by some other group of users?
0
votes
1 answer

What stands for `xxx.d` in home directory? daemon?

Like emacs.d, some programs have name like xxx.d for init files. What does this d means? Is this abbreviation of something?
ironsand
  • 5,205
0
votes
1 answer

start-stop-daemon: option '--exec' requires an argument

I do not understand this error: start-stop-daemon: option --exec requires an argument I am very new to the init.d world and have only just got my script going using service calls, I just want to get this script working, it starts on boot but failed…
TheHidden
  • 808
0
votes
0 answers

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/webapps At the moment I am using service red5 start…
cea
  • 1,543
-1
votes
2 answers

Why the script can't be executed at stop?

The three lines can run. debian8@hwy:~$ trafficlog="/var/log/traffic.log" debian8@hwy:~$ echo `date "+%Y-%m-%d %H:%M:%S "` | sudo tee -a $trafficlog 2017-02-04 21:20:41 debian8@hwy:~$ sudo iptables -v -L INPUT |grep Chain | sudo tee -a …
showkey
  • 323