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

learn more… | top users | synonyms

3
votes
3answers
10k views

Can't start, stop, or interface with SSH service

Having really bizarre behavior with ssh. I have the ssh-server running fine, configured ufw (firewall) fine as well. However, it seems I can't manage ssh as a service or through /etc/init.d/ssh. I ...
4
votes
3answers
22k views

How do I stop transmission-daemon?

How do I stop transmission-daemon? I've ran sudo /etc/init.d/transmission-daemon stop and after a while I get confirmation that it completed [ OK ]: greg@VManage:~$ sudo ...
5
votes
5answers
10k views

Init.d startup script not working for No-IP

I have just installed No-IP on a brand new Ubuntu 12.04 install. The program starts fine when I start it from the CLI, but if I try to make this startup script work it won't start. I got this script ...
1
vote
1answer
4k views

init.d script doesn't log to /var/log/boot.log

The script below is working fine at system startup. However, its log messages don't show in /var/log/boot.log, when the system boots. I compared it with other init.d scripts and couldn't reach any ...
7
votes
3answers
6k views

How to prevent Tor from starting automatically on Ubuntu server?

How do I stop Tor from starting automatically on startup? It is Ubuntu Server so I don't have any GUI.
0
votes
1answer
35 views

Ubuntu init.d configuration not starting Gerrit 2.11.4 at boot

I followed Gerrit's installation instructions. My gerrit.sh update was, as per instructions, to uncomment these 3 lines: # ======================== chkconfig: 3 99 99 description: Gerrit Code Review ...
1
vote
1answer
103 views

Upstart reports “Job is already running” but process doesn't exist, and no PID file

So, I have MiniDLNA installed, and recently have found that I cannot start it using Upstart. Running sudo start minidlna returns: minidlna start/running, process [num] But no process is started ...
0
votes
1answer
4k views

sudo service apache2 restart: already running

As the title says, when I run sudo service apache2 restart, the message returned says that Apache is already running. However, the service is stopped (if milliseconds later). If I run sudo service ...
2
votes
1answer
5k views

Deluge start-up script works but won't start daemon on startup

I've gone through the instructions here to configure Deluge, and I've also gone through these instructions to set up the necessary scripts. The username I chose for DELUGED_USER was the user name I ...
7
votes
1answer
5k views

How do I configure Apache to run multiple instances?

Specifically, I have two httpd.conf files: /etc/apache2/httpd.conf /etc/apache2/httpd_2.conf How should I modify the /etc/init.d/apache2 script so that instances of Apache will be invoked for both ...
0
votes
0answers
30 views

Service Start Order?

So I have tried reading and reading but I am so lost at this point around upstart. I have this service which exists in /etc/init/nzbdrone.conf. I "think" part of this runs upstart and some doesn't ...
1
vote
1answer
35 views

Running Watcher at startup

I need to monitor for changes across a folder and its sub-folders and am using Watcher for this purpose. No issues thus far. However, I want to have the Watcher daemon run on reboot. For staters I ...
0
votes
1answer
48 views

autofs is not able to mount the remote folder

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 ...
0
votes
0answers
60 views

slurmdbd service can't connect to MySQL at startup, but succeeds manually

I installed slurm-llnl and slurm-llnl-slurmdbd on a Ubuntu 14.04 workstation. I successfully configured SLURM, but am having trouble with the slurmdbd service and the mySQL database After a system ...
0
votes
0answers
238 views

/etc/init.d/functions: No such file or directory

I am trying to install virtual box version 5.0 on Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-91-generic x86_64) and I am getting the following errors: /usr/lib/virtualbox/vboxdrv.sh: line 85: ...
3
votes
6answers
29k views

init.d script startup problems

I Have this init.d script which I am trying to get to startup with ubuntu however it wont run at startup. It does work when i type "sudo /etc/init.d/couchpotato start" though. Any ideas on how to get ...
0
votes
1answer
57 views

Ubuntu service started from /etc/init.d ends up with the wrong PID

