The init.d directory contains a number of start/stop scripts for various services on your system.
0
votes
0answers
23 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 ...
0
votes
0answers
38 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
63 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
12 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 ...
2
votes
0answers
51 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
43 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
76 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 ...
0
votes
0answers
11 views
/etc/init.d/rc concurrency shell, none or makefile [duplicate]
I feel that 12.10 boots somewhat slow. I've read that changing concurrency method to "shell" in /etc/init.d/rc will speed up boot process, but the comment in the file said that the valid options of ...
1
vote
1answer
52 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
152 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.
1
vote
2answers
312 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
154 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
648 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
1answer
87 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 ...
0
votes
0answers
53 views
How do I monitor 2 apc ups with apcupsd
I have 1 computer that has 2 usb cables plugged into it, each from a different apc ups. I want to monitor both ups from this computer. I created 2 different apcupsd conf files but can't seem to edit ...
0
votes
0answers
105 views
script to run later in the boot process as root
there are two commands that I have to run each time after restarting and logging in
/etc/inti.d/autofs restart
and
/etc/init.d/boinc-client restart
My mounts don't mount unless I restart autfos ...
0
votes
2answers
177 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
2k 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 ...
2
votes
2answers
282 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
582 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 ...
0
votes
0answers
43 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
399 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 ...
0
votes
0answers
140 views
the same daemon script, but works on only Ubuntu server 12.04.1
I would like to run Perforce Server (p4d) as daemon.
so, I copied a /init.d/p4d file from /init.d/skeleton file and modified to run /usr/sbin/p4d -d
It is worked well by manually run it.
$ ...
0
votes
0answers
116 views
Can't repeatedly reload uwsgi [closed]
In Ubuntu 12.04 I can only reload my uwsgi app once, after this reload and force-reload fail. This appears to be because after the first reload the process names change from uwsgi to uwsgi-core, and ...
1
vote
1answer
534 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 ...
2
votes
0answers
1k 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
248 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 ...
8
votes
1answer
270 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 ...
0
votes
0answers
356 views
How to control Jenkins daemon? /etc/init/jenkins.conf vs /etc/init.d/jenkins
I initially installed a recent version of Jenkins as a daemon using the default Ubuntu repository (12.04 LTS) and was able to use the usual 'sudo service jenkins start/stop' to control it. I then ...
2
votes
1answer
548 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
301 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
4
votes
0answers
173 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
400 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 ...
5
votes
1answer
2k 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
1k 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
0answers
203 views
korgac - init.d kill script on shutdown
I'm new to Ubuntu 12.04 and Linux and my English is not the best, so I'm sorry for incorrect or stupid questions.
I've installed KOrganizer and to start the reminder when I boot the system, I added ...
0
votes
2answers
166 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
593 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
112 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
2k 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, ...
0
votes
1answer
1k 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
1k 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 ...
13
votes
9answers
19k 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 ...
1
vote
1answer
141 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
325 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 ...
5
votes
2answers
12k 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 ...
2
votes
2answers
332 views
Init.d script gets return code 1 when calling itself, how can I get output?
My question is, how can I modify the script so that it will tell me what goes wrong?
The scenario is this:
I'm trying to get Sonatype Nexus to start as a service in Ubuntu 10.04, and it just will ...
1
vote
1answer
314 views
Customizing upstart “restart” commands
I'd like to run a different command when upstart is restarting a process than when it is starting a process. In particular, I'm using Thin and I want to do a rolling restart (built in to thin via a ...
1
vote
2answers
484 views
What is start_daemon?
I'm trying to understand start_daemon in the following /etc/init.d/nagios-nrpe-server startup script:
start)
if [ "$INETD" = 1 ]; then
exit 1
fi
...
1
vote
1answer
428 views
Managing dependency across Upstart and SysV-style init.d script
I have an Upstart job that must run before a SysV-style init.d script runs.
The init.d script is configured to be started in the runlevels 2, 3, 4 and 5 with priority 20.
What can I do to have the ...
