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
20 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 ...
0
votes
1answer
25 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
0answers
23 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
24 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: $...
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?
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 ...
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 ...
1
vote
0answers
52 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
1answer
159 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. ...
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?
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 ...
1
vote
0answers
152 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
1answer
96 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 ...
0
votes
0answers
322 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 ...
0
votes
0answers
153 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 ...
1
vote
1answer
274 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 ...
0
votes
0answers
156 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
59 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
817 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/...
1
vote
1answer
388 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
178 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
609 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
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
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
137 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
61 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:$...
0
votes
1answer
135 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
53 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. ...
0
votes
0answers
19 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 However,...
0
votes
1answer
81 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
105 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 ...
0
votes
1answer
175 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 ...
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 ...
1
vote
0answers
161 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 /etc/rc?.d/*...
0
votes
1answer
245 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
27 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
242 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 ...
1
vote
1answer
4k 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 ...
0
votes
0answers
485 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 $...
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
1answer
397 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
136 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
208 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 ...
0
votes
1answer
71 views

Run the script with screen

I write a script to run p2pool. I can not understand how to add a run through the "screen -dmS"? #! /bin/sh ### BEGIN INIT INFO # Provides: p2pool start # Required-Start: $...