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
9 views

HAproxy failed to start

HAProxy is configured to use as load balancer for geoserver i followed the procedure explained in this http://geoserver.geo-solutions.it/edu/en/clustering/apache/haproxy.html page and i edited ...
-1
votes
1answer
14 views

which file in ubuntu defines meaning of each run level?

In redhat based linux, there is a file called inittab in which you can see the meaning and definition of each run level. Is there any file like this in Ubuntu? I know what each run level means in ...
1
vote
0answers
12 views

Starting Network Audio System via its init.d script fails but works when using start-stop-daemon on the command line

I'm running Ubuntu 13.10 (saucy salamander) and need the Network Audio System service (package nas, version 1.9.3-6) which relies on /dev/dsp and /dev/mixer so I installed the OSS Proxy Daemon osspd ...
0
votes
0answers
23 views

Ubuntu precise 12.04 init.d issue after installing percona 5.5

First of all, it keeps on starting mysqld_safe even if it is not provided by my my.cnffile. I found this in the init.d script: "${PERCONA_PREFIX}"/bin/mysqld_safe > /dev/null 2>&1 & And ...
0
votes
1answer
50 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 ...
0
votes
0answers
37 views

How to get update-rc.d to order init scripts as defined in the LSB header

I'm getting really frustrated trying to get some init scripts to work. I've read up on LSB and the ubuntu man pages, and AFAICT, to get my init scripts to run at a specific point in the startup ...
1
vote
2answers
53 views

What's the best way to make a Qt executable program run as a service in Ubuntu

I've written my Qt code for an embedded system which is running on Ubuntu. I want to run my program as a service in Ubuntu so I can stop or start it using monit. I've seen some people creating a new ...
1
vote
0answers
26 views

log files prevent clean root umount

My root fs is always dirty after shutdown. To see why, I added a couple of lines into /etc/init.d/umountroot: /usr/bin/lsof / | /usr/bin/awk '$4 ~ /[0-9].*w/' ... mount -o remount,ro ... /bin/bash ...
0
votes
0answers
14 views

how to start interactive shell during shutdown?

I want to start a shell after /etc/init.d/umountroot stop . I tried: /bin/bash </dev/console >/dev/console 2>&1 But it's detached from tty and typing in it is unreliable.
0
votes
0answers
45 views

How to switch between two internet connections without rebooting?

I have two internet connections, one with the static IP and the other with the PPPoE.When my static IP connection is not working, I switch to the PPPoE connection. I change my connection this way, ...
0
votes
1answer
54 views

initclt not seeing init script in Ubuntu 12 64bit

I created an init script in LSB format, and copied it to the /etc/init.d directory. I can manually start, stop, status the service and all works fine. I then try to set the service to auto stop/start ...
0
votes
0answers
44 views

How can I fix this vncserver startup script?

I've been working on getting multiple remote desktops up-and-running on my new installation of Ubuntu 12.04.3 by following this guide: ...
2
votes
2answers
172 views

How disable programmatically notebook built-in keyboard before login screen

How can I disable a notebooks built-in keyboard - before the login screen. I have a non functioning built-in keyboard on my notebook. In it's current state it types characters randomly. I am using an ...
0
votes
1answer
179 views

An alternative to init.d?

Is there an alternative to Ubuntu's init.d? Like a way of starting and stopping daemons that don't require those monstrous init.d scripts: # cat /etc/init.d/skeleton #! /bin/sh ### BEGIN INIT INFO # ...
1
vote
1answer
55 views

need help with Init.d script

I am trying to run a wireshark capture as a daemon. I found this init.d script. http://new.networkprotocolspecialists.com/downloads/tsharkd it works to start dumpcap, but when I try to use sudo ...
0
votes
1answer
67 views

Celeryd not running at startup

I ran sudo update-rc.d celeryd defaults All good. I ran: /etc/init.d/celeryd start All good. I restart machine. All bad. sudo /etc/init.d/celeryd status celeryd not running (no ...
0
votes
1answer
115 views

Running a script in a screen at start up

I have a Python script that I wish to keep running all the time on an Ubuntu 12.04 machine, and I am doing so by adding an init job that runs a short script that checks for a screen session and if not ...
0
votes
0answers
96 views

How to save all KVM-guests on shut down or restart?

I wrote a short script which was supposed to save the state of all my running KVM-machines (save-vms.sh): #! /bin/sh suspend_vms () { for output in $(virsh list --state-running --uuid) do ...
1
vote
0answers
166 views

UPSTART services all hang when stopping (stop/waiting)

I am using Ubuntu 13.10 After an IPL, there are many run once services that hang, they are all in STOP/WAITING status. Also, if I try to stop any normal service like apache2, mysql, vsftp I get the ...
1
vote
0answers
359 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
176 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 ...
5
votes
1answer
843 views

service vs. initctl

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
52 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
926 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 ...
1
vote
0answers
135 views

how to start service after openvpn connects

I'm trying to setup deluged to run after OpenVPN makes a connection to my VPN. From researching, it looks like there isn't a reliable "start on" status with openvpn, so the next solution is to put the ...
0
votes
1answer
213 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?
19
votes
4answers
20k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
4
votes
1answer
3k 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
149 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 ...
3
votes
1answer
7k 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
357 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; ...
1
vote
1answer
153 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
0answers
74 views

The “Boot Up Manger” (BUM) application messed up my Upstart scripts. How can I fix?

The "Boot Up Manger" (BUM) application messed up my Upstart scripts. How can I fix? My system still works when I shutdown and startup, but I see some upstart warning messages during shutdown that I ...
0
votes
0answers
148 views

rdesktop and init.d

Good day, I'm attempting to boot to an rdp session using init.d. So far, my script looks like this: #!/bin/sh /usr/bin/rdesktop -f xxx.xxx.xxx.xxx start I've used sysv-rc-conf to set the ...
0
votes
2answers
319 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: ...
1
vote
1answer
160 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
291 views

Shutdown slow: unknown job s35networking

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
575 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
123 views

Why won't honeyd start on boot?

I have installed honeyd on my machine and configured the appropriate settings to get it to run as a service. The service will run fine and functions as expected if I start it with command: sudo ...
1
vote
0answers
97 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
0answers
161 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
2k 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
121 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 ...
3
votes
2answers
2k 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
4k 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 ...
3
votes
1answer
260 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 ...
1
vote
2answers
5k 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
661 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
654 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 / ...
4
votes
3answers
13k 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 ...