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

learn more… | top users | synonyms

1
vote
2answers
21 views

Ubuntu equivalent of CentOS success / failure

A lot of services in CentOS look like this (except green and red, respectively): $ sudo service blah start Starting blah: [ OK ] $ sudo service notrunning stop Stopping notrunning: ...
0
votes
2answers
30 views

init.d scripts and rc folders

I am wondering why not all scripts placed in init.d folder are in rc folders eg. system cups is in init.d but there is not in rc folders? I don’t know if I understand it right. When I want to ...
1
vote
1answer
28 views

Deluge start-up script works but won't start daemon on startup

I've gone through the instructions here to configure Deluge, and I've also gone through these instructions to set up the necessary scripts. The username I chose for DELUGED_USER was the user name I ...
0
votes
0answers
10 views

Sickbeard start service on boot not working: Permissions issue?

I've just installed Sick-Beard on my server. Starting the service via SSH works just fine, as I issue the command sudo service sickbeard start However, I can't get the service to start on boot. ...
0
votes
1answer
16 views

probleme with gdm

I have a problem with gdm , when I run this command sudo /etc/init.d/gdm start I got this message /etc/init.d/gdm: 79: /etc/init.d/gdm: syntax error: "fi" unexpected (expecting "}") So, can ...
-1
votes
0answers
10 views

Unable to unpack opensemanticsearch solr package // missing LSB information

i am trying to install opensemanticsearch Solr based .deb. This is the error i get. I have a solr-tomcat installed on AWS ubuntu 14.0.4 instance Preparing to unpack .../ubuntu/solr_14.09.06_all.deb ...
0
votes
1answer
117 views

init.d script doesn't log to /var/log/boot.log

The script below is working fine at system startup. However, its log messages don't show in /var/log/boot.log, when the system boots. I compared it with other init.d scripts and couldn't reach any ...
0
votes
2answers
72 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
0
votes
1answer
42 views

Why a service in init.d and not in rc*.d started?

I have a configured and working service script myservice in the /etc/init.d and in /etc/rc*.d directories of an Ubuntu 13.10 distribution. Removing the links in /etc/rc*.d using update-rc.d -f ...
1
vote
2answers
94 views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
0
votes
1answer
37 views

How do I restart vsftpd?

I am using Lubuntu. I have installed vsftpd using sudo apt-get install vsftpd That ran all ok. However when I try to retstart the service with the following it cannot find it: sudo ...
-1
votes
1answer
34 views

Are there any plans to simplify console service management on Ubuntu?

I am quite perplexed about the direction in which service management is going on Ubuntu and the funny part is that the same seems to be happening with OS X but that's another story. I do appreciate ...
0
votes
1answer
69 views

Which arguments are passed to init scripts during shutdown

I am currently looking at the startup and shutdown procedures for ubunut precise pangolin. As far as I understand at shutdown the system switches to runlevel 0 and all scripts with K* are executed ...
1
vote
0answers
35 views

How can I automatically reboot machine after usb pull off?

I have this situation - I've got a boot-able pen-drive with Ubuntu 12.04 for automated installation - when I plug the USB stick in installation begins from it. At the end of installation process I ...
0
votes
0answers
39 views

Init.d script not updating git repository

I have the following init.d script running on my ubuntu machine: # /etc/init.d/do-updates cd /home/ubuntu/Fox;git pull sudo /home/ubuntu/Fox/batch_update_process.py 1>> ...
1
vote
0answers
51 views

init script of debian package not working correcly in different computers in Ubuntu 12.04

I created a Debian single binary package (.deb) for a software project to install the application as a service in ubuntu. dpkg --install package installation is successful in the computer I used to ...
0
votes
1answer
94 views

nfs-kernel-server installation : file does not exist

I am extremely new to Ubuntu and need to work on EdX platform. I need to install the NFS Client on Ubuntu 12.04 for the same. I used the following stuti@stuti:/$ sudo apt-get install ...
1
vote
1answer
34 views

Failure during boot with service failures (slowing down PC)

While Ubuntu is starting and showing it's boot screen an error occurs for several times saying: failed to execute 'lib/udev/socket:4/org/freedesktop/hal/udev_event' ...
2
votes
1answer
44 views

A bad boot command made my system inaccessible

Okay, so I made a really stupid mistake. I made a shell script that runs nodemon /path/to/nodejs/file and added it to the boot process via update-rc.d mystartup.sh defaults 99, thinking I could use ...
0
votes
1answer
705 views

Ubuntu 14.04 startup difficulty [duplicate]

I installed Universal Media Server 3.6 on ubuntu 14.04 desktop. What I want to do is, to launch it during startup. How to add this into startup? Any suggestions? Thanks in advance.
0
votes
1answer
2k views

Samba started twice on boot up after upgrade to 14.04

the second attempt results in a failure: Starting SMB/CIFS File and Active Directory Server[74G[[31mfail[39;49m] I'd like to figure out where the second attempt is coming from and remove it. ...
0
votes
0answers
135 views

Problem with dnsmasq

I'm using hostapd and dnsmasq to turn my server in a wifi access point. The WiFi is set up and seems to be working. But when the computer boots there's a massage saying something like "Interface ...
0
votes
0answers
224 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
42 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
36 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
35 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 ...
1
vote
1answer
2k 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
250 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
153 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
32 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
20 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
161 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
420 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
99 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
366 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
277 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
86 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
127 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
184 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
161 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
189 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
372 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
226 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
2k 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
62 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
1k 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
169 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
268 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?
20
votes
4answers
37k 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 ...
5
votes
1answer
5k 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 ...