Questions tagged [init.d]

The init.d directory contains a number of start/stop scripts for various services on a Linux system.

The init.d directory contains a number of start/stop scripts for various services on a Linux system.

291 questions
0
votes
1 answer

CentOS 6 init script doesn't work properly

I'm setting up my ruby production server based on CentOS 6. I need a process called god (which is a process monitoring tool) to start at boot. I'm using an init script that I found here. Just as stated in the guide I ran: chkconfig --add god and…
user711643
  • 11
  • 1
  • 2
0
votes
1 answer

how do i write an init script for django-supervisor

pardon me as this is my first time attempting to write a init script for centos 5. I am using django + supervisor to manage my celery workers, scheduler. Now, this is my naive simple attempt /etc/init.d/supervisor #!/bin/sh # #…
amateur
  • 123
  • 4
0
votes
1 answer

Upstart for monitoring forking daemon?

According to this link, it said Upstart is one of the best options for running traditional forking daemons, since it actually uses ptrace to make sure it's watching the correct process ids. Now consider the case of Apache httpd running in…
Howard
  • 2,135
  • 13
  • 48
  • 72
0
votes
1 answer

"PATH should only include /usr/* if it runs after the mountnfs.sh script"

I'm trying to create an init script for a web application I want to run on system start up. Looking through the skeleton script provided by my OS (/etc/init.d/skeleton), I saw this: # PATH should only include /usr/* if it runs after the mountnfs.sh…
Ajedi32
  • 167
  • 1
  • 11
0
votes
1 answer

Get logged on user in init.d script

I have created an init.d script to control a process as a service, in RHEL 6.x. In the script, I am using /sbin/runuser to start the process as an unprivileged user. This part of the script is working fine. The script is operated as sudo…
sujitv
  • 95
  • 1
  • 6
0
votes
2 answers

Start script.py after reboot as user xy in Debian Squeeze

How can i start a python script.py after a reboot as user xy in Debian Squeeze automatically?
0
votes
2 answers

Good pratice to create script to start/stop/restart service?

I was wondering what is a good pratice to create a good script to start/stop/restart some service. I will try to make myself more clear, ok ? Nowadays, I do something like this: let's say I would like to create a script to start/stop/restart a…
Valter Silva
  • 155
  • 1
  • 4
  • 14
0
votes
2 answers

VSFTPd 3.0.2 on Ubuntu 12.04 Init File

I installed the VSFTPd 3.0.2 on Ubuntu 12.04 following this commands: $ wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz $ tar xzvf vsftpd-3.0.2.tar.gz $ cd vsftpd-3.0.2 $ make -j8 $ mkdir -p /usr/share/empty /var/ftp…
Caio Tarifa
  • 65
  • 2
  • 10
0
votes
2 answers

keep linux subsystem service up and running forever

I have created a subsystem file which runs java program I have created. The subsystem file resides in /etc/init.d and allows me to stop and start the service with a consistent interface (start and stop). It is based off of this tutorial:…
petey
  • 572
  • 3
  • 9
  • 20
0
votes
2 answers

howto remove udev from centos(lxc-guest) without dependencies

i downloaded a openvz template for my lxc server to create a new centos 6.3 guest. Now the guest is not starting because udev is hanging in the boot process. Last time i didn't had this problem but now i have to disable or remove udev from the…
user61664
  • 103
  • 3
0
votes
2 answers

Apache not restarting properly

I got some problems restarting Apache with 2000 virtual hosts. I use Apache 2.2.22 + PHP 5.4.6 on CentOS 5.8 64-bit. When I try to restart it displays this: /etc/init.d/httpd restart Stopping httpd: …
Spacedust
  • 568
  • 5
  • 13
  • 28
0
votes
3 answers

Chroot on startup

I have a script that runs on startup, but it wont launch a application in chroot. #!/bin/sh /usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib" echo "script activated" >> /log/www.log the log file is…
Maidenone
  • 103
  • 1
  • 6
0
votes
1 answer

Can't start Hadoop from an init.d script

I'm using CentOS 6.2. I'm trying to start Hadoop from an init.d script, but it's failing. This is what I see in boot.log : Retrigger failed udev events [ OK ] Enabling Bluetooth devices: starting namenode, logging…
sangfroid
  • 193
  • 1
  • 3
  • 10
0
votes
1 answer

Call REST on shutdown

I would like to know whats the best way to call a REST web service when a Linux server is shutting down.
mnml
  • 337
  • 1
  • 7
  • 21
0
votes
1 answer

Prompt to user during startup on Debian

I need to write a script which prompts information to the user in case of an error. Is this possible using /etc/init.d scripts + update-rc.d? Is there any other way?