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

learn more… | top users | synonyms

0
votes
1answer
29 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
28 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
44 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
208 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
97 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
55 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
38 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
67 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
80 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
185 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
23 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
61 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
51 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
37 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
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
25 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
15 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
56 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
61 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
88 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
1answer
277 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
104 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
92 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
185 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 ...
0
votes
0answers
272 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
39 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
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
144 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
87 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
140 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
48 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
86 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
490 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 ...
0
votes
0answers
55 views

Cannot find log of application started through init.d script

I have created a .deb package of my scala application using sbt. I have successfully installed the application and am able to run it properly. Now, I want to start my application on system startup. ...
2
votes
2answers
266 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
565 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
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 ...
0
votes
1answer
261 views

How do I create a script to restart a service every two hours? [duplicate]

I want to make a simple init.d file that makes it possible for me to reset a trial service that I'm using. I am currently using CodeSys and the startup script cuts me off after 2 hours, so I need to ...
0
votes
1answer
154 views

Accidentally deleted my /etc/init.d folder from system

I know this is really bad, but I have accidentally deleted the init.d folder from my system. I am using VMWare player to load Ubuntu 14.04 LTS. Now my system is not starting properly. I don't have CD ...
1
vote
1answer
49 views

init.d script + upstart help/advice

I have written up a Shell init.d script named "My_first_initd_script". The script works great when I run it from the /etc/init.d/ -working in the foreground. I would like to ...
7
votes
2answers
7k views

Problems starting plexmediaserver on Kubuntu 15.04

I have recently installed plexmediaserver 64-bit from the plex site on my Kubuntu 15.04 laptop and am unable to start. I believe it is in the change from how init scripts work? If you look at the ...
1
vote
1answer
402 views

Init file in init.d calls using sudo in script.sh give error sudo: no tty present and no askpass program specified

I an trying to make a script that launches on boot to connect to my personal VPN. I have an init file: /etc/init.d/vpnstartup which calls my vpnon.sh script on boot with the commands: case "$1" in ...
0
votes
1answer
54 views

Init.d code not quite working

The filtered out data from a MQTT live stream is dumped into a csv file named mqtt.csv and the dumping process is done by executor_start_up_job.txt which is written in BASH (has a shebang). I want to ...
2
votes
1answer
442 views

How does the Ubuntu boot process work?

I have read many articles about the Linux boot process. As I understand the Linux boot process is something like this : BIOS (UEFI) → MBR → grub → Kernel → init What I really don't understand ...
0
votes
1answer
55 views

PHP & Init script

I've written a php job handler for mediawiki. The script will spawn 4 PHP processes (Scanner, and three workers). youri@pewpew:~$ ps -aux | grep php www-data 1579 0.5 0.2 263888 12752 ? SN ...
1
vote
0answers
110 views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...