Tagged Questions

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

learn more… | top users | synonyms

2
votes
3answers
71 views

How to start a VM on boot, and shutdown on VM stop?

Long story short... I had to install a small server app running in a VM on one of this company's PC. Both computers are running Windows XP (with legacy softwares, so upgrading is not possible), and ...
2
votes
1answer
99 views

How to create a directory in /var/run on startup?

I need to create a non-root owned directory in /var/run that a startup script in /etc/init.d will use. What is the proper way achieve this? I'm using Ubuntu 14.04.
0
votes
0answers
15 views

Dual booting thwarted by rogue keyboard presses?

End goal: successfully dual boot Windows 8.1 and Ubuntu 14.04, both are already installed and working. I just can't get to the bootloader (I think it's called) to choose to go back to my Windows ...
0
votes
0answers
25 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
1answer
35 views

dnsmasq starting before eth0 is ready and therefore not binding

I have setup dnsmasq on ubuntu 14.04. The dnsmasq part works fine. However on boot, dnsmasq runs BEFORE eth0 is up. This causes dnsmasq to not respond to queries on eth0. In syslog I can see dnsmasq ...
2
votes
2answers
65 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
75 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
161 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
64 views

Sickbeard start service on boot not working: Permissions issue? [duplicate]

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. ...
1
vote
1answer
144 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 ...
0
votes
1answer
465 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
198 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
63 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
248 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
58 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
42 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
112 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
38 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
49 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
66 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
177 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
36 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
50 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
920 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.
1
vote
1answer
3k 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
159 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
370 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
52 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
50 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
39 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
4k 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
283 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
202 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
38 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
202 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
652 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
108 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
484 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
296 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
93 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
2answers
177 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
215 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
189 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
211 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
377 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
234 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
66 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 ...