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

learn more… | top users | synonyms

1
vote
0answers
531 views

Changing a start up init.d script to use with new ubuntu

This is my code. I would like to change it to use with new versions of ubuntu. The thing is ubuntu doesn't have chkconfig any more. Also I heard that new ubuntu uses upstart instead of init type start ...
0
votes
1answer
362 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
11
votes
1answer
6k views

service vs. initctl [duplicate]

Why are some deamons run out of service and some out of initctl? Do both tools do the same thing and it is just a matter of personal preference of the user what they will use? E.g. sudo service --...
0
votes
2answers
100 views

Making a service from the project

Hi I have a java server(it listens) which runs when I do: ant compile jar run in the terminal What I want to do is sudo service myproject start so that I won't have to be in terminal(when I do ctrl+c ...
2
votes
2answers
2k views

How to detect which init script starts zram?

Due to a zram bug leading to machine lock-ups, I've had to disable zram. I thought dpkg --purge zram-config as well as commenting any reference out of /etc/rc.local would do the trick, but the module ...
0
votes
1answer
388 views

Not using network-manager and modem-manager

What is the best way to prevent network-manager (and modem-manager for that matter) from starting?
5
votes
1answer
8k views

Script at /etc/init.d does not run at start-up

I wanted to run my Dropbox daemon automatically at start-up. I did it via terminal, that is, I (1) moved it to /etc/init.d, (2) made it executable, and (3) ran sudo update-rc.d dropbox.sh defaults. So ...
0
votes
1answer
493 views

How to create a init.d script for openssh-server which was compiled and installed from source using configure + make + make install?

I have installed openssh-server in my Ubuntu PC using apt-get install openssh-server. The version is 5.9. Now, I would like to compile and install openssh-server version 6.2 from source codes. I have ...
14
votes
1answer
41k views

uninstall init.d update-rc.d remove

I installed an init.d script with this command: sudo update-rc.d mongodb defaults 98 02 I want to uninstall it, so I'm planning on running: sudo update-rc.d -f mongodb remove I'm concerned ...
1
vote
1answer
1k views

How to fix DHCP and TFTP server?

I do a job in which I need TFTP and DHCP server. The DHCP settings I should adjust is (I have DHCP and DHCP 3, not sure where to set): default-lease-time 21600; max-lease-time 43200; ...
2
votes
1answer
546 views

How to change shutdown script timeout?

I have a script running at shutdown of my server, it was added to rc.d scripts with update-rc.d local.shutdown stop 20 0 1 6 . The problem is that this script takes a few minutes to complete it's ...
0
votes
2answers
962 views

I can't start deluge with init.d with the ability to log

I try to set fail2ban to ban ip which mistype my password on the deluge-web interface, but I have a problem with the logging. I try to set deluge to log the errors according to this website: http://...
1
vote
1answer
284 views

Am I using upstart correctly?

I'm trying to write a startup script for my Ubuntu 12.04 desktop that pings my Netgear router every 30 seconds (this is necessary as a nasty workaround for a separate problem I'm having). I read this ...
3
votes
0answers
354 views

Shutdown slow: unknown job s35networking [closed]

Since I've upgraded to Ubuntu 13.04 from 12.04 LTS, I get this error when I shutdown the pc: rather than invoking init scripts through /etc/init.d, use the service(8) utility service S35 ...
2
votes
2answers
1k views

The system does not go down

/etc/init.d/.depend.stop My Ubuntu 12.04 The system shuts down normally not get error message can't not open / etc / init.d / .depend.stop no such file of directory See picture What can ...
1
vote
0answers
147 views

How to run a script immediately after the start splash screen appears?

I'm using Kubuntu 12.04 LTS. I'd like to know where I can put the script of mine described below to run immediately after the splash screen of the initialization begins. #!/bin/sh contrast=`echo "...
1
vote
1answer
442 views

Why can't we remove bluetooth service the reguler way?

The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
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 ...
1
vote
1answer
198 views

Is $RUN a built in command to execute?

