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
1answer
672 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
2
votes
1answer
120 views

How to launch a SSH tunnel with upstart

I am not very used to sys admin and recently created an SSH tunnel between two servers (on Ubuntu 12.4) with the following command: ssh -fNg -L 3307:127.0.0.1:3306 tunneluser@xx.xx.xx.xx It worked, ...
2
votes
1answer
902 views

Ubuntu upstart hangs on interactive start & stop

How do I get Ubuntu upstart to not hang on interactive start & stop? I have created many upstart scripts that work fine during init, but often hang when I enter them at the console. If I CTRL+C ...
2
votes
1answer
190 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
383 views

RHEL6 Upstart: Flow of Events During Reboot

I have a situation where a RHEL 6.4 server is sending TERM and KILL signals too quickly, before applications and databases have had a chance to gracefully stop. It seems that Upstart is handing ...
1
vote
1answer
118 views

Ubuntu Upstart Job to Persist tcp_slot_table_entries Before NFS Mount

NOTE: I'm aware of the question Persistent changes to /proc/sys/sunrpc/tcp_slot_table_entries and while this older question is quite similar, the selected and proposed answers do not work for us, nor ...
1
vote
1answer
217 views

How to change upstart order, Start network after fstab?

In ubuntu 12.04, I want to change order; I want to mount all from fstab before running network (i have /etc/network/interfaces on other partition). How to do it? This is my fstab: # <file ...
1
vote
1answer
98 views

Understanding Upstart script stanza

I have a script that runs some java process: /apps/run_my_app.sh: #!/bin/sh CLASSPATH=foo java -cp $CLASSPATH foo.app can I have an Upstart script stanza like this? script ...
1
vote
1answer
74 views

Upstart not triggering sysinit

Upon server boot Upstart runs but does not trigger the transition to the normal runlevel, and I would like to know how to fix it. For example syslog will have been started, time set and so on, but ...
1
vote
1answer
497 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 ...
1
vote
1answer
367 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
28 views

Upstart init task

Here is my use-case. I have a long running server that is started by upstart. This server needs to be initialized first (populate tables in a db). This should only happen once in the life of the ...
0
votes
1answer
32 views

Start daemon after specific samba share is mounted

I asked this question on AskUbuntu, but it's not getting any traction there... So I'll try here as well: I have a homebrew headless NAS running 12.04. In it I have a bunch of disks that are ...
0
votes
1answer
53 views

upstart - supervisord fork count > 2 (can;t get supervisord to start on boot)

i'm trying to use upstart so that supervisord starts automatically at boot. my supervisord is in a virtual environment. I've configured it to run in foreground mode with -n param and it works if ...
0
votes
1answer
265 views

Logrotate for node.js app deployed using monit and upstart

I deployed a web application in node.js by following the guide: Deploying Node.js With Upstart and Monit . The app produces some log via console.log(). In the upstart script, it's redirected to a log ...
0
votes
1answer
96 views

Why is this upstart script not stopping my process?

I am trying to write an upstart script that checks if my process is running by pinging it's HTTP interface. So far, I just can't get the post-start clause to work. Here's a simplified version that ...
0
votes
1answer
84 views

Allocate pseudo TTY in Upstart configuration file

We would like to use Upstart to manage a Java process and run it as non-root using sudo. We are on RHEL 6 which means that Upstart is too old to allow us to explicitly specify a user hence the use of ...
0
votes
1answer
185 views

How can I use /usr/bin/xvfb-run in an upstart start-stop-daemon

Is this the correct syntax? It seems that Upstart is starting two instances of this daemon: start on runlevel [2345] stop on runlevel [06] limit nofile 32768 32768 env DISPLAY=:0 respawn script ...
0
votes
1answer
452 views

Starting command on boot with correct user env vars

I am attempting to create a start-up script that will run this command on boot for my ubuntu 12.04 server: bundle exec thin -R config.ru start -p 3030 When I run it as a regular user it works just ...
0
votes
1answer
61 views

Ubuntu upstart: Why does restart do the same thing as stop?

This is my upstart file /etc/init/myapp.conf: description "Example of starting Node with Upstart and Forever" start on filesystem or runlevel [2345] stop on runlevel [06] expect fork console ...
0
votes
1answer
87 views

upstart exec prevents daemon from creating pid

