The init.d directory contains a number of start/stop scripts for various services on a Linux system.
Questions tagged [init.d]
352 questions
1
vote
0 answers
Script doesn't start manually (or on boot) (init.d)
I'm running tinkerOS which is a distribution of debian. But for some reason the cwhservice that works on raspbian (also debian based) doesn't run on tinkerOS.
The script is placed in /etc/init.d/ and is called cwhservice, systemctl deamon-reload has…

kloknibor
- 55
- 1
- 7
1
vote
2 answers
Installation of a Spring Boot application as an init.d service in Ubuntu 14.04 LTS
I've generated a Spring Boot app. with maven, moved the jar into
/var/licence/licence-0.0.1-SNAPSHOT.jar
Then
sudo ln -s /var/licence/licence-0.0.1-SNAPSHOT.jar /etc/init.d/licence
But when I type
lopes@localhost:/var/licence$ service licence…

en Lopes
- 1,863
- 11
- 48
- 90
1
vote
1 answer
Spring boot application as Service - Running in foreground instead of daemon
I followed the standard tutorials out there in Spring website and couple of private articles.
create a symbolic link of the jar to /etc/init.d/
service myapp start
The service starts but it starts just like a normal app in foreground. Just like I…

madhairsilence
- 3,787
- 2
- 35
- 76
1
vote
0 answers
why chkconfig can't add my script?
Hy!
I want to add my script in init.d which starts a server at startup but when I can't add it to chkconfig.
This is a head of my script :
#!/bin/bash
# chkconfig : 2345 19 18
# Default-Start : 2 3 4 5
# Default-Stop : 0 1 6
#…
user7127267
1
vote
0 answers
Debian: Jenkins not starting as a daemon: Container startup failed
For some reason my Jenkins server does not start anymore. I tried apt-get remove, apt-get purge and apt-get install to solve the issue but it didn't work.
I can't reach Jenkins on its Web URL after starting the server.
When i try to start Jenkins i…

CHF
- 264
- 4
- 17
1
vote
1 answer
how to installing spring boot application on Mac
Spring boot application can be easily started as Linux services using either init.d or systemd. Then we can use stop|start|status|restart commands to manage our service. Is there any similar way to manage spring boot application as service on Mac OS…

chao huang
- 3
- 3
1
vote
2 answers
Multiple PIDs being stored in PID file
I have a System V init script I've developed that starts a Java program. For some reason whenever the PID file gets created, it contains multiple PIDs instead of one.
Here's the relevant code that starts the service and writes to the PID…

dmux
- 442
- 7
- 24
1
vote
0 answers
Script start on boot: where to find messages
I would start a script on boot for Raspberry with raspbian. I found and followed well known method to start script on boot.
But, where can I find the messages of my script? I'm not sure that the script started. For example, a simple…

Old-fashioned-dev
- 403
- 3
- 20
1
vote
1 answer
How to change max open files limit(s) for spring-boot init.d service
Trying to change default open file limit value for spring-boot application (in Debian based system), which is started as init (System V) script, but I have difficulties finding a solution:
General recommendation is to add ulimit -n line to…

Ralkie
- 3,736
- 3
- 25
- 25
1
vote
2 answers
How to set the enviroment variables of the session DBus when starting in an init script?
I like to make sure that the DBus in session mode is running before starting my Application deamon. The sh script under /etc/init.d/ looks like:
#!/bin/sh
### BEGIN INIT INFO
# Provides: myAppD
# Required-Start: $local_fs $syslog…

Stefan Jaritz
- 1,999
- 7
- 36
- 60
1
vote
0 answers
spring boot : cannot start embedded tomcat from init.d script
I recently tried to start/stop a spring boot app (with an embedded tomcat) as a linux service from an init.d script
I eventually manage to do that, thanks to Spring Boot application as a Service answer, but during my trials and errors, I tried…

jlb
- 358
- 3
- 15
1
vote
1 answer
Require in Init.d script
I've done an init.d script in order to start a newrelic plugin as daemon. The problem is that when I run service rb_nr_agent start it has some errors related with "require". Output:
[root@device newrelic_rb_plugin]#…

Fran Rios
- 821
- 9
- 20
1
vote
3 answers
Error Running SpringBoot Jar using init.d
I have a SpringBoot application, for which I use gradle :myapp:jar to generate an executable jar. In addition, I also had to use chmod 755 myapp.jar to make the jar executable.
This is the gradle code for generating the jar, as described…

Vlad Schnakovszki
- 8,434
- 6
- 80
- 114
1
vote
1 answer
debian init.d script not running after reboot
I need to start my Wildfly AS through .sh script after system boot (Linux-Debian). So I created my own script which should do it in init.d:
#! /bin/sh
# /etc/init.d/starter
case "$1" in
start)
echo "Starting"
nohup…

Jan Tomášek
- 135
- 10
1
vote
1 answer
Docker - sh service script dont take options
i've this docker sh service script in /etc/init.d on a debain 8 machine:
#!/bin/sh
set -e
### BEGIN INIT INFO
# Provides: docker
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: …

bn89
- 53
- 1
- 7