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
0answers
28 views

elasticsearch not enabled when installed on additional device

Here's the deal : I'm working with AWS EC2 instances (Centos 7). Elasticsearch is installed from the sources in the folder /app. The elasticsearch service is managed by init.d. The problem is that if ...
0
votes
1answer
760 views

Amazon Linux Init.d Script Not Daemonizing Properly

I'm working on Amazon Linux and am running into an issue with my init.d script. I'm trying to run Kibana 4, which is just a script that calls nodejs to run as a service, but it's not working. ...
0
votes
1answer
22 views

Debian 6 service boot orders

In Debian 6 and greater using the LSB init style I have added new servers to run on boot using update-rc, and indeed they do appear in the /etc/rc2.d (2 being my run level), and they even start on ...
0
votes
1answer
78 views

CentOS startup script command not found

Trying to start bitcoind on CentOS 6, but just getting command not found errors. #!/bin/bash # # bitcoind The bitcoin core server. # # # chkconfig: 345 80 20 # description: bitcoind # processname: ...
0
votes
0answers
44 views

Why doesn't socat running from init.d create a port successfully?

Running the following command in the terminal is successful: sudo socat pty,link=/dev/serial.192.168.0.10.pos,nonblock,raw,echo=0,user=web-server tcp:192.168.0.10:999 This creates a serial port > ...
0
votes
1answer
62 views

Cannot start Wildfly

I want to start wildfly as a service but nothing happens when I try to start it using: $ /etc/init.d/wildfly start Starting WildFly Application Server: wildfly $ ls -l /etc/init.d/wildfly -rwxr-xr-x ...
0
votes
1answer
50 views

Creating enterprise init script (to support all Linux distros)

I'd like to create my own init script to make my program start at boot and be controlled via "service" utility in most popular Linux distributions. Requirements: it should be portable across ...
0
votes
0answers
51 views

How to fix Postfix init script on Ubuntu 14 so it can stop the Postfix it started

I'm on Ubuntu 14 Installed via sudo apt-get install postfix service postfix start works fine and even does something useful But: $ service postfix restart * Stopping Postfix Mail Transport Agent ...
0
votes
0answers
21 views

sysv init scripts — differentiate between first run (boot) and subsequent runs

Normally sysv init scripts are run at boot time (from /etc/init.d/rcS) with the 'start' argument. However they can also be invoked with the 'start' after boot, for exmaple when a service is stopped ...
0
votes
0answers
48 views

UnicodeDecodeError starting Radicale server during boot process

I set up the Radicale CalDAV server on Debian Wheezy (raspbian). I can launch it manually as expected. However, when I try to start it during boot process it fails with the following error: ...
0
votes
0answers
78 views

error with configuration of Varnish

i got this error when i try to restart Varnish via SSH " service varnish restart" this the error : [root@mydomin sysconfig]# service varnish restart : command not foundnish/etc/sysconfig/varnish: ...
-1
votes
3answers
62 views

Command shows different results when I login as a user vs su to the user

I'm trying to run a simple command from an init.d script and I'm troubleshooting why the command doesn't work when I run it from my init.d script but works when I run it as my user. Can someone ...
2
votes
1answer
579 views

Centos 6.5 auditd fails to start with service or /etc/init.d/audit start

Fail: # service auditd start Starting auditd: [FAILED] Fail: # /etc/init.d/auditd start Starting auditd: ...
1
vote
2answers
138 views

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar ...
-1
votes
1answer
66 views

init.d script getting error

First of all sorry for my bad english Ok, i wrote a init.d script and i don't know its true or false (i am new at this things) #!/bin/sh . /etc/init.d/someserver start () { echo -n $"Starting ...
4
votes
2answers
181 views

What happens to a daemon without a “K” link in /etc/rcX.d/

What happens to processes started by init through an init script, if that script does not have a corresponding K entry in (for example) /etc/rc0.d/? For example, the following script started a ...
1
vote
1answer
37 views

name of script within a init script