I have a simple upstart script that exec my daemon. When doing so, the correct pid is returned by upstart, but my daemon is not able to create the actual pid file. script VM=$(cat /proc/meminfo ...
0
votes
1answer
49 views

Upstart for monitoring forking daemon?

According to this link, it said Upstart is one of the best options for running traditional forking daemons, since it actually uses ptrace to make sure it's watching the correct process ids. ...
0
votes
1answer
24 views

upstart always re-starts mysql and will not re-read the conf file

I am using upstart on OEL 6, an old version 0.6.5. I created a conf file to start/stop mysql with a pre-stop section and respawn. Now when I want to change the conf file, I cannot get it re-read ...
3
votes
0answers
185 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 ...
2
votes
0answers
189 views

Amazon EC2 Ubuntu and upstart logging permissions

I have set up this upstart script on a Amazon Ec2 Ubuntu 12.04 TLS instance for executing a node.js application. The script uses setuid and setgid. It works fine without using setuid and setgid but ...
2
votes
0answers
65 views

Ubuntu upstart service hangs

I am trying to have the jenkins java application run at startup, run as the jenkins user. I have a upstart conf file located at /etc/init/jenkins.conf with the following inside it. description ...
2
votes
0answers
69 views

Upstart: Repeat a task as a service

I have a number of services in init.d that are simple one-line commands wrapped in a script that repeats every few seconds. The template for them looks like this: e.g. #!/bin/sh autostart() { ...
1
vote
0answers
19 views

Init script to run overlapping servers at service restart

How can I create a init script that starts (and tracks) the new process before the old is completely terminated at restart? I am developing a node.js service that needs to be able to restart ...
1
vote
0answers
87 views

Redirecting app log to rsyslog in upstart script

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
1
vote
0answers
175 views

ubuntu upstart - how to set global nofile limit?

ubuntu 12.04 I have change the setting: /etc/security/limits.conf * soft nofile 65000 * hard nofile 65000 but cat /proc/{PID}/limits: Limit ...
1
vote
0answers
26 views

Upstart - make “reload” behave like “restart”

I have a daemon process that doesn't respond to SIGHUP sent when running reload. It runs under an unprivileged user, and I can't restart it without sudo privileges. Is there a way to make reload to ...
1
vote
0answers
46 views

Make sure an upstart job is stopped after /etc/init.d/nginx during shutdown

I have an upstart job X that control some web processes. During shutdown, I want to make sure that X is stopped after /etc/init.d/nginx, so that there won't be any 502 returned to the HAProxy instance ...
1
vote
0answers
66 views

Upstart shows non-existent process running

I am using upstart 1.8-0ubuntu1 on Ubuntu-1210-quantal-64-minimal. It shows me nginx to be running, when it's not. # service nginx status nginx start/running, process 2543 # ps -p 2543 PID TTY ...
1
vote
0answers
74 views

Upstart task to wait for iscsi target to become available?

I've got a couple of virtualization servers running Ubuntu 12.04 and Virtualbox and just bought a Synology NAS which I plan to use as an iSCSI target to serve storage for the VMs. I realize that ...
1
vote
0answers
60 views

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn?

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn? Here is the error from my Upstart log deploy is not in the sudoers file. This incident will be reported. It ...
1
vote
0answers
140 views

Updating Upstart on Centos 6.3

I have a Centos 6.3 server -- alone among all my Ubuntu servers for historical reasons -- with Upstart 0.6.5. I need to update that upstart to at least 1.4, and I'd prefer to do it through yum instead ...
1
vote
0answers
258 views

initctl respawn does not reload configuration

My upstart service is running with the respawn option. I was hoping that if I deploy a new service config, the config will be loaded, when the service respawns. Neither the initctl ...
1
vote
0answers
358 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: ...
0
votes
0answers
43 views

Unable to connect to Solr externally

I'm in the process of installing Solr -- something I've never done before -- to support a specific client request. The install when just fine on a Vagrant box and I can connect to ...
0
votes
0answers
44 views

unreliable upstart service doesn't always start

I have a python script that I want to run as a service so I have created a setup using upstart to run the script on startup. These are the steps that need to happen for the script to run correctly ...
0
votes
0answers
149 views

Node.js app doesn't start in upstart with Centos

description "Node app" author "me" start on runlevel [2345] stop on runlevel [06] pre-start script exec logger "pre-start NODEJS-CHAT app" end script post-start script exec logger ...
0
votes
0answers
19 views

Set Upstart Job Exit Signal

Is there any way to set the signal used by Upstart to stop a job? There's the "kill signal" and "reload signal" stanzas, but "kill" generally refers to when a normal stop times out.
0
votes
0answers
24 views

supervisord with Upstart always hangs

I'm trying to start supervisord with Upstart. The Upstart job is very simple and traditional (start on, stop on, author description, respawn, exec). I've tried running supervisord in the foreground ...
0
votes
0answers
71 views

Nginx + Upstart == exit code 127

guys! I'm kind of lost here and really need help. Problem: nginx start up and works as expected if started from terminal directly, but from UPSTART it does not start (nginx is @ /usr/local/sbin/nginx. ...
0
votes
0answers
209 views

setuid upstart not working

I have created a .conf file in which I include setuid mario setgid mario in order to run as mario user. The program I run in the exec command is forever which runs an instance of node which ...
0
votes
0answers
30 views

Move a manual compile of CouchDB to the default locations and auto-start it?

I used build-couchdb to get a working current couchdb version. Now I want to move that to the default location on Ubuntu, define it as a server (so I can use service couchdb start) and finally start ...
0
votes
0answers
92 views

Installing Upstart on Centos 5.10 Final… pkg-config dependency issue

I am trying to install upstart version 1.11 from source on a Centos 5.10 Final box. BTW i don't have option or privileges to upgrade this. I am at this point where it is complaining about the ...
0
votes
0answers
22 views

Upstart service to manage other services

I have a Ubuntu server with a bunch of Upstart services configured on it. I "own" those Upstart services, ie, I made the scripts myself and they're only used for the purpose of that server. I'd like ...
0
votes
0answers
70 views

Writing an upstart file which allows the user to input username and password

I'm trying to write an upstart file for OpenConnect. The task is pretty simple, but I'm stuck because I don't want to provide the username and password in a config file, but prompt the user to provide ...
0
votes
0answers
1k views

Upstart: start nginx = runing / stop nginx = unknown instance

Running Ubuntu 11.10 server getting ready to switch from Apache to nginx for running wsgi got everything setup correctly while running testing on port 82 I switched nginx to use port 80 restarted ...