I have a .sh script that starts a java service of mine (I didn't write this). Can someone explain how this actually executes? start() { .. .. # setup classpath . $ROOT/bin/_cp.sh RUN="...
8
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.
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-...
3
votes
1answer
623 views

Simplest way to make a command run after system reboot

I have a server which exists to run one little Django application. If the server reboots, I want Django to start again: nohup /opt/myapp/manage.py runserver ... I'm having trouble finding a simple ...
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 ...
1
vote
2answers
2k views

Cannot automatically start JIRA via init.d script

I am running Atlassian JIRA on Ubuntu 12.04 LTS (Precise Pangolin). I would like to automatically start JIRA whenever the system boots. For this purpose, I created script jira in /etc/init.d, similar ...
1
vote
3answers
3k views

Ubuntu way to run sysctl -p on each boot?

I made some changes to sysctl.conf but now need to run sysctl -p on each boot. I can always create an init script to have it run automatically on boot, but I was wondering if there was an Ubuntu / ...
13
votes
4answers
59k 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 ...
3
votes
2answers
2k views

How to move over from init.d to upstart for nginx

I have an init.d script for nginx that normally works fine. However, after a reboot it doesn't work properly and the worker process would die leaving just the master process. nginx has some mongodb ...
0
votes
1answer
3k views

Where is /etc/inittab in Ubuntu? [duplicate]

Possible Duplicate: Where is the /etc/inittab file or how to set the default runlevel I have Ubuntu LTS 12.04 32 bit operating system on my laptop. But I could not find /etc/inittab. Where is ...
4
votes
1answer
277 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 ...
2
votes
1answer
4k views

What does `Unknown id` mean?

When I start or reboot my Ubuntu Server I get a lot of messages starting this or that but towards the end I get a message Unknown id: /home/kevin/riak-1.2.1/dev/dev1/bin/riak. I checked the <path&...
1
vote
1answer
2k views

What is the current state of Ubuntu's transition from init scripts to Upstart?

What is the current state of Ubuntu's transition from init.d scripts to upstart? I was curious, so I compared the contents of /etc/init.d/ to /etc/init/ on one of our development machines, which is ...
3
votes
0answers
4k 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
1answer
296 views

Apache doesnt start after upgrade to 12.10

during the upgrade process I was wondered for "replace init.d", and I said "keep", not replace. Now, apache2 is not working. I tried removing and upgrading again, but doesnt start. I have this error ...
10
votes
3answers
2k views

Replacing my firewall rules

I've had an init script for many years that configures iptables for me and it has worked like a champ until now. After upgrading from 10.04 to 12.04 I started having firewall problems where the ...
2
votes
1answer
2k views

specify user for init.d

I have a init.d script that start|stops|restarts a daemon using the start-stop-daemon. This daemon is always started as root. I want to be able to specify the user that the init.d script will use to ...
0
votes
1answer
1k views

Unable to restart SSH daemon: Missing init script

When I try to restart the ssh server I get the following output: bash: /etc/init.d/ssh: no such file or directory
7
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 ...
5
votes
1answer
3k views

SABnzbdplus will not start on boot but running the init.d script runs fine

I am running the Ubuntu 12.04 server edition (static LAN IP) and was tying to install SABnzbdplus using the apt as per instructions here: Ubuntu PPA Repository Installation has gone smoothly and the ...
7
votes
1answer
6k views

How to start / stop Dropbox at a specific time

I have setup a service on my Ubuntu 10.04.4 LTS server, which works when started and stopped manually using sudo service <service> start etc. However I would like to have the service (dropbox ...
1
vote
1answer
5k views

Start-up problems - some daemons not starting

This is a new installation of 12.04 and I can see that my machine is using both the old sysvinit method and the new upstart method to launch programs on start-up. According to the man page for ...
0
votes
2answers
361 views

Can't run init script on boot after another init script

I have three init scripts and the Broker init script runs fine, but when I try to run the Consumer init script and then the Data Collector init script, the only process that is running is the Broker. ...
0
votes
1answer
2k views

Boot order of MySQL

I have a conflict with two programs in Ubuntu 10.04. I have configured an init.d file that boots up a program. However, this program requires MySQL to be running before it starts. When I boot the ...
2
votes
1answer
405 views

How to auto-install runlevel control for existing service/daemon?

Need to install a service/daemon (in this case bind9, a DNS service) runlevel control, aka "rc" control (/etc/rc*.d and such). bind9 came pre-installed on my 11.04 system, but without aforementioned ...
5
votes
2answers
7k views

How can I run an application in gnome-terminal automatically when booting?

I need to run an application automatically when Ubuntu starts. I've got this app running without opening the terminal. However, this application displays some information in a terminal window and, ...
1
vote
1answer
5k views

vncserver in rc.local will not run at boot

I'm using /etc/rc.local and here is the current contents: Okay, for some reason the formatting here isn't making a codeblock and instead is making everything bold and 3x the size. Those who are able, ...
0
votes
2answers
4k 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 ...
30
votes
15answers
61k 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
1answer
301 views

/etc/init.d Character Encoding Issue

I have a script in /etc/init.d on an EC2 image that, on machine startup, pulls in source code via SVN, builds it, and then runs it using Ant. The source code is Java. Within this code is a call to the ...
0
votes
1answer
640 views

Alternative way to start mysql server other than upstart?

I have a chrooted 10.04 LTS installation on a NAS, it works great but breaks Upstart very badly. MySQL only works via Upstart these days, so I created a workaround to start like this: dtach -n /opt/...
7
votes
3answers
31k 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 that?...