Questions tagged [init.d]

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

352 questions
3
votes
2 answers

How do I setup an init.d rc script for a Daemon-kit project?

I am using the Ruby Daemon-kit to setup a services that does various background operations for my Rails application. It works fine when I call in on the commandline: ./bin/bgservice How do I go about creating a daemon initd starter script for it,…
Kevin Baker
  • 1,187
  • 3
  • 12
  • 22
3
votes
2 answers

What does chef do in the end for action 'enable' for a service?

When I declare a service as follows: service "my_service" do action [:enable, :start] end What will chef actually execute in the end ? Will it just run service my_service enable and service my_service start? For start, there should be no problem…
Tao
  • 970
  • 1
  • 12
  • 21
3
votes
1 answer

init.d script for SeleniumGrid under CentOS 5.5

I'm establishing Continuous Integration environment for our team. And part of that environment is Selenium Grid running under the CentOS 5.5. I ran into a problem, i can't set up an autostartup for SeleniumGrid with a system. I've tried to write…
zEvg
  • 71
  • 5
3
votes
0 answers

How to use ssh-askpass in systemd and init.d at startup

I am encrypting a directory /opt/directory using ecryptfs. I want to create service using systemd and init.d that prompts the user for encryption password and mounts the directory. I have tried using ssh-askpass in my script called by the systemd…
Shahbaz Shueb
  • 410
  • 4
  • 9
3
votes
2 answers

AWS Cloudformation cfn-hup fails on default start levels

I have written a cloudformation script using Ubuntu 16.04 and have implemented the userdata/cloud init scripts. However, when it tries to start cfn-hup it fails based on the init.d script. The script is below. I have searched everywhere to…
3
votes
1 answer

How to specify JVM Parameters inside Spring Boot Project when executed with init.d

I have a Spring Boot project that I'm running as an executable jar started as an init.d service on Linux. I understand I can create a .conf file with the same name as the jar file to specify JVM parameters. However, I would ideally like to "hard…
JustinKSU
  • 4,875
  • 2
  • 29
  • 51
3
votes
1 answer

Spark as a Linux Service

I've been tasked to deploy spark into a production environment. I typically manage everything with Ansible. I've packaged up zookeeper and kafka and can deploy those as linux services, but Spark I'm having problems with. It just doesn't seem setup…
Maximilien Belinga
  • 3,076
  • 2
  • 25
  • 39
3
votes
1 answer

Include run-time args in gradle executable jar file

After much searching, during which I've found how to include run-time args in my build.gradle file for running an executable jar from gradle, and even how to include JVM arguments, I have failed to locate the answer to this question: I have an app…
Mark Underwood
  • 115
  • 1
  • 1
  • 8
3
votes
1 answer

Why is my script to start UWSGI not functioning at bootup?

I wonder if you can help. I am running the following versions: OS: SMP Debian 3.2.81-1 x86_64 uWSGI: uWSGI 2.0.11.2 I installed uWSGI manually, as I want to use a specific version. Using the following commands: - apt-get install build-essential…
Gary
  • 1,086
  • 2
  • 13
  • 39
3
votes
2 answers

Spring Boot app with embedded init.d script not starting on reboot

Spring Boot has a handy feature that it will embed an init.d starup script into an executable jar if you configure the maven plugin to do so: http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html#deployment-install So…
crig
  • 859
  • 6
  • 19
3
votes
2 answers

systemd: Pass start/stop to service

I am trying to create an systemd init script for starting and stopping the softether VPN server. A tutorial I found suggests following init.d script. #!/bin/sh # chkconfig: 2345 99 01 # description: SoftEther VPN…
wewa
  • 1,628
  • 1
  • 16
  • 35
3
votes
3 answers

Init.d script hanging

I have an init.d script that looks like: #!/bin/bash # chkconfig 345 85 60 # description: startup script for swapi # processname: swapi LDIR=/var/www/html/private/daemon EXEC=swapi.php PIDF=/var/run/swapi.pid IEXE=/etc/init.d/swapi ### BEGIN INIT…
ehiller
  • 1,346
  • 17
  • 32
3
votes
2 answers

how to tune jvm when using spring boot application as unix service

i'm using the new spring-boot 1.3.0 feature to run tomcat embedded spring-boot application jar as a unix service. All is working fine but i don't know how to tune jvm (with -Xms and -Xmx parameters for example) I've searched in spring…
3
votes
1 answer

Forever not showing running processes properly

I am writing an init script for my Node.js application that is running using forever. Forever is a daemon itself, that runs the node process under it. My issue is that when the Node.js application crashes, the init script does not catch that as…
darksky
  • 20,411
  • 61
  • 165
  • 254
3
votes
1 answer

Meaning of declarations in /etc/init.d/functions on EL 5

I'm something of an amateur when it comes to Bash shell scripting and am baffled by this first line in the killproc() function in /etc/init.d/functions on a CentOS 5.10 system: local RC killlevel= base pid pid_file= delay try What is the meaning of…
ScoPi
  • 1,193
  • 9
  • 14