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
1 answer
Gentoo service takes too long to start and init system gives up
At some points in my gentoo system mysqld daemon would take too much time to start.
When system boots up, gentoo timeouts and thinks that the daemon has not started, however it starts eventually in background.
But gentoo still thinks that it is not…

Yaki Khadafi
- 91
- 6
1
vote
2 answers
How to start gui application on startup in linux ubuntu
I have gui application made in Qt and I wont to start it when desktop loads.
I have tried to do this from terminal like this:
sudo cp MyApp /etc/init.d
sudo chmode 0777 /etc/init.d/MyApp
sudo update-rc.d MyApp defaults
but when I restart computer…

user2880783
- 145
- 6
- 18
1
vote
2 answers
Start an App right after login - Mono / Windows Forms
I tried many different ways to add an executable (winforms) created in C# using mono to start automatically after login, but any attempt was not right.
Does anyone know how can I do it? I'm running a Raspbian (Raspberry Pi).
Thanks since now!

Erik Figueiredo
- 325
- 1
- 5
- 17
1
vote
2 answers
init.d autostart python script after reboot (Centos)
Has any one script for autostart python script after reboot (centos).
I tryed this code, but it is not working
#! /bin/sh
# chkconfig: 2345 95 20
# description: almagest
# What your script does (not sure if this is necessary though)
# processname:…

Tima Ospanov
- 199
- 2
- 13
1
vote
2 answers
-bash: cmd: command not found
I have this in /etc/init.d/unicorn
#!/bin/bash
# /etc/init.d/unicorn
# ### BEGIN INIT INFO
# chkconfig: 2345 95 016
# processname: unicorn
# dscription: Stop/start unicorn
### END INIT INFO
export…

Eric Francis
- 23,039
- 31
- 88
- 122
1
vote
0 answers
Upstart is checking and trying to start the process everytime and is taking 99% CPU
I have a ruby process that has to be started on the system boot. So i created the init.d file for it in the /etc/init.d directory. the file is /etc/init.d/remote_syslog
#!/bin/bash
#!/usr/bin/env ruby
#
# /etc/init.d/remote_syslog
#
# Starts…

aBadAssCowboy
- 2,440
- 2
- 23
- 38
1
vote
0 answers
Cant Start Job With Ubuntu Upstart
I have heard that Ubuntu upstart is the way to go for dameonization. So I tried this:
First I added an init script in /etc/init/application.conf:
description "Application"
author "David Williams"
env JAVA_OPTS="-server -verbose:gc -Xms1G -Xmx4G…

David Williams
- 8,388
- 23
- 83
- 171
1
vote
1 answer
httpd's pid file only contains one ID even though it spawned many
I want to have multiple httpd services running on a CentOS box, so that if I'm developing a mod_perl script and need to restart one of them, the others can run independently. I had this setup on Windows and am migrating.
Naturally this means…

Kev
- 15,899
- 15
- 79
- 112
1
vote
1 answer
Mongodb Debian 6.0 failed to init
I really need some help...I have been trying to install Mongodb on Debian 6 following the instructions in mongodb´s site (link). I keep gettig a weird error when trying to start using the init.d script. Searching for hour in Google I have found that…

user2810107
- 13
- 2
1
vote
1 answer
Is there any reason a System V init script has to be written in bash?
Is it possible to write a System V init script (the scripts usually stored in /etc/init.d and run with service) in Perl, and have the shell recognize the #!/usr/bin/perl? Would there be any downside to doing this?

DJG
- 6,413
- 4
- 30
- 51
1
vote
3 answers
How to sequence init.d scripts under Ubuntu
I have a few servers and other daemons I need to start up in the right sequence.
I have created init.d scripts from the skeleton script, and can install them to start in proper sequence using the numbered naming system, but a few issues remain: …

Rdbhost
- 929
- 2
- 8
- 20
1
vote
1 answer
Can't make unicorn server start on CentOS boot
I have an unicorn init script in /etc/init.d
I have added description to make it centos-compatible.
It is configured in chkconfig:
unicorn 0:off 1:off 2:on 3:on 4:on 5:on 6:off
It starts normally if I run…

user2447674
- 11
- 2
1
vote
2 answers
ubuntu ec2 - run python script at startup with arguments
I have a python script i'd like to start on startup on an ubuntu ec2 instance but im running into troubles.
The script runs in a loop and takes care or exiting when its ready so i shouldn't need to start or stop it after its running.
I've read and…

jonathan topf
- 7,897
- 17
- 55
- 85
1
vote
1 answer
Apache init.d script
I have the following script to start, stop, restart apache2 in my debian 7
#!/bin/sh
### BEGIN INIT INFO
# Provides: apache2
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
#…

Gabriel
- 1,890
- 1
- 17
- 23
1
vote
1 answer
Why is my startup script not running
Per various tutorials I've done the following:
created a file called ftpserver.py in /home/root/
created a file in /etc/init.d/ called ftpserver that looks like this"
#!/bin/sh
python /home/root/ftpserver.py
Upon creation, I ran the following (to…

Chris
- 9,603
- 15
- 46
- 67