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

learn more… | top users | synonyms

0
votes
1answer
26 views

Recommended way to disable atd (and other unnecessary startup processes) in Ubuntu 14.04 LTS?

I just spun up a new 12.04 server and have been having a bit of trouble getting the atd daemon to stop auto-launching. There's been a bit of changing around on the management of startup processes, and ...
0
votes
1answer
21 views

Proper Way to Auto Mount NFS/Samba Shares Before Apache Startup at Boot?

I'm using an Ubuntu 12.04 (Server) VM as a development web server. I keep the served files on the VM host, therefore Apache uses NFS mounted directories for DocumentRoot To keep things as automated, ...
0
votes
0answers
7 views

Nimsoft probe for initscripts

Do any of the Nimsoft products from CA allow you to easily create probes for an initscripts style of service? I know it can probe individual processes from ps dumps, but a single service might launch ...
0
votes
1answer
11 views

How to install NetApp SystemManager as a service under linux?

It seems the NetApp dropped the web interface support some time ago and now they require you to instal and run SystemManager, which happens to be a webserver running on localhost. It seems that their ...
1
vote
1answer
96 views

startpar process left hanging when starting processes from rc.local or init.d

I have a peculiar issue when starting ongoing(service-like) processes from either full blown init.d script (SysV style) or a simple one-line call from rc.local file like so: su someuser -c ...
6
votes
1answer
110 views

Providing normal users(non-root) with initialization and shutdown auto-run capabilities

I'm hosting an experimental/testing Linux box, running Debian Wheezy 7.4.0 distribution. Different users log into the machine over ssh to their accounts and are allowed to run the development tools ...
2
votes
4answers
142 views

Starting a script as another user

I've created a script in /etc/init.d/ which has to run several other scripts from other (non-root privileged) users from their home directories, as if they started them. I launch these scripts ...
0
votes
0answers
28 views

Supplying password to openconnect started via start-stop-daemon

I am attempting to start openconnect via a Debian init script that makes use of start-stop-daemon: DAEMON=/usr/sbin/openconnect DAEMON_ARGS="<endpoint> --script /etc/vpnc/vpnc-script --user ...
0
votes
1answer
63 views

Starting Tomcat 7 as a user - init.d script can't write pid

I want to run Tomcat 7 as a user on CentOS 6. I've created a user tomcat:tomcat and changed the ownership under /var/lib/apache-tomcat* etc... There are lots of docs online on how to do that but I ...
0
votes
0answers
19 views

install ganglia from sources: a) error /etc/ini.d/functions does not exist ; b) use Nginx instead of apache as web server for it

I'm trying to install ganglia (v.3.6.0) from sources on an Ubuntu 12.04 LTS server and I have 2 questions: A) The configure/make/make-install phase works. But when trying to launch gmond or gmetad ...
0
votes
0answers
24 views

call init.d script restart from cron - leaves defunct process, cron-invoked script never finishes

We wrote a quick ruby script called monitor_and_restart_solr.rb to restart a badly behaving Solr (java) process, but it appears to get stuck when we call the /etc/init.d/solr restart The script we ...
0
votes
0answers
21 views

Wrong PATH in init script on boot

Since the update of the System on my Synology NAS (x86) i have some problems with my startup scripts. The Bash scripts are stored in /usr/local/etc/rc.d. The scripts were executed for sure, because i ...
2
votes
1answer
45 views

mongodb 2.4.9 is crashing on wheezy when running as root

I installed mongodb-10gen v2.4.9 on a debian Wheezy, and I'm having this really weird behavior: if I run it as root I can't get it starts: root@xx:~# /etc/init.d/mongodb stop [ ok ] Stopping ...
-1
votes
1answer
207 views

lumberjack shipper init script

I'm using lumberjack shipper for logstash. I'm in need of init.d script to start lumberjack on centos system. I have the script for debian based systems but can't get one on Centos to work. I have ...
0
votes
1answer
38 views

