Questions tagged [init.d]

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

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

291 questions
4
votes
0 answers

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 scripts (that come from Ubuntu packages) I decided…
user1623521
  • 348
  • 1
  • 3
  • 13
4
votes
1 answer

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 Pacemaker v1.1.12 Libqb v0.17.1 Cluster-glue…
Danilo7
  • 101
  • 5
4
votes
3 answers

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

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 action from an init.d script. As of now the script is well started but…
ZedTuX
  • 201
  • 3
  • 8
4
votes
2 answers

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 daemonized process: -rwxrwxr-x. 1 root root 3.3K Jul 16…
fukawi2
  • 5,396
  • 3
  • 32
  • 51
4
votes
2 answers

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 for /var is not ready yet or not present. Press S to skip,…
Rohan Prabhu
  • 143
  • 1
  • 6
4
votes
3 answers

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 drbd drbd 373504 2 ... i can now issue drbdadm…
billdoor
  • 173
  • 1
  • 8
4
votes
2 answers

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 don't think they are current. Most of them indicate…
PrecisionPete
  • 231
  • 3
  • 10
4
votes
1 answer

How do I host node.js apps with pm2 without running them as root?

I have setup pm2 to run a node.js application, and I can successfully start it and it will resurrect upon reboot. However, the pm2 daemon is ran as root, which makes me think that all my node-scripts also runs as root? Even though I added them as a…
jishi
  • 868
  • 2
  • 11
  • 25
4
votes
2 answers

Hide boot messages

I want to hide boot messages at startup in debian. I saw this link and it was so useful as it said i do this to /etc/init.d/rcS: exec /etc/init.d/rc S >/dev/null 2>&1 and the result was what I want. but still there are some messages. How can I hide…
Jush Turner
  • 41
  • 1
  • 2
4
votes
2 answers

How does the operating system know which parameter to pass to /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? How does the os know which paramater to pass to a script? To start apache I…
iDev247
  • 751
  • 1
  • 12
  • 23
4
votes
2 answers

Init script & the green [ OK ]

I am trying to install fast-cgi for nginx on an EC2 instance. I followed the steps explained here, but that is meant for Debian and does not work out of the box for a red-hat based system. I modified the script a bit to look like - #!/bin/bash ###…
Lord Loh.
  • 1,089
  • 3
  • 16
  • 25
4
votes
1 answer

Disable colour output from /etc/init.d scripts?

On RedHat/CentOS systems, all of the service management scripts in /etc/init.d (and also run by the "service" command) produce color output. (i.e. the "[ OK ]" and "[FAILED]" strings.) How do I disable this? (The color-producing escape…
ithinkihaveacat
  • 1,624
  • 3
  • 14
  • 18
4
votes
1 answer

Managing services started on boot (rc0.d, rc1.d, etc)

What is the best way of managing which services start when? service --status-all lists all services, but does a poor job of the service status (most are "unknown") and does not provide any method of disabling/enabling services. I read that…
Enrico
  • 491
  • 2
  • 6
  • 15
4
votes
1 answer

How to conform to update-rc.d with LSB standard?

This is a migrated question from stackoverflow, as I was told, this is the place for it to be. https://stackoverflow.com/questions/2263567/how-to-conform-to-update-rc-d-with-lsb-standard I have set up a simple script to back up some directories.…
user34881
3
votes
1 answer

Create a custom /etc/init.d script in Debian 10 Buster

I need to develop an /etc/init.d script to start and stop a server (binary executable) in Debian 10 Buster. Whereas in earlier versions of Debian, you would write a complete shell script that issues calls to 'start-stop-daemon', in recent releases…
tcdaly
  • 95
  • 2
  • 9