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.

288 questions
0
votes
2 answers

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. Typing service kibana status works fine, but whenever…
Josh Padnick
  • 289
  • 3
  • 9
0
votes
1 answer

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 boot (yay). My question is, looking int the…
othane
  • 101
  • 1
0
votes
1 answer

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: bitcoind # # Source function library. .…
Brad B
  • 1
  • 2
0
votes
1 answer

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 1 root root 6786 Feb 10 16:06…
Athanor
  • 111
  • 6
0
votes
1 answer

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 different distros(it should support at least…
guZ
  • 1
  • 1
0
votes
0 answers

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 and then manually restarted. Is there a "standard",…
Grodriguez
  • 242
  • 1
  • 2
  • 15
0
votes
1 answer

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 the ins and outs of runlevels and init are poor…
Rob
  • 185
  • 1
  • 8
0
votes
1 answer

Can't run node.js script on server reboot

I need to listen events on port 3240 and I'm using node.js for that purpose. I need to execute my script with forever tool. I also need to run forever on server reboot. When I run forever glh.js everything works: forever list says there is a running…
0
votes
1 answer

On a Debian 7.5 rc.local won't be run at boot

I am struggling to figure out why rc.local won't be executed at boot time. The file itself is executable, it is called from /etc/rc2.d Also the file when from command line won't return any errors. Any ideas what else to check to figure out why is…
Alex Flo
  • 1,711
  • 3
  • 17
  • 23
0
votes
1 answer

Proper Way to Auto Mount NFS/Samba Shares Before Apache Startup at Boot?

I'm using an Ubuntu 12.04 (Server) VM as a development web server. I keep the served files on the VM host, therefore Apache uses NFS mounted directories for DocumentRoot To keep things as automated, I have Apache set to start on boot. I have no…
misterich
  • 41
  • 5
0
votes
1 answer

Run chroot's /etc/init.d on system startup?

So I have this dedicated server that is running Debian. I have an intense business need (client's requirement) that I also install Gentoo as a Chroot. I have successfully done so, but now, I am trying to figure out to call Gentoo's /etc/init.d from…
hopeseekr
  • 271
  • 1
  • 2
  • 8
0
votes
0 answers

Why is there no (Debian) init.d script for usbipd? Should I write my own?

I just installed the usbip package on my Debian Wheezy (7.1) . For some reason, it comes without an init.d script. Why is there no init.d script for it? Should I roll out my own? Or am I doing something wrong? What's the best way to ensure the…
einpoklum
  • 1,622
  • 3
  • 19
  • 30
0
votes
1 answer

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 stated in the guide I ran: chkconfig --add god and…
user711643
  • 11
  • 1
  • 2
0
votes
1 answer

how do i write an init script for django-supervisor

pardon me as this is my first time attempting to write a init script for centos 5. I am using django + supervisor to manage my celery workers, scheduler. Now, this is my naive simple attempt /etc/init.d/supervisor #!/bin/sh # #…
amateur
  • 123
  • 4
0
votes
1 answer

Upstart for monitoring forking daemon?

According to this link, it said Upstart is one of the best options for running traditional forking daemons, since it actually uses ptrace to make sure it's watching the correct process ids. Now consider the case of Apache httpd running in…
Howard
  • 2,005
  • 11
  • 47
  • 70