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
13 views

Upstart: cannot run as root

I have made this upstart script, which starts a Node.js service. But all of the sudden the service has stopped, and upstart has failed to restart it. Now that I am trying to start it manually, it ...
1
vote
0answers
20 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 ...
0
votes
3answers
112 views

“sudo service nginx start” fails but “sudo nginx” works - can't figure out why

I have a server that is close to new and having a problem with getting nginx to start as expected. I have configured another server basically the same way and it works there. I figure there must be ...
0
votes
1answer
32 views

Creating a folder in `/var/run` when job is run as a non-privileged user

I have a few upstart scripts which are run as a non-priviledged user using setuid. Pid files should be created in /var/run/my-service: /var/run/my-service/v1.pid, /var/run/my-service/v2.pid and so on. ...
0
votes
1answer
41 views

Why won't upstart stop my node server?

I've got a super simple test node server # server.js var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello ...
1
vote
1answer
53 views

Upstart can't stop foreverjs services on shutdown?

Scenario We use a Vagrant-based virtual machine running Ubuntu 12.04 LTS for development of three Node.JS servers that are started using foreverjs. We run the services under the vagrant user and ...
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 ...
3
votes
1answer
175 views

Upstart: Why two processes when running as a different user?

I want to keep a nodejs app running, so I followed this: http://howtonode.org/deploying-node-upstart-monit and installed Monit and Upstart which have been working perfectly for a couple of months. I ...
2
votes
1answer
96 views

ec2 upstart, what is the `start on` command to wait for network

This is my first time with upstart and am using EC2. os/upstart = aws base AMI latest version - upstart-0.6.5-13.3.13.amzn1.x86_64 I can not get the following script to launch when waiting for the ...
1
vote
1answer
74 views

Run node.js from upstart (ubuntu 12.04)

I'm trying to setup upstart script to start/stop my node.js application. Here is my upstart script: #!upstart description "node.js server" author "marduk" start on filesystem stop on runlevel ...
3
votes
1answer
61 views

How to prevent a service from starting until a volume is mounted?

Using Ubuntu 12.04 or 14.04, how can I prevent an upstart service from starting until a couple of network volumes (GlusterFS) get successfully mounted?
3
votes
1answer
86 views

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to ...
0
votes
1answer
33 views

Upstart script which restarts service when file is created

I have created my own upstart script in /etc/init, which I can start and stop. Now I want that service to be restarted when a file (/etc/my-app/restart-requested.txt) exists (or better is touched). ...
0
votes
2answers
102 views

upstart script not logging to file

Linux CentOS 6.5 Here's my upstart script inside of /etc/init/ start on runlevel [2345] stop on runlevel [!2345] exec /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 ...
0
votes
1answer
35 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 ...
1
vote
4answers
57 views

portable daemon management from bash (sysvinit/upstart/systemd)

I have a little shell script which needs to stop a service. This needs to work on ubuntu (14.04), debian and Arch. Right now what I do is similiar to case $(cat /etc/issue) in *Ubuntu*) ...
0
votes
1answer
58 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 ...
1
vote
1answer
169 views

Autossh ask for password when running with sudo (or from upstart)

I have an upstart job /etc/init/tunnel.conf: description "SSH Tunnel" start on (net-device-up IFACE=eth0) stop on runlevel[016] respawn exec autossh -nNT -o ServerAliveInterval=15 -R ...
2
votes
1answer
393 views

restarting php5-fpm on ubuntu 14.04 with chef

I have this in my chef recipe: service 'php5-fpm' do supports :restart => true action [ :enable, :start ] end However my recipe now barfs in Ubuntu 14.04, as "/etc/init.d/php5-fpm restart" ...
0
votes
1answer
983 views

Recommended way to disable atd (and other unnecessary startup processes) in Ubuntu 14.04 LTS?

I just spun up a new Ubuntu 14.04 server and have been having a bit of trouble getting the atd daemon to stop auto-launching. There's been a bit of changing around on the management of startup ...
0
votes
1answer
295 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
125 views

Proper Way to Auto Mount NFS/Samba Shares Before Apache Startup at Boot?

I'm using an Ubuntu 12.04 (Server) VM as a development web server. I keep the served files on the VM host, therefore Apache uses NFS mounted directories for DocumentRoot To keep things as automated, ...
0
votes
0answers
46 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
1answer
205 views

Upstart Log Not Rotating

I have a custom upstart script that manages a Node API service. That script pipes output to /var/log/upstart/api-access.log. What I keep seeing is that the old log gets archived to ...
1
vote
2answers
154 views

Force stop upstart job

I accidentally deleted some upstart job conf (in /etc/init/). Unfortunately I didn't set any respawn limit, and those jobs are now unstoppable. I searched online but didn't find any answers, hope I ...
0
votes
0answers
46 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
164 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
1answer
104 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
0answers
20 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 ...
2
votes
1answer
130 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, ...
1
vote
0answers
92 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 ...
0
votes
1answer
85 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
0answers
73 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. ...
1
vote
1answer
125 views

Daemon dies but upstart thinks it is still running

If the daemon process dies, I'm unable to restart it manually: start foo results in a message that "start: Job is already running: foo", and stop foo hangs indefinitely. start on runlevel [2345] stop ...
0
votes
1answer
188 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 ...
3
votes
1answer
226 views

High CPU usage with wineconsole running in background

I have a (pretty simple) Windows console application which I want to run on a Linux server using Wine. When I just run it from the terminal over SSH like wine myapp.exe everything works great. It ...
1
vote
1answer
40 views

Windows process management tools

Unix has tools like upstart, angel, god, etc to keep processes running constantly on system start and can restart processes that have failed. Does windows have the ability to do this natively?
5
votes
2answers
360 views

Cannot find upstart logs in syslog despite a log-priority of debug (ubuntu 13.04 & mint 16)

I've set upstart log level to "debug" sudo initctl log-priority debug But I still cannot see anything in /var/log/syslog. sudo initctl emit hello # no log sudo initctl start my-broken-service # ...
1
vote
0answers
181 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 ...
0
votes
0answers
223 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 ...
1
vote
1answer
391 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 ...
0
votes
0answers
97 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 ...
1
vote
1answer
51 views

upstart: starting a service as soon as ipv4 is ready

I have a service (small http service that listens on 0.0.0.0:8080) written in python that starts at system boot. The problem is that sometimes at server boot it starts too soon, when even IPv4 is not ...
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 ...
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
1answer
639 views

Starting iaxmodem and faxmodem with upstart

How can I use Upstart to start iaxmodem and faxgetty when I have multiple modems? Centos 6.4 has a nice warning as listed below which incites me to believe the standard inittab lines will not work. # ...
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
1answer
471 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 ...