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
711 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
322 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
975 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
195 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
290 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
1answer
617 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
127 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
255 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
116 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
77 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
534 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
372 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
69 views

How to respawn a script in RHEL/Centos6 when /etc/inittab has been deprecated?

I have a custom init script and I want that script to be respawned if in case the process dies. In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
0
votes
1answer
66 views

How do I keep process running in the background, even after a machine reboot?

What is the way to keep some process running (web server, database and so on) in background, and be sure that in case of system reboot it will start immediately again? I'd like to have this feature ...
0
votes
1answer
34 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
67 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
89 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
465 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
370 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
141 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
295 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
709 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
65 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
116 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 ...
3
votes
0answers
192 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
250 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
79 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
74 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
26 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
31 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 ...
1
vote
0answers
133 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
27 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
58 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
88 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
98 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
70 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
166 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
273 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
404 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
13 views

Upstart service is not killing processes on stop

I have an upstart service that maintains a number of instances of workers. pm-all-workers.conf: start on runlevel [2345] stop on runlevel [!2345] env NUM_WORKERS=25 pre-start script for i in `seq ...
0
votes
0answers
16 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
0
votes
0answers
25 views

Node.js hotswap deployment

I'm trying to deploy my MEANjs application into production... So far I've use jenkins, git,rsync, etc. to copy the project to the remote server. and in the final step I just have to call stop ...
0
votes
0answers
96 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
57 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
300 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
23 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
117 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
363 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
38 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
110 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 ...