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

learn more… | top users | synonyms

-1
votes
0answers
12 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
vote
1answer
2k 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 ...
3
votes
1answer
836 views

Have FishEye+Crucible start at boot on Ubuntu

I asked this question at Atlassian but figured serverfault might be more appropriate as it's more of a sysadmin question than an Atlassian question: I have been attempting to follow this guide to ...
2
votes
1answer
4k views

How to restart postgresql 8.4 on Debian Squeeze when there are no clusters defined?

How to restart postgresql 8.4 on Debian Squeeze? /etc/init.d/postgresql stop/start/restart does nothing (no output given).
0
votes
2answers
216 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 ...
-1
votes
3answers
39 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 ...
1
vote
1answer
89 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: ...
0
votes
1answer
825 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 ...
1
vote
2answers
76 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
36 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
176 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 ...
0
votes
0answers
27 views

name of script within a init script

I'm trying to figure this out. i have /etc/init.d/startup inside the startup script I'm doing a few things: (or i will like to do) creating a PID file that should look like: /var/run/startup.pid ...
1
vote
1answer
20 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 ...
1
vote
1answer
150 views

What is status_of_proc, and how do I call it? [closed]

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 $? ;; ...
0
votes
2answers
268 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
66 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
97 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 ...
2
votes
2answers
300 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
2answers
146 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
41 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 ...
3
votes
1answer
2k views

PATH issues for init.d scripts on startup

I have a simple script that starts up a unicorn instance (on Ubuntu 12.04LTS). #!/bin/sh case "$1" in start) echo "starting" cd /path && bundle exec unicorn -c ...
0
votes
0answers
169 views

Mysql 5.6 not starting with init script (mysql pre-start process terminated with status 1), starts fine manually

I've been fighting with this all morning: On Ubuntu Utopic (same on trusty, upgraded just in case), when I run sudo service mysql start, or sudo start mysql, I get the single error: "mysql pre-start ...
0
votes
1answer
181 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" ...
1
vote
1answer
934 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
2answers
390 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
0answers
79 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
1answer
305 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
vote
2answers
972 views

Run script before shutdown/restart

I'd like to run a PHP script when an instance is told to shutdown, but of course before it actually finishes shutting down. My particular script is just looking to push some log files from the local ...
1
vote
4answers
101 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*) ...
-1
votes
1answer
37 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
331 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 ...
3
votes
3answers
911 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 # ...
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 ...
2
votes
0answers
90 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
231 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
1answer
423 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 ...
-1
votes
5answers
400 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
132 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 ...
0
votes
1answer
195 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
81 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 ...
7
votes
2answers
4k views

How to remove/backup script from /etc/init.d/?

I've been working with linux for a while but in a rather simple manner. I understand that scripts in init.d are executed when the os starts but how exactly does it works? What if I want to keep a ...
2
votes
2answers
132 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 ...
0
votes
1answer
473 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 ...
1
vote
1answer
46 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 ...
16
votes
4answers
14k views

stop apache from asking for SSL password each restart [duplicate]

Using instructions from this site but varying them just a little i created a CA using -newca, i copied cacert.pem to my comp and imported as trusted issuer in IE. I then did -newreq and -sign (note: i ...
0
votes
0answers
335 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
470 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
288 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
56 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
133 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 ...