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

learn more… | top users | synonyms

3
votes
0answers
42 views

How to execute (potentially long) root script to completion before power-down

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
16 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
19 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
43 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
72 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
55 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
122 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 ...
0
votes
1answer
56 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
165 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
105 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
172 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
120 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
48 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
91 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
539 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: ...
1
vote
1answer
283 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
134 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
37 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
48 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
191 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
459 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
29 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
84 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
108 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
55 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
1answer
112 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
45 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 ...
0
votes
1answer
67 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
96 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
146 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
682 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
150 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
179 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
26 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
222 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
3k 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
422 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
0answers
91 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
294 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
124 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
184 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
63 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: ...
0
votes
0answers
134 views

live555ProxyServer as daemon service

I would like to make live555ProxyServer as a daemon service which would start each time my pc reboots. How do I properly implement start and stop in init.d script file? This is what I have right now ...
0
votes
1answer
915 views

Ubuntu openvpn daemon

I've installed openvpn client in to my ubuntu I've downloaded my cerfification files and I was also able to set up client config file. When I start open vpn from terminal like so openvpn --config ...
2
votes
2answers
399 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 ...
1
vote
1answer
641 views

Problems updating plexmediaserver on Ubuntu 15.04

I followed the guidelines in this post - @ - but it seems that this has brought about a new problem, I can no longer update plex due to the error "E: The package plexmediaserver needs to be ...
4
votes
3answers
6k 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 ...