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

3
votes
3answers
2k views

upstart not working

I saved the following file at /etc/init/nodejs.conf description "node.js server" author "dorelal" start on startup stop on shutdown script # We found $HOME is needed. Without it, we ran ...
0
votes
1answer
907 views

Upstart attempts to start job before mounting everything

~$ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 /dev/xvda2 /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 /dev/xvda3 none swap sw,comment=cloudconfig ...
0
votes
1answer
89 views

How can I restore initctl?

Assume I was dumb enough to accidentally unlink /sbin/initctl. How can I restore it?
0
votes
2answers
2k views

Python script stops responding when run for a long time

I am running a python script as a service in Ubuntu 11.10(using upstart for that). When started, the script runs fine and responds as expected. But after the script is running in background for long ...
1
vote
0answers
668 views

Run python script as a service on Ubuntu 11.10

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: http://stackoverflow.com/questions/4705564/python-script-...
5
votes
1answer
4k views

sleep in upstart script (upstart synchronism)

I've written this code to automatically start KVM Virtual Machine at boot of host system, and stop Virtual Machine at shutdown or reboot of host system. start on startup start on started networking ...
16
votes
1answer
12k views

Upstart: allowing a normal user to stop and start my custom service

I have got my webserver application starting on boot using upstart. This is the upstart script: # web app node upstart file at /etc/init/webapp.conf description "web application" start on started ...
0
votes
1answer
305 views

EC2 Upstart job: Stop on runlevel never called pre-stop

I'm using EC2 and I have a pre-stop script that is calling curl. From what I can tell the curl never gets called. I'm trying to do stop on shutdown or stop on runlevel [056]. Neither seem actually ...
2
votes
1answer
5k views

Running multiple instances with upstart

I have a server that I've written that needs to run on multiple ports. So I've written two Upstart scripts like the upstart documents suggest. http://upstart.ubuntu.com/cookbook/#instance Task to ...
0
votes
1answer
970 views

ubuntu nginx running twice — cannot kill extra process

Fresh Ubuntu 12.04 instance running on Amazon EC2 got Nginx running with Passenger added an upstart script description "NGiNX starter" start on (local-filesystems and runlevel [2345]) stop on ...
1
vote
1answer
3k views

Ubuntu upstart use one script to run multiple others

This script will start the services: #!upstart description "example.com" author "Geert" script for service in "website" "feeds" "jobs" do exec start service.example.com service=$...
0
votes
1answer
548 views

Node.js doesn't load after reboot using upstart on debian squeeze

I have been dabbling with Node.js lately, and I came across this article on how to get it to start automatically after a reboot: http://howtonode.org/deploying-node-upstart-monit In particular, the ...
4
votes
0answers
212 views

Monit will not start my node js app

I have a problem with Monit that I use for monitoring of my Node.js app. I just moved from a single core machine to a multi core one. On both of them I run Ubuntu 11.10. On the old one this was ...
8
votes
2answers
6k views

Running Upstart user jobs on startup

I am running Ubuntu server 11.04. I have created an Upstart user job as described here. I have the following file at my /home/myuser/.init/sensors.conf: start on started mysql stop on stopping mysql ...
5
votes
1answer
4k views

Upstart: stop on runlevel [016] vs stop on starting rc RUNLEVEL=[016]

So, I'm working on an upstart init script for mysql. Should be trivial, right? My stop stanza looks like: kill timeout 30 stop on runlevel [016] I shutdown now -r, and mysql yells about my MyISAM ...
2
votes
1answer
206 views

Upstart and pre/post scripts

I run into an issue with upstart where I want to update an init config, but just restarting the job doesn't apply the changes. For example: I've got job xyz running I modify the /etc/init/xyz.conf ...
2
votes
1answer
360 views

How to run “mongodb --repair” if it's an Upstart job?

My MongoDB server died. The log says something about an unclean shutdown and an existing mongodb.lock file. It recommends to remove the lock file, then restart the mongodb server with --repair. ...
0
votes
1answer
576 views

Install Sphinx Search on my Virtual Private Server

I'm trying to install sphinxsearch on a Virtual Private Server that is running Debian GNU/Linux. It seems to depend on upstart-job. Here is the output I get when I try and run the installer. [ps64518]...
0
votes
1answer
1k views

Can I use Upstart to start a script which requires the user's X session?

