Questions tagged [init.d]

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

352 questions
1
vote
3 answers

Start play2 application as a background task with daemon

I've been trying to write a startup script for my play2 application but I can't get it to work as a background task. I started out at the docs and came up with the script below. Script: #! /bin/sh # description: Starts autocomplete play app using…
jakob
  • 5,979
  • 7
  • 64
  • 103
1
vote
3 answers

Odd behavior with Perl system() command

Note that I'm aware that this is probably not the best or most optimal way to do this but I've run into this somewhere before and I'm curious as to the answer. I have a perl script that is called from an init that runs and occasionally dies. To…
1
vote
3 answers

kill all subprocesses of a daemon

I am writing an /etc/init.d/mydaemon: # ... source functions # LSB compliant EXEC=/usr/local/bin/mydaemon PROG=mydaemon function start() { daemon --pidfile=/var/run/mydeamon.pid ${EXEC} } function stop() { killproc ${PROG} } # ... my…
Chen Levy
  • 15,438
  • 17
  • 74
  • 92
1
vote
2 answers

What does VAR_NAME=${VAR_NAME:-"/some/path/file"} mean

What does VAR_NAME=${VAR_NAME:-"/some/path/file"} mean in an shell script? This is for an init script, I'm writing a custom one to get some of our startup operations into init scripts so that we can start them automatically on boot, but I don't have…
John
  • 5,166
  • 27
  • 31
1
vote
0 answers

couchdb don't start on server reboot

I've using the standard init.d script that comes with CouchDB. I'm using it on Ubuntu. On server restart, this is printed on local console: * Starting database server couchdb [ OK ] So, it's assumed that CouchDB…
Juanjico
  • 177
  • 1
  • 15
0
votes
0 answers

Service doesn't support chkconfig using ansible, works fine through service service_name start/stop

I have an init.d unit file which works fine through command line: service ibmihs.service [start/stop] However when I run through ansible it run successfully but the service won't start. I see this error in the log: "stderr": "service…
termine
  • 55
  • 2
  • 8
0
votes
0 answers

What's the standard way to setup a debian package to be run as a service?

I want to generate a debian package, to install a (webserver) application, running as a service. I now have a package, with only a few warning from lintian (I have left aside the confmodule for later) I am able to install it and it runs as wanted on…
Pellekrino
  • 346
  • 2
  • 14
0
votes
1 answer

Monit / init.d for Elixir/Phoenix and Spinx/searchd on Ubuntu

I am trying to get Monit / init.d scripts running on a few different servers, and for a few different processes on Ubuntu servers. Trying to get Sphinx to start on reboot, and to work with Monit Trying to get Elixir/Phoenix mix phx.server to start…
Gordon Isnor
  • 2,065
  • 1
  • 19
  • 32
0
votes
1 answer

Failed to stop Apache Spark Master or Slave using Systemd

Perspectives Actually I needs to configure two service files. One for Spark Master and another for Spark Slave (Worker) node. Please find the environment and service configuration as…
Śhāhēēd
  • 1,812
  • 6
  • 23
  • 44
0
votes
1 answer

How to convert systemv startup scripts to systemd services?

Advice on converting SysVinit file to Systemd services will be helpful. Currently, I am using a systemv init script which will be executed after every boot on my STM32MP1 based Avenger96 board. Now I have to switch to Systemd from SysVinit. But I am…
Preeti
  • 535
  • 1
  • 6
  • 30
0
votes
1 answer

Environment variables available in startup scripts

When using startup scripts on Linux / Ubuntu, can I access environment variables such as HOME or are these specific to the user/configuration that is loaded afterwards?
Frank Vilea
  • 8,323
  • 20
  • 65
  • 86
0
votes
0 answers

How to autostart a C application for OpenWrt?

I've read the following documentation (https://oldwiki.archive.openwrt.org/doc/techref/initscripts). My scope is to start a script when my OpenWrt device is rebooted. Anyway, I can't understand some things: in this guide, I can see that in the…
TryToLearn
  • 29
  • 1
  • 6
0
votes
1 answer

Authenticate a local Spring Boot service with Google Cloud

I have a spring boot application that would run on a local server (not on a google cloud server). I plan to use a service account to allow the application to use Google Cloud Storage and Logging. I created a service account and an api key and…
szab.kel
  • 2,356
  • 5
  • 40
  • 74
0
votes
1 answer

Disable system logs for Spring Boot app running as Linux init.d service

I have a Spring boot application running on docker container as an init.d service. I followed the Spring Boot Unix/Linux Services guide to set it up. Since the application is being started as a daemon service, the operating system creates log file…
0
votes
0 answers

How not to create duplicate Spring Boot application log files?

Situation I use spring-boot-maven-plugin to create executable jar package of my Spring Boot application. Application is at server (Ubuntu) managed via init.d service: /etc/init.d/{appname} start|stop I use Log4j RollingFile appender to create…
jnemecz
  • 3,171
  • 8
  • 41
  • 77