This question follows on from my previous question. To recap I want to use OpenResty rather than vanilla Nginx on my Ubuntu 14.04 server. I have complied OpenResty following the instructions here. ...
0
votes
1answer
16 views

Service won't start when using the service utility but works when calling the init script directly

I'm trying to run Mule on Ubuntu 14.04 as a service. I created the following init script (/etc/init.d/mule) #!/bin/bash JAVA_HOME=/usr/lib/jvm/java-8-oracle PATH=$PATH:$JAVA_HOME/bin # Set Mule ...
0
votes
1answer
39 views

Two different ways of starting a service. Why?

What are the differences between the two following ways or starting something, first being: /etc/init.d/redis-server start And second: /usr/bin/redis-server I've never really fully understood ...
0
votes
0answers
69 views

Problems adding service to init.d

The commands I used are below for anyone who wants to test them: My issue is that I used the commands to install a TeamSpeak 3 Server on Ubuntu 14.04 -- and they worked without fail. As of Ubuntu ...
1
vote
1answer
81 views

Service not starting at machine boot up - Ubuntu 14.04.1 LTS

I created Weblogic server as a service to start at boot up of machine by creating weblogic file inside directory /etc/init.d/ with below content: #!/bin/sh . /etc/default/weblogic start() { ...
0
votes
1answer
199 views

init.d startup script

I try to create a init.d service script for the glassfish software. But it seems like my understandings in the LSB init.d guidelines are not the best. This are the commmands the script should do: ...
0
votes
1answer
63 views

Isn't it counterproductive to have systemd, upstart and init.d all running at the same time in a system? [closed]

I've been reading about the many different start up methods on boot by Ubuntu. And it's great that things are moving forward, but right now we have three different ways to start processes on boot, all ...
0
votes
1answer
24 views

How to decide and apply priorties in /etc/rc0.d

I have script "backup-before-shutdown" which should be running before shutdown ! So I have created link to it in "/etc/rc0.d" I just want to know should I add some priorities (K,S, or some numbers) or ...
0
votes
1answer
53 views

sudo service status message missing in ubuntu 15.04

i made an update to ubuntu 15 i dont get status messages of the service system anymore. On the old ubuntu 14.04 when i did: $sudo service apache2 restart * Restarting web server apache2 ...
0
votes
1answer
296 views

/etc/init.d/rsyslog {start | stop | restart} : Need this to work

I have read the answer/comments for this thread "Diffrence between /etc/init.d/ssh start and service ssh start" But I need this /etc/init.d method to be working. I have some auto-generated scripts ...
1
vote
1answer
736 views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
1
vote
1answer
38 views

How can I make this deploy/init run as a non root user?

I have init script which should run as non root user. How can I make it? Ubuntu 12.04 #!/bin/sh DEPLOY_BIN=/usr/share/deploy/bin PID_FILE=/var/run/deploy.pid ...
0
votes
0answers
26 views

Is there any way to work out the boot order of services with upstart, systemd etc?

I'm having a problem with a chassis change on a remote host and need to know at which point it is failing. This was quite easy with init.d setup but the new system.d etc seem to make it impossible. ...
117
votes
3answers
70k views

What is the difference between /etc/init/ and /etc/init.d/?

What is the difference between /etc/init/ and /etc/init.d/? More generally, what meaning does the .d suffix convey to a directory?
0
votes
0answers
16 views

stop() function in init.d script

I am trying to create init.d script for my program. This is basically what I have now. case $1 in "start" ) sudo python /path ;; "stop" ) sudo pkill -f pidname;; esac ...
0
votes
1answer
58 views

How to run init.d script directly?

I'm trying to run /etc/init.d/mydaemon status but the systemd gets in the way with its own wrong status that can rely on pid files in case of SysV scripts (that init.d script uses no pid files). How ...
0
votes
1answer
65 views

Why is `service x11-common stop` timing out?

Tried to install a package that had X11 as a dependency on a server (Installing erlang on Ubuntu 15.04 Vivid from DigitalOcean). It's not a production system, so wasn't too worried, but one or more of ...
49
votes
6answers
82k views

Command to list services that start on startup?

Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.
0
votes
1answer
91 views

