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

learn more… | top users | synonyms

5
votes
1answer
1k 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 ...
1
vote
3answers
897 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 ...
3
votes
1answer
2k views

Starting a service only after another one is completely started (on CentOS)

I have installed on my CentOS server postgresql service and another one called netnfork. The 'netnfork' service starts only after postgresql starts. netnfork init script: #!/bin/sh # # netnfork init ...
22
votes
4answers
38k views

How to find error messages from Linux init.d/rc.d scripts?

In Linux, I've written some scripts to be executed during boot and played around with the various ways of installing them. For larger scripts I'll put in /etc/init.d and link the appropriate ...
0
votes
1answer
1k 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 ...
0
votes
1answer
1k 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
55 views

Ansible cannot check service status and restart it

I am new in ansible. Now I try to restart my Tomcat service. It looks like ansible cannot detect service status (started/stopped) and cannot (re)start it. Please tell how to do diagnostic? See here ...
1
vote
1answer
387 views

Nginx daemon doesn't want to stop on Ubuntu

I've got an Ubuntu 11.04 i386 server with Nginx 1.0.11. I'm also using this init.d script - the only one I've found. The server starts up well, but each time I'm trying to stop or restart it, the ...
0
votes
1answer
1k 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 ...
2
votes
1answer
1k 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 ...
1
vote
2answers
44 views

Running a service as root in RHEL 6

I am trying to force Kibana to listen on port 80 therefore it needs to run as root. How can I do this? The init script is as follows: #!/bin/sh # Init script for kibana # Maintained by # Generated by ...
0
votes
1answer
1k 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
18 views

Which ssh starup script is invoked by ubuntu?

I am trying to run two sshd processes, one for admin and one for sftp. Ubuntu 14.04 on digital ocean has both upstart in '/etc/init/ssh' and init.d in '/etc/init.d/ssh`. Is this just digitalocean or ...
2
votes
2answers
193 views

MySQL doesn't start after upgrading to Debian Jessie

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8). I ...
0
votes
0answers
34 views

NFSen - init.d script not working but it can be run manually

I recently installed NFSen to get the NetFLow from our Cisco and the application is working fine if I launch it manually with /etc/init.d/nfsen start but it does not start the processes automatically ...
0
votes
2answers
37 views

Troubleshoot if /etc/init.d script would run on startup, without actually rebooting?

I have this script in /etc/init.d that I want to know if it will be run when the system reboots. Is there a way to "simulate" the conditions of a reboot to see if the script will actually be invoked ...
1
vote
0answers
55 views

Running an init.d startup script as a non-root user (PostgreSQL-related)

I am currently installing PostgreSQL from source on a RHEL6 system. I have generally been following the official documentation for guidance ...
0
votes
2answers
5k views

VSFTPd 3.0.2 on Ubuntu 12.04 Init File

I installed the VSFTPd 3.0.2 on Ubuntu 12.04 following this commands: $ wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz $ tar xzvf vsftpd-3.0.2.tar.gz $ cd vsftpd-3.0.2 $ make -j8 ...
0
votes
0answers
27 views

Writing custom init script for supervisord

I am using supervisord to control my processes on Amazon Linux. I want to make use of supervisorctl inside my init script. I have the following so far. #!/bin/sh # # /etc/rc.d/init.d/supervisord # # ...
1
vote
1answer
23 views

Run command in screen when LSB initscript stopped

I'm trying to get a Bukkit server to run inside a screen as a service, started from an LSB script but I cant get it to stop correctly. What I essentially want it to do is reattach the screen and send ...
0
votes
0answers
9 views

How To Track Init Process Within Systemd

As far as I understand if init script simply provides a set of commands and gets run by systemd the status of the systemd unit will be set as active (exited). How would one track the process started ...
1
vote
2answers
112 views

Mounting multipath devices by UUID in fstab

I have several multipath iSCSI LUN's formatted as ocfs2 filesystems. They are part of an Ubuntu 14.04 cluster using local heartbeat. This all appears to be working fine if I mount them manually after ...
1
vote
2answers
2k views

start-stop-daemon saves wrong PID

$ ps aux | grep svn root **4458** ... /usr/bin/svnserve -d -r /var/svn manuel 4466 ... grep --color=auto svn $ sudo kill **4458** $ sudo rm /var/run/svnserve.pid $ sudo start-stop-daemon ...
1
vote
0answers
30 views

redis-server2 is start-stop-daemon: warning: this system is not able to track process names longer than 15 characters

So I've had the need of running 2 instances of redis in the same server. My server is an Ubuntu 14.04 box. So I followed this guide, but not in a strict way. I mean, instead of modifying redis init ...
1
vote
0answers
29 views

How to display init output to tty7 (or main tty)

I have created my first init script in a linux server (ubuntu if that adds any information) that checks for an update, downloads it and executes it in each hour. The init file is as follows: ...
1
vote
1answer
40 views

Order of services using systemd and legacy init.d services

On my Fedora 23 system a database is started by systemd. Another service (hive-metastore) that depends on that database ist started through a init.d script. I'am unclear about what would be the ...
0
votes
1answer
14 views

Make init script output available without hitting the filesystem

I'm working on an init script for a command which writes extensive activity messages to stdout. The output is only useful for debugging and since it will be running on a Pi, I don't want these ...
0
votes
1answer
130 views

Prompt to user during startup on Debian

I need to write a script which prompts information to the user in case of an error. Is this possible using /etc/init.d scripts + update-rc.d? Is there any other way?
0
votes
1answer
43 views

Ceph installs without init scipts. How do I get them?

I have installed ceph in 3 centos7 nodes with ceph-deploy tool. All works good but I haven't any script to manage ceph or radosgw. My /etc/init.d/ folder contains only these: functions, network, ...
0
votes
1answer
45 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 ...
-1
votes
2answers
25 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
60 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
47 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
30 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
18 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
100 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
41 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
32 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 ...
6
votes
1answer
413 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 ...
0
votes
0answers
24 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
49 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
21 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
0answers
54 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
344 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 ...
1
vote
2answers
2k views

Is LSB's init script function “start_daemon” really used for real daemons or should I stick to start-stop-daemon?

In the context of init scripts, according to the LSB specification, "Each conforming init script shall execute the commands in the file /lib/lsb/init-function", which then defines a couple of ...
0
votes
2answers
334 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 ...
1
vote
4answers
3k 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
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 & ...
0
votes
1answer
318 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
1answer
215 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 ...