Questions tagged [init.d]

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

352 questions
2
votes
2 answers

start-stop-daemon works at command line but doesn't work in /etc/init.d script

I'm trying to get a starter script (for a ruby gem called ar_sendmail) working in /etc/init.d/ar_sendmail: #! /bin/sh echo "in…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
2
votes
1 answer

init.d script won't start in reboot, but works from command line

I know this question has been asked a bajillion times, but I just can't figure this out. I've read every page I can on the topic but nothing I've tried works. Basically, I have a script in /etc/init.d that works fine from the command line but not on…
tscheingeld
  • 789
  • 7
  • 24
2
votes
1 answer

spring-boot launch-script: how to avoid pid_folder identity-subdirectory?

We are using spring-boot with the embedded launcher-script in service mode, to have daemonized/init.d behavior. We however do not have an /etc/init.d symlink to the spring-boot jar as that would require using sudo. we avoid sudo to pass a…
hotzen
  • 2,800
  • 1
  • 28
  • 42
2
votes
1 answer

How to fix "file /etc/init.d from install of conflicts with file from package chkconfig"

I have converted Debian package installation to CentOS RPM using alian. I'm getting below error when I try to install it. Error: file /etc/init.d from install of conflicts with file from package chkconfig I can install it by rpm -Uvh…
Yasiru G
  • 6,886
  • 6
  • 23
  • 43
2
votes
1 answer

how to manually restart or stop virtuoso from commandline

I have a new installed Virtuoso (from github > 7.2.4) on a Debian jessie system. It starts properly after boot. How to stop, start, and restart manually the virtuoso web server? It starts after reboot. How can this be achieved from the command line?…
user855443
  • 2,596
  • 3
  • 25
  • 37
2
votes
1 answer

Ubuntu 16.04 init scripts output

I have some older init.d script, I used this commands for status and debug output from /lib/lsb/init-functions. But after upgrade to 16.04 no output is written and echo also does not…
2
votes
2 answers

Access environment variable in .conf file for spring boot app

I have set environment variable by executing the command export test=abcd I can see test=abcd when I run printenvcommand I have deployed a springboot.jar application and I am passing the JAVA_OPTS from the springboot.conf…
2
votes
1 answer

Spring boot executable jar with init.d launching as root instead of user

HELP! I'm using the built-in launch script with SpringBoot 1.3.6 and Gradle. Oh, and the distZip task to zip things up. At one point not long ago, this was all working quite well... then I did -- I know not what -- to screw it up. I've installed…
Mark Underwood
  • 115
  • 1
  • 1
  • 8
2
votes
0 answers

Akka: What is a best practice to start an Akka process from init.d?

I need to start Akka processes as *nix "init.d" (System V or else). Usually what I do locally it is start one of those like: java -jar myakka-project.jar .... However this is "blocking" on the console as it never forks so it hangs the process in…
Randomize
  • 8,651
  • 18
  • 78
  • 133
2
votes
2 answers

bash script starting service over ssh

I'm trying to start a service over ssh in a bash script that I just call from the command line. I can do the following commands: (I have ssh keys in place so I don't need to put a p/w in) ssh -t -t user@server 'sudo /sbin/service test stop' --…
georges
  • 175
  • 4
  • 17
2
votes
0 answers

Can't start screen at boot time

I'm trying to create a script for rtorrent in order to start it at boot time. I've planed on use screen but it seems it doesn't work. Here is a simple script for testing I used: #!/bin/sh # ### BEGIN INIT INFO # Provides: test # Required-Start:…
Nicox11
  • 96
  • 1
  • 1
  • 7
2
votes
1 answer

Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

I have already been through different tutorials on how to set raspberry pi into a torrent box, but I think most of the how-to tutorials are out-dated. I have also check my version of deluge daemon using his command: deluge -v And it returns…
Saif
  • 2,530
  • 3
  • 27
  • 45
2
votes
0 answers

running service elasticsearch start fails, but running the command manually succeeds

Context: I'm testing an elasticsearch 1.7.1 configuration that's set up by chef, and testing in kitchen The chef script and configuration works because it's running in production somehow running service elasticsearch start as the elasticsearch user…
BrDaHa
  • 5,138
  • 5
  • 32
  • 47
2
votes
1 answer

Custom init.d script gives daemon: not found

On Debian 7 I have a custom init.d script to start solr. I get this error though: Starting solr.../etc/init.d/solr: 18: /etc/init.d/solr: daemon: not found failed. See error code for more information.
the
  • 21,007
  • 11
  • 68
  • 101
2
votes
2 answers

Running a PHP Script as a Daemon in Debian

I am trying to start a php script as a daemon in Debian. I also would like it to start on boot as well. I have been starting using /path/to/php /path/to/script/Insert.php & without issue, and can shell_exec("nohup /path/to/php…
chaosaffe
  • 848
  • 9
  • 22