I have a script /etc/init.d/startup, where I do the following: creating a PID file that should look like: /var/run/**startup**.pid executing a screen of a java process, so I will like to create the ...
2
votes
1answer
974 views

What is status_of_proc, and how do I call it?

In the init script of nginx in Debian 7 (Wheezy) I read the following exerpt: status) status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $? ;; ...
1
vote
1answer
36 views

How to run an init.d script to run after $PATH is set

I created an init.d script that launches a system daemon. The daemon uses the system $PATH to launch other processes. The system path, however, does not include "/usr/local/bin" at the time the init.d ...
2
votes
2answers
1k views

Logstash Forwarder doesn't start up with chkconfig in CentOS 5

I have set up logstash-forwarder on a CentOS 5 machine installing it from this RPM: http://download.elasticsearch.org/logstash-forwarder/packages/logstash-forwarder-0.3.1-1.x86_64.rpm When I went ...
0
votes
0answers
96 views

ubuntu 14.04 amavis update-rc.d start\stop error output

I have been using amavis on ubuntu 12.04 with no issues and while installing a new amavis server on 14.04 I have an error trying to apply update-rc.d the output is: ~# update-rc.d amavis enable ...
1
vote
1answer
275 views

Bamboo service does not start on ubuntu server machine reboot/startup

I have set up an instance of bamboo on a local ubuntu server machine. Everything works fine exept for one thing: Bamboo is not started when the server reboots. I have created a script and placed it in ...
1
vote
2answers
306 views

Python Script portion failing to execute within init.d/ on RedHat 6.5, why?

I've created a init.d script called rmCluster which is supposed to execute a simple python script at shutdown which uses boto to shutdown a particular cluster of servers, with 755 perms, located in ...
0
votes
1answer
59 views

Is Nginx running at all runlevels bad?

I inherited some EC2 (running AMI) instances at my new job and I am trying to figure out the method that my predecessor used to set them up. This might be a really basic question, but my knowledge of ...
0
votes
1answer
428 views

insserv: warning: script 'uwsgi' missing LSB tags and overrides

This is my code: #!/bin/bash daemon="$APPVENV/bin/uwsgi" args="--emperor $APPCONF/uwsgi/app.ini" pid="$APPDIR/emperor.pid" case "\$1" in start) echo "Starting uwsgi" ...
2
votes
2answers
682 views

Ubuntu server not booting due to (possible) disk mounting problems

I have a server running Ubuntu 14.04, with one hard disk partitioned like: sda sda1 -> / sda2 -> /var sda3 -> (swap) sda4 -> /home Whenever I boot, I get the message The disk drive ...
1
vote
0answers
141 views

Naming convention for /var/lock/subsys on sysvinit with multiple pids

In this Tips and Tricks article from Red Hat, it is said: When a service is started through an init script, a file is touched in the /var/lock/subsys/ directory with the same name as the init ...
1
vote
3answers
911 views

drbd service not startable / WFConnection

I recently migrated my drbd setup from Ubutnu to centos 7 and i get a wierd error: i can load and unload the module normally, and the whole thing seems to work #>modprobe drbd #>lsmod | grep ...
1
vote
1answer
587 views

/etc/init.d/nginx reload not working

My earlier problem revealed that reloading the config of my Debian GNU/Linux 6.0 nginx reverse proxy does not work, while restarting, or reloading directly through the binary does work. I have looked ...
-1
votes
1answer
43 views

Auto starting rc at startup

So here are the steps i am following . So i add a conf file inside /etc/init.d/myconffile And then to get System start/stop links i have to use the command sudo update-rc.d myconffile defaults 99 ...
0
votes
1answer
561 views

Could not access pid file for elasticsearch

I am not a die-hard linux engineer, but I am having some problems with starting Elastic Search. Some stats: Server: Ubuntu Server 11.04 Elastic Search: 1.2.3 (installed with appitude) When I start ...
5
votes
3answers
2k views

Service is not starting on Centos on boot

I have a service installed to start jasper reporting server on boot. I believe it is correctly setup. here is the startup script placed in /etc/init.d/jasperserver #!/bin/sh ### BEGIN INIT INFO # ...
2
votes
0answers
140 views

Can I make systemd show service status after starting or stopping a service?

I am trying to get systemd to do what init.d scripts would do, showing the status of a service automatically after being manually given a command to start or stop. Is this somehow possible? systemd ...
1
vote
1answer
1k views

How to autostart `ypbind` on Ubuntu 14.04

It seems I need to use sysv-rc-conf to manage service startup/shutdown, but no scripts were added to /etc/init.d/ when I installed NIS. I would expect to either have /etc/init.d/nis or ...
1
vote
1answer
326 views

puppet service not stopping service (iptables)

I am trying to use a puppet master 3.1.1 to manage iptables on various servers. My local puppet agent is 2.7.19, the server OS is CentOS 5.4. ...
0
votes
5answers
882 views

Standard or best way to keep alive process started by init.d

I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive. Or even better, is there a way to keep it alive directly from /etc/init.d? Specifically, I ...
0
votes
1answer
465 views

Bacula daemon fails to stop or restart

Foreword: I have already resolved this problem and am asking this question to share the solution I've found. Please bear in mind that the problem described here may (or may not) be more generic and ...
0
votes
0answers
103 views

When I auto-start Supervisord on boot, the [program:start_gunicorn] don't start

The [program:start_gunicorn] is running with no error when I manually start supervisord with this setup. [program:start_gunicorn] command=/env/nafd/bin/gunicorn_start priority=1 ...
0
votes
1answer
149 views

Can't run node.js script on server reboot

I need to listen events on port 3240 and I'm using node.js for that purpose. I need to execute my script with forever tool. I also need to run forever on server reboot. When I run forever glh.js ...
2
votes
2answers
168 views

Apache2 and MySQL fail to restart after Server restart or apt-get update

Does anyone know of any reason why Apache2 and MySQL do not run after either a server reboot or apt-get update? I am currently running Ubuntu 12.04 LTS server There are the corresponding files in ...
1
vote
1answer
59 views

Which insserv tags do I have to add to initrd-tools.sh?

I have installed insserv on my debian 7 server. When I call insserv I get the error insserv: warning: script 'S19initrd-tools.sh' missing LSB tags and overrides which means, that the tags in my ...
1
vote
4answers
120 views

portable daemon management from bash (sysvinit/upstart/systemd)

I have a little shell script which needs to stop a service. This needs to work on ubuntu (14.04), debian and Arch. Right now what I do is similiar to case $(cat /etc/issue) in *Ubuntu*) ...
0
votes
1answer
1k views

On a Debian 7.5 rc.local won't be run at boot

I am struggling to figure out why rc.local won't be executed at boot time. The file itself is executable, it is called from /etc/rc2.d Also the file when from command line won't return any errors. Any ...
0
votes
0answers
392 views

Restarting redis after installing with Ansible hangs

I'm using the following playbook albeit slightly modified with a newer version of Redis: https://github.com/Kami/ansible-redis I removed the Disable obsolete init.d service and generate upstart ...
2
votes
2answers
696 views

httpd service is not starting automatically

I compiled Apache and PHP from source on a RedHat server, but in doing that, I forget to install the httpd as service. Files used to compile Apache 2.4.7 Command used to compile Apache 2.4.7 ...
0
votes
1answer
2k views

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

I just spun up a new Ubuntu 14.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 ...
0
votes
1answer
381 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
80 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
185 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
2k 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 ...