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.

288 questions
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
  • 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
  • 85
  • 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
  • 1
  • 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
  • 562
  • 2
  • 8
  • 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
  • 558
  • 5
  • 12
  • 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
  • 327
  • 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?
0
votes
5 answers

Weird init script issue with corosync

This probably has a simple explanation, but I certainly can't think of it. I've got corosync installed (via yum), with it's default init script. Something is strange on this particular CentOS installation as I often need to manually link…
user705142
  • 433
  • 6
  • 16
0
votes
1 answer

Mysql server doesn't start at boot on Ubuntu 10.04LTS VPS

I did a apt-get update & installed few updates on my server which runs 10.04LTS. But this has broken mysql. it doesn't start at boot. I tried to manually start it using the following commands: $ sudo /etc/init.d/mysql restart Rather than invoking…
CuriousMind
  • 185
  • 1
  • 8
0
votes
1 answer

Process started from init.d takes a long time

I have a wget https://url request that i want to launch from a daemon started from /etc/init.d If launched from /etc/init.d, it will take approximately 10 times longer than if i launch it from a console. I checked with time(1) and the difference is…
arved
  • 453
  • 2
  • 14