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
37 views

Ubuntu 16.04 services timing out at boot time

I just spun up a new Ubuntu server this morning to try and prepare a production server for a client's code. Unfortunately in testing the server I found that after a reboot the database and PHP-FPM are ...
5
votes
2answers
355 views

Parse error in sudoers file

I've created a user called kafka to whom I am trying to give a sudo access to run only /etc/init.d/kafka commands. I added the following entry to /etc/sudoers.d/kafka via Ansible: kafka ALL = ...
0
votes
1answer
2k 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
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 ...
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 /home/...
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 ...
5
votes
2answers
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 ...
3
votes
2answers
56 views

Start PHP-FPM with root option automatically

I was trying to get PHP-FPM running a pool as root, but I can't seem to adjust the init.d startup params. It works when starting PHP-FPM from the CLI (with sudo php-fpm7.0 -DRy /etc/php/7.0/fpm/php-...
0
votes
0answers
12 views

How to redirect traffic every time when service hostapd is started?

I have been using iptables to redirect all traffic to remote host on port 80 towards my local proxy 127.0.0.1:8080 for testing. I used iptables -n nat -L to check if iptables is set. sudo iptables -t ...
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 ...
38
votes
4answers
6k views

“reboot” or “shutdown -r now”: what restart command is safer?

We have in our organization around ~500 RedHat Linux machines. On all the machines we installed applications and services under /etc/init.d, and oracle RAC servers. We intend to perform yum updates ...
2
votes
2answers
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 ...
5
votes
2answers
4k views

PHP-FPM does not automatically start after reboot

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This ...
6
votes
2answers
476 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
13 views

Phabricator init.d script will not init all 3 daemons

I am using this init script with the --local modification to the is_running function to start the phabricator daemons. However I can't seem to get it to start all 3 phabricator daemons at start time. ...
1
vote
3answers
1k 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 ...
22
votes
4answers
41k 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 /etc/rc.d/...
1
vote
2answers
176 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
402 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 ...
1
vote
2answers
63 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
19 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
254 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
41 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
50 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
104 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 (http://www.postgresql.org/docs/9.4/static/installation....
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
29 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
25 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
10 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
182 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
54 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
54 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: /etc/...
1
vote
1answer
54 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
131 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
57 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
50 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
76 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
49 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
33 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
150 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
57 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
35 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
29 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
58 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
77 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 ...