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

learn more… | top users | synonyms

0
votes
0answers
16 views

Problem with startproc command

I have a problem with startproc command Even though the package sysvinit-utils is installed I get an error : Starting DLS Daemon ./dls: line 131: startproc: command not found failed Here is the ...
1
vote
1answer
5k 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 ...
0
votes
1answer
23 views

rTorrent init script not working

I'm trying to set up a Linux box with rTorrent and ruTorrent. I've installed rTorrent and it launches just fine using my own user account. I've created a new user account named rtorrent to run ...
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 ...
3
votes
3answers
11k 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 re-...
0
votes
0answers
22 views

Boot counter script not working

I'm using Ubuntu 14.04.04 I've written a simple script for storing in a file the number of times the sistem has been turned on and the time and date of the last boot #!/bin/bash file="/$HOME/bootcnt....
0
votes
0answers
23 views

How does display a Error/Failure message for a Daemon service starting fail using Systemv init script

I have a USB driver program to detect devices from a particular PID & VID pair, I wrote a SystemV init script for ubuntu 14.04 using default basic init script located inside /etc/init.d/ directory....
1
vote
2answers
54 views

Script not being started at boot

I have the following script in /etc/init.d/minecraft: #!/bin/bash # /etc/init.d/minecraft # version 0.4.1 2015-05-07 (YYYY-MM-DD) # ### BEGIN INIT INFO # Provides: minecraft # Required-Start: $...
3
votes
0answers
49 views

Ensure that a (potentially long) root script execute to completion before power-down [duplicate]

I want to run a simple rsync-based bash script as root when a power-down cycle initiates from either: a login interactive shell, or a gui session, or a machine boot state where no login-user has ...
1
vote
2answers
2k views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
1
vote
1answer
27 views

Does rng-tools run at startup?

I installed rng-tools and noticed that is has a script in /etc/init.d. Does that mean that it will run at boot? Or do I still have to run rngd -r /etc/random or /etc/init.d/rng-tools start?
22
votes
5answers
49k views

How to correctly add a custom daemon to init.d?

I've got a 3-rd party proprietary application server daemon which can be started and stopped by couple of command lines. I need this daemon to start when the system starts up and correctly stopped on ...
0
votes
0answers
36 views

Lubuntu stock in start up

In lubuntu 16.04 lts, my mouse disappeared so I follow these commands to make it work and it worked fine. now after installing some updates and rebooting the computer, it stock in start up. all ...
0
votes
0answers
21 views

Service script not running

I have a shell script which is running fine if I start by this way sudo /etc/init.d/test. Suppose If I try with sudo service test start the service is not starting. For eg /etc/init.d/test start The ...
4
votes
1answer
858 views

Why does $ service --status-all output to STDERR instead of STDOUT?

This is very unintuitive. e.g. When a user tries to: # service --status-all | grep postgres This won't work... The only way to grep `service' is: # service --status-all 2>&1 | grep ...
3
votes
6answers
35k 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 ...
1
vote
0answers
51 views

Difference in output between init.d script and Service call for tomcat6

I've upgraded a 12.04 machine to 14.04 using do-release-upgrade. All went well, as usual, but this particular machine has a very strange issue afterwards; See the output for service tomcat6 status: ...
0
votes
2answers
1k 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 ...
0
votes
1answer
153 views

How to change the order of execution of services at startup?

I have some services in my init.d folder for e.g. hdfs, zookeeper, elasticsearch, hbase and so on. Now, I have added all those services to startup by doing the update-rc.d 'service' defaults command. ...
1
vote
2answers
56 views

Moving from Amazon Linun to ubuntu, now my init script isn't working.

We are in the testing phase of moving from amazon linux to ubuntu for some of our servers. We have a mono app that is run as a service and on the amazon linux box it ran fine. I know that some ...
0
votes
0answers
319 views

Active: active (exited) Service plexconnect starts exited

I have installed a python script called "plexconnect" which is basicly a script to trick my apple tv3 in to looking elsewhere for its trailers. Source: https://github.com/iBaa/PlexConnect Then i made ...
1
vote
0answers
148 views

MySQL Server 5.6 fails to install on Ubuntu Wily

I have Ubuntu 15.10 (wily) and am trying to update MySQL to the latest version. When I run aptitude safe-upgrade, it fails like so: Errors were encountered while processing: mysql-server-5.6 mysql-...
0
votes
0answers
11 views

cron running init.d reload and getting exit code of 2 [duplicate]

I am having cron run a shell script which includes this line... /etc/init.d/nginx reload but it is giving me an exit code of 2...What can I do to reload nginx from cron successfully?
4
votes
3answers
7k 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 ...
0
votes
1answer
95 views

Database not starting in init.d

I am attempting to setup a small postgresql database on a beaglebone black. The application is slow so I am storing the database on a 64GB microsd card. I formatted the drive, mounted it all ...
2
votes
2answers
5k views

Problem with NIS configuration

I tried to configure NIS in a server and a client both running Ubuntu 14.04 following this guide and this official guide. After a reboot the client machine got locked with this message several times ...
15
votes
4answers
61k views

How to automatically restart Tomcat7 on system reboots?

I have installed Tomcat 7 on Ubuntu 12.04 LTS which runs on an Amzon EC2 instance. Now I wish tomcat should restart automatically on system reboot. I read this blog which suggest adding below script ...
0
votes
1answer
132 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
152 views

Windows always open very small and in top-left corner of screen, even when full-screen

I'm a very new Gnome-desktop/X developer, so please be kind! We develop a "kiosk" style digital signage product that I'm porting over to Ubuntu from CentOS-6/Gnome-2 and CentOS-7/Gnome-3. The basic ...
4
votes
3answers
28k 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 /etc/init.d/transmission-...
5
votes
5answers
12k 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 ...
9
votes
3answers
7k 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.
1
vote
1answer
267 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
382 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 (...
2
votes
1answer
6k 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 ...
8
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
154 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
58 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
125 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
810 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: /etc/init.d/...
0
votes
1answer
177 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
47 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
54 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 ...
1
vote
1answer
210 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() { ...
1
vote
1answer
602 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
99 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
32 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
136 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 ...
1
vote
1answer
820 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
60 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 PATH=/bin:/usr/bin:/sbin:/usr/sbin:$...