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
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
8k 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 ...
1
vote
2answers
30 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
9 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
24 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 ...
6
votes
1answer
4k 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
1answer
21 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
25 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 ...
1
vote
0answers
52 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
73 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 ...
2
votes
2answers
1k 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 ...
7
votes
2answers
4k 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 ...
0
votes
1answer
32 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: ...
6
votes
3answers
30k views

How to create init.d startup script

I just want to run a very simple command on startup. How can I do that? I've searched google and it has very complicated examples, but what I need is just run this script on startup. How can I do ...
12
votes
2answers
12k 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 ...
0
votes
0answers
32 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 ...
3
votes
1answer
372 views

Is init.d “safe” enough to use or should i use `runit` or `daemontools` on a server

I am looking to deploy my application on a server on which I would have no access in the future. I would like to have an indication of start-up errors generated by my program in particular and the ...
0
votes
1answer
88 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
38 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. ...
7
votes
4answers
38k views

How to automatically restart Tomcat7 on system reboots?

I have installed Tomcat 7 on Ubuntu 12.04 LTS which run on an Amzon EC2 instance. Now I wish tomcat should restart automatically on system reboot. I read this blog which suggest adding below script to ...
95
votes
3answers
50k 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?
1
vote
1answer
334 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 ...
18
votes
9answers
24k views

haproxy doesn't start

Installed a new Ubuntu 10.04 server and logging in as root I installed haproxy using apt-get. I can run haproxy directly as a daemon but when I do /etc/init.d/haproxy start nothing happens.. not even ...
0
votes
2answers
3k views

What startup system does ubuntu use?

i've seen several ways to add programs or daemons to startup in Ubuntu 12.04 but I am kind of perturbed with the meaning of each method, basically because i dont understand the underlying startup ...
4
votes
2answers
14k 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 ...
-1
votes
2answers
49 views

script wont execute after boot raspberrian os [closed]

I have created the following script: myserver.sh /home/pi/Downloads/ngrok http -subdomain=anewdomain 80 which i have place inside init.d folder. My problem is that it will not be executed after ...
38
votes
5answers
57k 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
145 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 ...
5
votes
2answers
5k 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
66 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
32 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 ...
1
vote
1answer
160 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 ...
1
vote
1answer
98 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
43 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 ...
12
votes
1answer
5k views

How do I set which PostgreSQL version is to be used by default?

I have 2 different versions of PostgreSQL installed on my system (Ubuntu Lucid): /var/lib/postgresql/8.4 /var/lib/postgresql/9.0 By default, when I run a PostgreSQL command such as createdb or ...
4
votes
1answer
178 views

How to restart colord

A tiff security update came out today for 12.04 and colord is still running with the older shared library # lsof -n | grep DEL | grep /lib colord 3454 colord DEL REG ...
0
votes
1answer
31 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 ...
26
votes
15answers
49k views

Can't start mysql - mysql respawning too fast, stopped

Today I did a fresh install of ubuntu 12.04 and went about setting up my local development environment. I installed mysql and edited /etc/mysql/my.cnf to optimise InnoDB but when I try to restart ...
2
votes
4answers
8k 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 ...
2
votes
1answer
872 views

How to get rid of cloud-init?

I'm using Ubuntu 14.04 image as my base box for vagrant. Unfortunately this base box contains cloud-init which causes many problems during starting-up the machine: ...
0
votes
0answers
79 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 ...
1
vote
1answer
1k 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 ...
2
votes
0answers
19 views

Deluged Upstart not starting [duplicate]

Setting up a new ubuntu server installation (14.04.1), I have been completely unable to get deluge to start as a daemon at system startup. Originally tried following this set of instructions: ...
0
votes
1answer
295 views

What could cause “Waiting for network configuration” + 2 minutes unskippable hanging at boot when no network interfaces are configured?

After installation of a bunch of unknown programs (the program causing the problem must have been in the long list of dependencies, /var/log/dpkg.log contains > 38000 entries for the relevant dates) ...
1
vote
2answers
72 views

Which package provides the Postgresql init scipt?

If I haven't got /etc/init.d/postgresql file in what package could I find it?
1
vote
1answer
73 views

Start script on boot up?

I want to run a script when the system starts. The script is: #!/bin/bash gnome-terminal --tab -t "MyPC" -e "sh -c 'nohup firefox & nohup gedit & bash'" --tab -t "MYPC2" -e "sh -c 'ls -al;ls; ...
1
vote
0answers
465 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 ...
0
votes
0answers
32 views

gmote server as a daemon service

I need some help to set G mote Server as a daemon so that it can start at the boot of my system. I'm using lubuntu latest version. I alreay tried to write a script into /etc/init.d using skeleton as a ...
0
votes
0answers
49 views

Pure-FTPd with virtual users

I recently setup a pure-ftpd server, and I'm wondering about how I would include virtual users within the service. I would normally have to run the program with -l puredb:/etc/pureftpd.pdb. How would ...