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

Centos wont create init.d startup files

recently i installed vnstat on my fresh linux machine. so after installing it with yum install vnstat , before it i installed epel! so now i cant start it: service vnstat start error: unrecognized ...
2
votes
0answers
28 views

init.d script does not work to start hive

I try to start the hive server with an init.d script. If I use the script with: /etc/init.d/hiveserver2 start everything works well. But when I use it with: service hiveserver2 start it will be ...
0
votes
1answer
34 views

Why is a command in init.d script ignored?

As part of my work, I manage a mySQL cluster composed of 3 Ubuntu 14.04 machines. All 3 machines should be identical. On machines 1 and 2, when I run sudo service mysql status, I get a status report ...
0
votes
0answers
38 views

Can not import /lib/lsb/init-functions within init.d script

I am trying to create a init script to start a python script in background. I tried to follow this tutorial: ...
0
votes
0answers
20 views

rsyslog working differently when started as service

I have configured rsyslog to read from a file /root/test.log and forward what it reads on TCP If I start rsyslog directly: [root@servername ~]# rsyslogd it works as I expect (yay). However it does ...
1
vote
0answers
16 views

What is the benefit of maintaining tags in System V init files?

This page describes tags that can be put into System V init scripts. http://mcs.une.edu.au/doc/initscripts/sysvinitfiles In RHEL5, chkconfig will parse the chkconfig tag. # chkconfig: 2345 20 80 ...
3
votes
1answer
43 views

Systemd causing multiple supervisor processes

I'm having a problem narrowing down where the issue is for my supervisor configuration that causes a program to be duplicated. I'm running a Python Tornado Web Server through an Nginx reverse proxy. ...
1
vote
0answers
33 views

“Job failed to start” - Hey but why?

I'm running through an error that's giving me serious headache. Tried to Google for it but all I find is about MySQL which doesn't apply here. I've just updated Node and Ghost (blogging platform) on ...
0
votes
0answers
24 views

systemd doesn't honour chkconfig KILL order

I have a init script which has to start and stop both firstly during system reboot. I was able to achieve this by having a appropriate chkConfig START and KILL order. Sometimeback only, I have ...
0
votes
0answers
14 views

Unicorn Ruby Server and Unix upstart scripts

I created this init.d script for unicorn according to this digitalocean tutorial. #!/bin/sh ### BEGIN INIT INFO # Provides: unicorn # Required-Start: $all # Required-Stop: $all # ...
-1
votes
2answers
24 views

Can't get init.d or network/if-up.d scripts to start

I'm running debian (latest version i believe), and I just can not get my script to run at boot. I've enabled it with update-rc.d, and tried saving it to /etc/network/if-up.d but it just won't start. ...
0
votes
0answers
18 views

If I put two Mysql instances in init.d Centos7 . will both start at boot?

I have two mysql instances in (init.d) all on (rc2.d) (rc3.d) (rc4.d) and (rc5.d). Before, one instance will start on boot but now that I have two instances in (init.d) all configured with different ...
0
votes
1answer
31 views

I have two Mysql servers running on Centos7 . both using different ports. have to manually boot on start.

I need help . mysql on port 3306 and mysql2 on port 3307. I copied my.cnf to my2.cnf I added the following in my2.cnf: datadir=/var/lib/mysql2 port=3307 cp /etc/init.d/mysql /etc/init.d/mysql2 ...
0
votes
0answers
28 views

Start java server using init.d script

I am currently trying to start a java server using an init.d script. However, if I start the server it tells me that the server started and i can find a pid file, but the server is not showing up in ...
0
votes
4answers
181 views

Auto root login in Linux servers

I'm trying to execute a test in different Linux server distros (Fedora, Ubuntu, Centos, etc). I know that there is an init system that can allow programs execution after boot (without login). The ...
0
votes
2answers
158 views

Nagios not starting after boot

I have a small Nagios 4.1.1 install I just completed. It's running on a Raspberry Pi using Raspbian. Checks out okay, and when I start it manually using /etc/init.d/nagios start it works fine. I've ...
0
votes
1answer
20 views

How to send a group of command in background

I'm writing my own generic init script, I've taken strategies from here and there and come up with trap 'kill $(jobs -p)' EXIT; until $DAEMON $DAEMONOPTS > /var/log/${NAME}.log 2>&1 & ...
1
vote
1answer
104 views

How to configure a newer version of Supervisord to start on system boot in Ubuntu 12.02?

How do you configure a newer version of supervisor to start on system boot in Ubuntu? Some distributions simply lag behind in their repositories. When I use easy install (as recommended by default on ...
0
votes
1answer
112 views

Folder /etc/rc.d was removed from Synology NAS [closed]

I was installing the Syncrify package when I created a file to place it in the /etc/rc.d directory, guiding by the following tutorial: http://web.synametrics.com/syncrifyfreenas.htm But, when I tried ...
1
vote
3answers
357 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
72 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
42 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
59 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
290 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
45 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
58 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
28 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
55 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
429 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
123 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 ...
13
votes
2answers
7k 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
23 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
306 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
300 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
42 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
3k 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
75 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
290 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
334 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
689 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
88 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
46 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 ...
-1
votes
3answers
155 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 ...
4
votes
2answers
3k 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
714 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
191 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
42 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
4k 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
65 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 ...