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

InitV "service start" doing nothing

I'm running Raspbian GNU/Linux 8 (jessie) on Raspberry Pi rev2. I have written a python app running in background collecting some data. The app itself works fine. But I need to make it run at boot up. I followed this instruction to prepare a valid…
M.K.
  • 89
  • 3
1
vote
3 answers

Daemonized script fails to start (for Google App Engine)

I'm trying to daemonize a script. I followed a couple tutorials and came up with the following script (never done it before, just filled in a template, not sure what 345 70 30 mean): #!/bin/bash # parserservices Parser Services # # chkconfig:…
Josep Valls
  • 5,483
  • 2
  • 33
  • 67
1
vote
1 answer

startup scripts for amazon linux ami

I'm trying to start a script every time I start my amazon micro instance (amazon linux ami). I tried to put it in /etc/init.d/ and linkted it to /etc/rc.d/ but the script is not executed. I've also looked at user-data scripts, but as I understand…
AnonymFx
  • 33
  • 6
1
vote
1 answer

Syntax error near unexpected token when running spring boot jar as service

I want to run my Spring boot based application as a service using init.d (Server is a Redhat 5.9). When running service myapp start or /etc/init.d/myapp start, I get the following error: /etc/init.d/myapp: line 168: syntax error near unexpected…
Wim Deblauwe
  • 25,113
  • 20
  • 133
  • 211
1
vote
0 answers

autofs not working on Ubuntu 14.04

Hi I am trying to automount remote file system using autofs. For this I installed autofs % sudo apt-get install cifs-utils autofs Then I edited /etc/auto.master to have the following line: /ufs /etc/auto.ufs Then I created a file /etc/auto.ufs…
1
vote
0 answers

Process as Daemon on Init.d

I am trying to configure airflow webserver and scheduler to run. It is a python application. I used "python setup.py install" and then using the shell comand: (start-stop-daemon --start --quiet --exec airflow webserver) started the…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
1
vote
1 answer

unicorn server with Ubuntu init script

I created this init.d script for unicorn according to this digitalocean tutorial. #!/bin/sh ### BEGIN INIT INFO # Provides: unicorn # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1…
theDrifter
  • 1,631
  • 6
  • 24
  • 40
1
vote
2 answers

Process grep gives ambiguous output

I have this init.d script where i am checking the status of an application, The expected output should be "Application is running with PID: XXXX" Anyways, i'll show you the code that i have used: ps -ef|grep -v grep |grep Jazz |grep -v "Jazz…
1
vote
2 answers

What does udev need to startup properly in Linux?

I have an issue with udev startup on my i.MX6 board. udev-182 was cross-built by the Yocto 1.8 BSP for the board. I see the following output on startup: INIT: version 2.88 booting Starting udev udevd[188]: bind failed: No such file or…
linsek
  • 3,334
  • 9
  • 42
  • 55
1
vote
1 answer

Debian Startup Script Will Not Start

I was creating a startup BASH script, when I was given an error similar to: The script is missing LSB tags So I went and put in some LSB tags, but it still does not start on startup. The script works perfectly if I start it manually #…
Spenser Truex
  • 963
  • 8
  • 24
1
vote
2 answers

How do I get logstash to run as a service on Ubuntu 12.04, where the process is owned by a user other than root?

I'm trying to get logstash to run as a service owned by a user other than root. The init.d script follows: #!/bin/sh ### BEGIN INIT INFO # Provides: tlogserver # Required-Start: $local_fs $network $named $time $syslog # Required-Stop: …
Kurt Andrews
  • 79
  • 1
  • 7
1
vote
1 answer

Sonarqube 5.1.1 service does not start on ubuntu 14.04

I've followed the installation instruction from http://docs.sonarqube.org/display/SONAR/Running+SonarQube+as+a+Service+on+Linux. Controlling sonarqube works fine using /usr/bin/sonar (pointing to…
baloan
  • 684
  • 5
  • 8
1
vote
2 answers

How can I list files for an init.d script without ruby

I need to convert a init.d script that uses ruby to not use ruby. I can use perl or python or something else, but I can't use ruby. My main problem is figuring out how to dynamically get the list of *.jar files in a directory and separate them with…
Nikordaris
  • 2,297
  • 5
  • 20
  • 30
1
vote
1 answer

add services to init.d on Ubuntu

I'm trying to simplify commands on my ubuntu server. For now, to start / stop / restart apache2, we have to type those commands : stop : /etc/apache2/bin/apachectl -k stop start : /etc/apache2/bin/apachectl -f…
Random
  • 3,158
  • 1
  • 15
  • 25
1
vote
2 answers

cherrypy https script not working with linux startup

Trying to run a cherrypy https server on linux startup. The startup script works with cherrypy running http, but not https. Also, when running https server manually it works, so no library issues there. The summary and error is below: https and…
Nathan K
  • 21
  • 3