1
vote
2answers
82 views

Tool to disable services and daemons

For the old (and still used in debian) init mechanism there are tools such as rcconf to disable services and daemons. Are there such for whatever is used in Ubuntu (upstart I guess) ? I am running ...
1
vote
1answer
229 views

Upstart not starting emacs --daemon

I am trying to start emacs daemon through upstart. Here is my script # emacs --daemon - Emacs daemon # # The Emacs daemon provides a server for Emacs clients. description "Emacs daemon" start ...
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 ...
2
votes
1answer
124 views

Switch raring to systemd [closed]

I know that Raring use upstart as init system. However I'm wondering if it's possible to switch to systemd, as we can do it on Debian. I've found this ppa: systemd : Martin Pitt But the systemd ...
1
vote
1answer
82 views

runlevel misunderstanding

As I known there is no classical init in ubuntu, instead of init ubuntu uses upstart. Upstart is capable of fully simulation of classical init. The problem is I still don't understand how upstart ...
0
votes
0answers
247 views

Correctly configure daemon (god) in /etc/init/ so it automatically starts during a reboot

For the life of me, I need help. I have Ubuntu 12.04 LTS installed and I believe that this version of Ubuntu already comes pre-configured with Upstart, which I'm assuming that all I need to do is ...
0
votes
0answers
56 views

After boot, the console does not switch to tty1

I'm running Ubuntu Server 12.04 LTS, and upon boot, all services start successfully (confirmed via watching the boot in verbose mode as well as looking at the contents of boot.log), but it doesn't ...
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
67 views

How SysV and Upstart work together?

We have MySQL installed which has already an Upstart script. Why doesn't it start if I remove it from start up via update-rc.d tool? It's supposed to obey the Upstart now. So instead it should only ...
0
votes
0answers
241 views

ubuntu desktop 12.04 networking does not work on boot until I run sudo service networking restart

The problem is that every time I boot I have to run sudo service networking restart every time I boot in order to get it working. After that everything works fine. Any ideas how I can solve this ...
1
vote
1answer
2k views

Upstart job fails to respawn and hangs when tried to stop/restart it

I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
2
votes
1answer
298 views

Where is Unity startup script in rc?.d

I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2. What I want to do I want to ...
1
vote
1answer
260 views

Start and stop parameters in init script

I have .conf a file in /etc/init/ with this code at the bottom: start on (started network-interface or started network-manager or started networking) stop on (stopping ...
0
votes
1answer
366 views

Upstart with a script that start and finish their own processes

I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required $ listener.py -startall $ listener.py -killall I can run it with this settings: # Listener ...
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 ...
1
vote
1answer
596 views

Console prompt during boot (for truecrypt)

In short: Please provide me with a up-to-date best practice solution to mount my Truecrypt volumes at boot with secure password prompt! I may accept a answer that has nothing to do with Truecrypt and ...
0
votes
1answer
92 views

Redirecting /dev/null to some other device

Is it possible to redirect, ie create /dev/null as non-null device, like /dev/console or /dev/stdout? This obviously has to be done before init runs create creates a standard /dev/null. Upstart seems ...
0
votes
1answer
216 views

X : conditional xorg.conf file during startup

I've got a computer which I use at a couple of different sites, and I've got differen monitors at those sites. What I've done is that I've ceated different xorg.conf files for each of these sites. ...
2
votes
1answer
159 views

Failed to use upstart to control startup dependency

In a server I have memcached and apache2 installed, I want my apache2 ONLY can start if memcached is started, so in my apache upstart script, I added the line From start on runlevel [2345] To ...
0
votes
1answer
62 views

For processes to be up and running all the time

I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options - Upstart Cron I am trying things ...
3
votes
1answer
209 views

.override file isn't working

I have a file /etc/init/boinc-client.override with the single line manual that I use to prevent the BOINC client from starting up. (I don't want it hogging CPU time away from Folding@Home, for now ...
0
votes
1answer
212 views

Why my upstart script don't work?

It is strange the script use to work fine,but after the proxy went down for a while,it don't work all the time. But the command in script section can still do it's job,and I have no idea what's going ...
1
vote
2answers
254 views

How do I prevent race conditions in Upstart 'starting on' scripts?

I am working on a package that needs two Upstart jobs: one that launches a daemon, and another that launches a supporting daemon if the configuration file requires it. The logic to determine if the ...
13
votes
2answers
3k views

How do I stop all processes in a chroot?

I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
1
vote
1answer
539 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 ...
3
votes
2answers
728 views

starting sshd on first connection to port 22 with upstart's new socket bridge

Recent Upstart has these new fancy systemd-like features of starting jobs on incoming connection via socket-bridge. I'd like to start my sshd upon first connection to port 22. I now have: start on ...
3
votes
2answers
4k views

Running commands on boot in 11.10

So I am getting properly confused on how to create a startup script on my Ubuntu 11.10 server. I have read about init-scripts, upstart-jobs and more, but I get even more confused the more I read. ...
1
vote
1answer
2k views

How do I get Upstart to start my Mediatomb service?

I've been struggling, trying to get my Mediatomb server to start automatically on Upstart run level 2. I can't figure it out. I guess Upstart is still new to me and I don't understand it. I even ...
5
votes
2answers
12k views

How to start jenkins?

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it says this message when I try to start it ...
2
votes
1answer
728 views

Upstart scripting: Start service and immediately run another command

Here is my current Upstart script I've placed at /etc/init/redis.conf: description "redis server" start on runlevel [2345] stop on shutdown exec sudo /opt/redis/redis-server /opt/redis/redis.conf ...
2
votes
0answers
665 views

/dev/mapper/cryptsetup1 is not ready yet or not present, slow system [closed]

Today I had a very high system load because I used many applications at the same time (VirtualBox, totem, firefox,...). The load was so high, that the system almost didn't react anymore. Then I killed ...
3
votes
4answers
3k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
11
votes
5answers
14k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
17
votes
2answers
8k views

How can I make sure one Upstart job starts before other Upstart jobs?

This is a general Upstart question, but let me use a specific case: Centrify is a NIS to ActiveDirectory gateway. It needs to load before any service that will depend the authentication service that ...
3
votes
1answer
2k views

How to set up Java-based services for startup?

What's the best way to set up a Java-based program to run an service and start on boot? upstart (pre-start script and post-stop script ?) plain old SysV init? (start-stop-daemon ?) In my case I am ...
3
votes
1answer
375 views

Why does mysql process starts on boot?

As you can see, mysql exists only in the /etc/init.d directory and not in /etc/rcN.d, therefore it shouldn't start on boot. $ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort ...
3
votes
2answers
2k views

How do I setup gunicorn?

Upstart doesn't like to start gunicorn because it tries to call setpgrp (see github issue), what would be the best way to start [gunicorn] on a 10.04.1 server install? - Ideally with automatic ...
7
votes
4answers
2k views

What is Upstart?

Which operating systems besides Ubuntu use it?