I wrote a script which greps through the output of synclient to determine whether a laptop's touchpad has miraculously turned itself off (Ubuntu seems to /love/ doing this recently) and, if so, turns ...
0
votes
1answer
328 views

Upstart: running app from home folder

I've created two user accounts for two applications: mongod and node.js. Both of these store their data in their home folder. This keeps data "sandboxed" and prevents them from needing to be in the ...
1
vote
1answer
555 views

How do I limit how much cpu a process can use with upstart (Ubuntu 11.10)

I want to limit the amount of processor power my sheduled jobs (Resque for a Rails application) use and I found this upstart that seems promising and might do what I want: http://upstart.ubuntu.com/...
2
votes
1answer
2k views

How to install init-checkconf for upstart?

Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart ...
2
votes
1answer
5k views

How should I use sudo from an upstart script?

I am using upstart to run my node.js app on an Amazon Linux AMI EC2 instance. I have had a few issues getting it to work, summarized below. In my script I had a line like this: exec sudo -u www /...
0
votes
1answer
1k views

Upstart output pre-start script content

Based on the content of the Ubuntu init.d script to control nginx instances, found at : http://wiki.nginx.org/Nginx-init-ubuntu I'm trying to update Upstart version, found at: http://wiki.nginx.org/...
0
votes
1answer
211 views

Linux Upstart processes automatically restart

I'm using Upstart on an ubuntu server to manage some server processes I have running. My problem is that if I "stop " a couple of times, the process dies but then automatically starts running again. I ...
2
votes
1answer
579 views

How can I ensure a script gets executed after a service is stopped but before another service is stopped?

I should run a specific script whenever a server is shutting down, ensuring that some services are always stopped, while some other, but required services are still up. In practice: I should run a ...
2
votes
1answer
191 views

Upstart, no feedback whether starting failed

I have a daemon in /opt/xyz/bin/xyz. Unfortunately it cannot fork itself into background and will not be able to do so within the next half year. My problem is the following: Entering service xyz ...
1
vote
1answer
663 views

How do I perform an action if the upstart respawn limit is hit?

I have an upstart job: description "foreman" start on runlevel [2345] stop on runlevel [06] respawn respawn limit 3 60 chdir /home/deploy/app/current env RAILS_ENV=production exec sudo -u deploy ...
2
votes
1answer
2k views

Ubuntu Upstart job - “stop” is not recognized command

I need some help with this; endless upon endless scripts look exactly the same -- yet I can't seem to stop the job associated with an upstart script. I'm using any of the newest Ubuntu Elestic AMIs ...
2
votes
1answer
2k views

passing arguments to upstart job

I want to run multiple instances of my process by passing an args to startup job: start myapp instance1 start myapp instance2 and so on I want to have one upstart conf file instead of having conf ...
1
vote
1answer
667 views

init.d script worked OK on Ubuntu 10.10 but not on 11.10 despite LBS header correction

On Ubuntu 11.10, if I run /usr/bin/cserver -c /etc/cserver.conf & it'll work fine. But if I run service cserver start or /etc/init.d/cserver start as I did on 10.10, it won't. It just says "...
1
vote
2answers
871 views

Oneiric's init (upstart) taking up 99% cpu on openvz

I'm having a problem with a openvz vps which came with Ubuntu Natty (11.04) and I recently upgraded to Oneiric (11.10). After a reboot I found the init process stuck at ~99% cpu and the loadavg ...
2
votes
3answers
3k views

SELinux causes “Permission denied” when starting lighttpd+fastcgi via upstart

I'm have trouble launching a lighttpd fastcgi python app via upstart. I can launch the app successfully using sudo lighttpd -D -f /path/to/lighttpd.conf and via su -c "lighttpd -f /path/to/lighttpd....
3
votes
2answers
440 views

Spawning multiple instances of a daemon in Ubuntu

I have a python script that listens and blocks while it waits for data on a redis list. It runs fine in upstart using the following: description "stage message consumer" author "Nilesh Ashra" start ...
1
vote
1answer
940 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 15:...
3
votes
2answers
156 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
3k 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
950 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
907 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
3k 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
367 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 ...
2
votes
1answer
220 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
156 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
552 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 clusterb?...
1
vote
1answer
888 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
724 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 --config=/etc/...
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 all....
1
vote
1answer
401 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
170 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 ...
5
votes
2answers
2k 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 ...