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
2answers
35 views

Linux's /etc/init.d - symlink, hard link, or actual file?

I have a Debian and an RPM package that requires a start/stop script to be added to the /etc/init.d directory. Recently, I was informed by a remote developer that "those in the know" know that "best ...
0
votes
1answer
49 views

how to add kernel command before mysql startup in linux

I want to add these commands to the Linux kernel before mysql startup (at boot time): echo never> /sys/kernel/mm/transparent_hugepage/enabled echo never> ...
0
votes
1answer
11 views

Upstart script runs well with sudo but fails as root user

I have a simple nodeJs upstart service run as, script exec /usr/bin/node /path/to/server.js end script On running with sudo command, it works ~$ sudo service upserv start sg_gui_server ...
0
votes
0answers
25 views

Wait init.d script until host name is ready, Ubuntu/Mint

I have a postgres SQL, which I would like to bind to local host and internal net IP. In /etc/postgresql/9.3/main/postgresql.conf . . . listen_addresses = 'localhost,myhost.mynet' . . . If I just ...
0
votes
0answers
94 views

Missing /etc/init.d/ipsec script after installing strongswan 5.3.2 from source

Ubuntu 14.04 (Amazon's Ubuntu AMI). Installed strongswan 5.3.2 from source (latest version in repo is too old and doesn't work). 1 question: 1) Noticed that the /init.d/ipsec (or /init/) script is ...
0
votes
0answers
16 views

Start seafile before docker at boot

On a debian 8 server, I have installed docker which run a MariaDB container. Seafile server is dependent of the MariaDB container. On restart, MariaDB take too long to start, so seafile fail is ...
1
vote
1answer
27 views

Trying to get pid from a script running as su -c

I am trying to get these scripts to work in an environment where the java application needs to run as user foobar no matter if it is started as root or foobar. So these are my modifications to the ...
0
votes
0answers
20 views

Cross distro daemon command?

I'm trying to write a script to launch a daemon on both centos and debian. This is the current pseudo script: if [ =f "/etc/init.d/functions" ] then . /etc/unit.d/functions alias ...
0
votes
0answers
29 views

Define default runlevels for 2 init.d daemons with dependencies (Sysvinit Debian Wheezy)

I have two daemons daemonA and daemonB. B is dependant from A, that means that A must start BEFORE B and A must stop AFTER B. I have successfully made these daemons run at boot time by setting ...
2
votes
1answer
197 views

Start at boot time Corosync 2.X + Pacemaker 1.1 cluster (Debian Wheezy)

I can't find a way to start cluster (corosync+pacemaker) at boot time in Debian I have updated a 2 node cluster with the following configuration on both nodes: Debian Wheezy 7.7 Corosync v2.3.4 ...
0
votes
1answer
59 views

s6 : how to get a run script running only once?

0 down vote favorite I'm using s6 (http://skarnet.org/software/s6/) in order to supervise multiple processes. I have couple services in my /etc/s6/ folder and one of them just need to call the start ...
6
votes
2answers
1k views

What's the easiest way to make my old init script work in systemd?

I don't want to do the right thing by creating a new systemd script, I just want my old init script to work again now that I've upgraded my system to an OS that's using systemd. I've briefly ...
0
votes
0answers
16 views

Encrypt ubuntu 14.04 home directory with services accessing them without login

I have few services which gets started as soon as server boots up. Now i would like to encrypt my home directory. Will services work properly if i do so? Code for those services is present in the home ...
-1
votes
1answer
153 views

What is the minimal init.d script for Ubuntu?

I have a small Python-based server program that runs fine, but I want launched each time the server is rebooted. What is the least that I need to put into an /etc/init.d script to work? I only care ...
0
votes
1answer
129 views

How can I start two unicorn services at startup?

I am running both my staging and production environments on the same DigitalOcean Ubuntu box. I have everything working so that each environment can be deployed to its own directory, run a separate ...
0
votes
0answers
40 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
2answers
2k 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
50 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
177 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
201 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
327 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
76 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
29 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
71 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
175 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
105 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 ...
3
votes
2answers
1k 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
400 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
132 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
184 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
39 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 ...
4
votes
1answer
2k 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
52 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
2k 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
168 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
553 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
519 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
75 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
847 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
1k 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
227 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 ...
2
votes
3answers
2k 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
1k 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
46 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
943 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
3k 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 # ...
4
votes
0answers
234 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
2k 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
432 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. ...
3
votes
5answers
2k 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 ...