setxkbmap is not running on startup in rc.local

I am trying to run setxkbmap -option caps:escape in my rc.local file under /etc/init.d/ in Kubuntu 15.04, and no matter where I put it, beginning or end, or with exec in front of it, it is not ...
1
vote
0answers
105 views

Change init script sequence number with update-rc.d

I've just installed apache2 in a LUbuntu 15.04 distribution using the command apt-get install apache2. By default the service is configured to start with a sequence number of 2: ls -l ...
0
votes
1answer
93 views

Clean, safe way to auto restart (and monitor) daemons/services

At the moment I am using init.d-scripts for starting services like TeamSpeak or MineCraft. Sometimes a server application stops because of some failure or it is auto-stopped, because of some plugin. ...
1
vote
1answer
24 views

Run daemons before logging-in

I have some daemons to run once boot is finished, the main one is a Wifi AP. My question is: how to ensure the daemon run even if I'm not logged-in ? EDIT init.d: in spite of gøøg1ing about, I dont ...
0
votes
0answers
186 views

Service not stopping properly on shutdown

I used the script here to create a service to start and stop a Minecraft server on boot and shutdown. The script basically starts the server jar file in a GNU screen (it also does backups and updates ...
0
votes
1answer
1k views

start-stop-daemon not removing old pid file

I have an init script that I've written to start and stop an application as a service. Code is here: #! /bin/bash PID_FILE=/var/run/myservice.pid case "$1" in start) echo "Starting up ...
14
votes
2answers
14k views

How do I set up a service?

I have a script that I would like to run as a service on my Ubuntu Server 11.04 headless box. That is, I want to have the correct files under /etc/init.d/ and to be able to control it via the service ...
1
vote
2answers
40 views

Ubuntu 12.04 and SSH: Automatically shutting down another computer when powering off

I want to shut down another computer in my network when shutting down my own. For that I have created a script that logs into that machine through ssh and powers it off. (SSH keys are set up, so no ...
0
votes
0answers
284 views

Why start-stop-demon doesn't signal property that daemon has started/stopped

Here's a part of the daemon script for BtSync at /etc/init.d/btsync: do_start() { start-stop-daemon --start --verbose --oknodo --background --user $CHUID --user $CHUID --pidfile $PIDFILE --exec ...
2
votes
0answers
3k views

/etc/init.d/openvpn not starting automatically but can be started manually

This is about init.d or Upstart init or something else, maybe, I think. But only OpenVPN is affected so far, after upgrading from Ubuntu 12.04 LTS to Ubuntu 12.10 on my VPS. The problem is: OpenVPN ...
0
votes
0answers
79 views

systemd not invoking init.d script upon reboot

I have a server running Ubuntu 15.04 with few VMs One of the VMs needs USB console from a device connected to host, so I created simple script which adds/removes USB console to/from VM when USB is ...
0
votes
1answer
148 views

bind9 starting with boot

How to add bind9 to start with Ubuntu boot? I search a lot and didn't find anything useful. Maybe something related to init.d, right?
1
vote
1answer
92 views

rc.local is not restored after initscripts reinstall

I was having a hard time trying to make rc.local run on startup, which i still haven't achieved, and would appreciate any help with that. The main problem right now is that I decided to follow this ...
2
votes
0answers
145 views

Different results of 'ps aux | grep x' if entered manually and done via script

It was probably a bad method, but I was running ps aux | grep x | wc -l as part of the if statement in a script. When I ran this from the command line as a regular user, the result would be 1 if the ...
2
votes
2answers
270 views

Why does my init.d script show up under --status-all, but I can't otherwise control it?

I get the following (truncated) output from --status-all $ service --status-all [..] [ - ] ossec [ - ] ossec-hids-authd [..] But I can't access it through service: $ service status ...
4
votes
2answers
4k views

“A start job is running for /etc/rc.local Compatibility”: how to fix?

I just upgraded to Ubuntu Vivid (15.04) today, and after the restart I experienced a very long boot process. My laptop usually boots in 5 seconds or less, and now it hadn't finished even after a few ...