how to configure service fully stop during shutdown

I'm trying to create script for tomcat with my app as system service it's lika ok I can stop start status and restart. But I need when system going shutdown stop service fully and correctly, my app ...
0
votes
1answer
39 views

Run chroot's /etc/init.d on system startup?

So I have this dedicated server that is running Debian. I have an intense business need (client's requirement) that I also install Gentoo as a Chroot. I have successfully done so, but now, I am ...
0
votes
1answer
28 views

Init script is not printing any output

I am trying to run Supervisor init script downloaded from here: https://raw.github.com/Supervisor/initscripts/master/debian-norrgard Reading the source, it should print out some output into stdout, ...
0
votes
1answer
130 views

Insserv rejected the script header

I was trying to make an init script for my debian install for supervisor. insserv: Service \$remote_fs has to be enabled to start service supervisor insserv: Service ...
2
votes
2answers
82 views

Redhat init script on startup

I installed Redhat 6.4 and created a new init script which updates a project using SVN. I then configured the script in chkconfig. The problem is everytime i restart the server i lose ssh ...
0
votes
0answers
46 views

Why is there no (Debian) init.d script for usbipd? Should I write my own?

I just installed the usbip package on my Debian Wheezy (7.1) . For some reason, it comes without an init.d script. Why is there no init.d script for it? Should I roll out my own? Or am I doing ...
0
votes
0answers
25 views

How to use run_init with processes in the background

I'm working on a CentOS 5.9 machine. There's a program that runs in the foreground instead of correctly forking a daemon. It's /etc/init.d/myprogram script has something like below: start() { ...
0
votes
1answer
377 views

puma init.d for centos 6 fails with runuser: user /var/log/puma.log does not exist

Trying to get a init.d/puma to work on Centos 6. It throws error runuser: user /var/log/puma.log does not exist I run this from the /srv/books/current folder but it fails. I tried to debug the ...
0
votes
1answer
91 views

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 ...
0
votes
1answer
94 views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on ...
1
vote
1answer
811 views

How do I host node.js apps with pm2 without running them as root?

I have setup pm2 to run a node.js application, and I can successfully start it and it will resurrect upon reboot. However, the pm2 daemon is ran as root, which makes me think that all my node-scripts ...
2
votes
1answer
64 views

Kibana /etc/init.d scripts

I am having a hard time adapting the init.d start up scripts I have found for Kibana on the internet. I am experienced with RedHat/Centos but we have standardized on Suse Enterpise Linux here at ...
0
votes
0answers
52 views

script in init.d not executed on startup

I have some script in /etc/init.d that normally run when I restart my debian6 box. But some of these scripts are not executed at startup anymore, eg: -rwxr-xr-x 1 root root 307 Aug 3 10:25 ...
-1
votes
1answer
74 views

How to manually remove php from init

I tried to remove php5-fpm from init (aka upstart) on my Lubuntu OS with the command: sudo update-rc.d -f php5-fpm remove but the symlink is still in /etc/init.d/; indeed php is started at boot. ...
2
votes
1answer
97 views

init script terminating with ssh session

We need to run pt-stalk on a handful of servers to keep an eye on mySQL, and I was sick of manually starting it every time the server rebooted. A little googling turned up an init script for pt-stalk, ...
1
vote
1answer
41 views

Passing mysql credentials to pt-stalk without having them visible on the command line

I am trying to roll out pt-stalk with an init script, but I'm having a hard time getting the mysql credentials into the script without putting them in the MYSQL_OPTS section for the pt-stalk launch. ...
2
votes
1answer
262 views

Mysql with upstart not starting

After an update this morning we are having some strange problems. First of all apt-get upgrade fails during the configuration with the a message that it was unable to start the service. We then ...
0
votes
0answers
260 views

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 ...
0
votes
1answer
73 views

How to create a init.d script for openssh-server which was compiled and installed from source using configure + make + make install?

I have installed openssh-server in my Ubuntu PC using apt-get install openssh-server. The version is 5.9. Now, I would like to compile and install openssh-server version 6.2 from source codes. I have ...
2
votes
1answer
139 views

Red hat script on shutdown

I need to backup some files every time i will shutdown a Red Hat enterprise 4 Linux. I thought about make it with a script in /etc/rc0.d but shutdown process should wait for my script to finish. So ...
0
votes
1answer
42 views

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. ...
0
votes
1answer
39 views

“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 ...
1
vote
0answers
141 views

Lighttpd init script doesn't work on Debian Wheezy

[EDIT] I have found why it did not work, I just had to add the directive server.pid-file = "/var/run/lighttpd.pid" to the lighttpd.conf file. I can't figure out why the lighttpd ...
0
votes
0answers
43 views

How to make Jetty wait for mongodb and elasticsearch

My servlet which runs in Jetty requires mongodb and elasticsearch to be started before it can operate. If one of those parts are missing then there is a big crash and nothing works. This is a problem ...
0
votes
1answer
227 views

Configuring OpenLDAP init script on CentOS 6.4

If I just run slapd with no arguments (as root) it starts and works fine. When I try to start it using /etc/init.d/slapd start however, it dies immediately. I see from looking at the init script that ...
1
vote
1answer
243 views

Thin processes not starting after reboot on Ubuntu 12.04

Well, I'm running Ubuntu 12.04.2 and I have Thin installed by gem install thin sudo thin install sudo /usr/sbin/update-rc.d -f thin defaults and I have my configs at /etc/thin. But after system ...
1
vote
2answers
132 views

How to set a binary to init on boot like Apache does (run as a service)

I am trying to setup PhantomJS to run as a service. I found the skeleton file in /etc/init.d and I am running on Ubuntu 12.10. In trying to figure this out I found the symlinks in the /etc/rc*.d ...
1
vote
1answer
37 views

require a gem in a ruby script fails at boot time

I am booting using a machine using chef. I need it to install a init.d script which it does and when the script is invoked at the end of chef run the script fails on the require 'daemons' line (shown ...
1
vote
2answers
39 views

What is the maximum allowable startup time for a daemon startup script?

What is the maximum allowable startup time for a daemon startup script? I do have a tomcat server that takes a lot of time to start and I could include logic inside the startup script to check if the ...
2
votes
2answers
112 views

Is it acceptable to use `grep` to check for the presence of a string in a file within an init script?

Is it okay for me to check the contents of a file for a given string with grep in an init script? I am concerned about introducing dependencies and general convention when it comes init scripts, and ...
0
votes
1answer
48 views

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 ...
1
vote
1answer
174 views

Strange behaviour starting process with init script

I'm seeing some strange behaviour when starting a process with an init script. Most likely I am doing something stupid, but perhaps someone could let me know what might cause this behaviour: ...
1
vote
1answer
101 views

Ubuntu Upstart Job to Persist tcp_slot_table_entries Before NFS Mount

NOTE: I'm aware of the question Persistent changes to /proc/sys/sunrpc/tcp_slot_table_entries and while this older question is quite similar, the selected and proposed answers do not work for us, nor ...
5
votes
3answers
1k views

Running arbitrary program as daemon from init script

I need to install a program as a service in Red Hat. It doesn't background itself, manage its PID file, or manage its own logs. It just runs and prints to STDOUT and STDERR. Using the standard init ...
1
vote
1answer
139 views

Using rc.local to run a command on boot

I am running CentOS and want to execute a command when the system is booted. Reading other posts on ServerFault the recommend file to use is rc.local. However, rc.local exists in both /etc/ and ...
2
votes
1answer
225 views

Helping changing FTPD default umask

Default umask when logging in through FTP is 027 . I want to change this to 002 so a process with the same group can consume an uploaded file. Man 'ftpd' page says pass -u 002 to the ftpd command. ...