Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

learn more… | top users | synonyms

2
votes
1answer
197 views

upstart on ec2 does not update configs

changing Upstart services config files on EC2 servers does not cause Upstart to reload them. I guess it's due to the network nature of EC2's fs. what can I do?
1
vote
1answer
150 views

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make ...
0
votes
1answer
459 views

Nginx traffic is going to wrong upsteam when mixing named servers and default servers

I have the below config file for nginx. The problem is all traffic is going to upstream clustera. How do I configure nginx to only send traffic for example.com to clustera and all the rest to ...
1
vote
1answer
745 views

upstart config to start sync daemon as non-root user

I am planning to use inosync to sync data from master server to several client servers. I have created a user called rsyncuser in both master and slaves with access permissions and passwordless ssh ...
1
vote
1answer
571 views

Upstart script not working on Ubuntu

I'm trying to write an upstart script to start orbited on startup. The script is as follows: #orbited start on startup stop on shutdown script exec /usr/local/bin/orbited ...
0
votes
1answer
149 views

How can I use upstart with vendor-supplied startup programs?

For instance, I use the following commands to start and stop a particular web application: /usr/local/application/MyServiceController.sh all.start /usr/local/application/MyServiceController.sh ...
1
vote
1answer
374 views

ubuntu upstart for service with multiple daemons

my service is a group of "multiple" daemons. I need to integrate it with upstart to be started during the bootup. The problem is that I need to restart the service when any of the daemons dies ...
0
votes
1answer
164 views

Error while setting a run level for a service on ubuntu 10.04

I had stopped openvpn from loading at boot by doing this: sudo chkconfig openvpn off Now I want it to load at boot up. So I did this: sudo chkconfig openvpn on But it fails and the error I get ...
3
votes
2answers
1k views

How can I receive an email when an upstart monitored script respawns?

My upstart config looks something like this start on filesystem stop on runlevel S respawn exec /path/to/my/script When this script dies and is respawned I would like to receive an email. Is this ...
2
votes
2answers
171 views

What functionality do I lose by disabling GDM/KDM/SLIM/CDM etc display managers?

so... I've been wondering lately why do I need GDM. I got it disabled for experiment sake through modifying upstart file /etc/init/gdm (I run Ubuntu 10.10 desktop). So now computer boots to command ...
7
votes
1answer
4k views

Using Upstart to Manage AutoSSH Reverse Tunnel

I'm using upstart to manage a reverse SSH tunnel via autossh. When I do a "sudo start tunnel" the connection comes up just fine; however the command is not being automatically run when the networking ...
5
votes
1answer
1k views
1
vote
1answer
752 views

Running Django sites through Upstart

I host a few Django sites on one of my Ubuntu servers. Up until recently I've been using the Cherokee HTTPd which has the option to launch back-end applications like Django sites but I've just ...
3
votes
3answers
3k views

Comprehensive guide to init.d scripts?

I'm looking for good resources to learn more about how to write/debug/maintain init.d scripts on Ubuntu. Do you have any links or books to recommend ?
1
vote
1answer
2k views

What's the correct way to start a Ubuntu Upstart script from another Upstart script?

I have three Ubuntu Upstart scripts: browser runs an instance of firefox as an unprivileged user browsers starts when screen is started and launches browser PORT=1 browser PORT=2 browser PORT=3 ...
0
votes
1answer
185 views

What happens when an upstart limit is breached?

For example can I set a limit on VIRT or RES and have upstart restart the server? Thanks Chris
1
vote
2answers
199 views

Exactly how does one navigate through ubuntu's startup files?

I understand that there is a switch from init.d to init in Ubuntu. Init.d was fine for me, but I can see and appreciate the change. I am also incredibly thankful that the config files are not foul ...
6
votes
1answer
3k views

What signal does upstart/initctl use to restart a job?

What signal will upstart/initctl use to restart a job? Furthermore, is there any way to specify that SIGHUP should be used? Alternately, is there a way to define a custom reload command that will ...
2
votes
1answer
1k views

autofs fails to mount nfs mounts on Ubuntu Lucid Lynx (10.04)

When booting, the system fails to mount nfs mounts due to statd not being started. After manually starting statd, nfs mounts are automatically mounted by autofs. Even though /etc/init/statd.conf ...
1
vote
1answer
1k views

Restart mysqld with a command line parameter on ubuntu 10.04

Getting my hands dirty with a MySql slave setup, I ran into a puzzling question: how do I pass any of the myriad options to mysqld (--skip-slave-start in this particular case) when I am restarting it ...
2
votes
2answers
351 views

Upstart event based on level

Upstart provides support for starting jobs based on an events arguments: start on custom-event NAME=foo This will only start the job when custom-event is emitted and the argument NAME has the value ...
0
votes
1answer
450 views

Script fails when run from cron

I have some embedded machines which are on an unreliable connection which network manager unfortunately isn't handling well. Currently I need to check for connectivity and then restart network manager ...
0
votes
1answer
317 views

Zend Server + Daemontools

Is anyone running Zend Server under Daemontools? I know I can use -D NO_DETACH to run apache under daemontools. But, I'm not sure if the other Zend Server components (monitor, lighthttpd, scd, ...
11
votes
2answers
4k views

Have upstart read environment from /etc/environment for a service

What is the best way to provide the environment variables defined in /etc/environment to an upstart service? I think simply sourcing them with . in a script section does not work, because the ...
0
votes
1answer
285 views

Ubuntu Server not rebooting but will power off

I have 2 identical servers running Ubuntu 9.10 and I've been playing with Ubuntu's upstart system, trying to write a sort-of complex boot order for a few services. I've also played with init scripts ...
1
vote
1answer
4k views

Restart networking in ubuntu karmic (9.10) using upstart

As far as I know karmic uses upstart to control some of the services. Is there any way to restart the networking service without rebooting the system? The problem is that when I try to do it in any ...
2
votes
3answers
1k views

Ubuntu Server: Running processes at boot time

How do I make Ubuntu Servers run services at boot time, in a specific order? I have read a bit about Upstart, init.d and inittab, and I'm not sure what's the right approach for doing it. Thanks, ...