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

0
votes
1answer
711 views

can't start ssh after upgrade ubuntu

When upgrading my system crashed, and now I can not start the service ssh root@elizium:/# stop ssh stop: Unknown job: ssh root@elizium:/# uname -a Linux elizium 2.6.24-19-server #1 SMP Wed Jun 18 ...
3
votes
2answers
148 views

Is it possible to set an Upstart service to stop $LAST

I'm wanting the rsyslog service to run until the last moment to ensure we receive as much logging as possible on our central logging servers. On Ubuntu 11.04, rsyslog's stop line is set to "stop on ...
1
vote
1answer
2k views

Replacing TTY with a script in CentOS 6

How would I go about replacing a TTY with a custom script in CentOS 6. CentOS 6 uses upstart instead of the standard SysV init scripts, so I'm having difficulty figuring out how it all works. ...
1
vote
1answer
792 views

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my ...
3
votes
2answers
739 views

Debain no longer booting after apt-get remove upstart

I can no longer boot my server up. I get the following issue: Loading, please wait... Target filesystem doesn't have requested /sbin/init. /bin/sh: can't access tty; job control turned off # _ and ...
3
votes
1answer
2k views

Upstart does not work

I followed this tutorial to set up upstart for my node.js server: http://howtonode.org/deploying-node-upstart-monit The problem is, that when I try to run "start mynodeprogram", I get the floowing ...
1
vote
1answer
346 views

mysql upstart job hangs if database directory not mounted

Update: Filed as bug #812423 on Launchpad. I have mysqld pointed to an external volume: $ cat /etc/mysql/conf.d/data_joliss.cnf [mysqld] datadir=/mnt/data_joliss/mysql This is working fine in ...
1
vote
2answers
343 views

Process being sent SIGINT when started using Upstart

I have a Linux application which opens up several serial devices (/dev/ttyUSBX) and reads/writes from them. When I run it from a command prompt (Ubuntu 10.04, bash) it works perfectly. $sudo ...
2
votes
1answer
200 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
153 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
467 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
764 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
599 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
378 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
166 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
173 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
762 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
190 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
355 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
452 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
322 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
286 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, ...