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
0
votes
0 answers

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 directory and accesses some json files, cron…
Kunal Kapadia
  • 151
  • 1
  • 1
0
votes
1 answer

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 unicorn process with separate pid files, and nginx…
Matt Huggins
  • 547
  • 4
  • 14
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
  • 252
  • 1
  • 2
  • 15
0
votes
3 answers

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 explain why when I run nvm --version as my logged in…
Catfish
  • 237
  • 2
  • 11
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,761
  • 3
  • 18
  • 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
  • 281
  • 1
  • 2
  • 9
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,652
  • 3
  • 21
  • 31