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

2
votes
2answers
640 views

Upstart script for Sphinx

I am trying to get Sphinx running with Upstart on Ubuntu, but the only script I've found isn't working and seems to be more complex than I require. Could someone provide me with a basic Sphinx ...
0
votes
2answers
106 views

Using cron vs. system managed service for frequent tasks

If some task should run in an frequent but not neccessary precise manner, what would the benefits of using cron vs. just using a service (eg. managed by upstart) with a loop script like #!/bin/sh ...
4
votes
1answer
1k views

Starting Redmine at boot using upstart on Ubuntu

So after installing Redmine from the repositories on Ubuntu 12.04, I've tried to create an upstart script (see below) so it would start up at boot time. While service redmine start does start ...
3
votes
1answer
42 views

Best way to run service no matter the distro

I am working on an application and want to make the script start on boot, and for the users to be able to run things like service my-program restart What i am seeing is there seems to be different ...
2
votes
1answer
373 views

Upstart script that displays errors to the console?

I have a simple upstart script that runs a process and respawns it if it crashes. The problem is if it crashes I want the user to be alerted that it crashed (because they may need to take an action to ...
1
vote
1answer
67 views

Upstart start when system is idle

Is there a way to tell upstart to run a job when system is idle? If not, what is the next best thing - i.e. how to start it very late in the process, when system is reasonably expected to be idle?
1
vote
1answer
689 views

How to change hostname via kernel command line on ubuntu 12

I booted a guest vm on xen, and I want to assign guest-domU's hostname in config file. like this ... extra='ip=::::myguest-vm-hostname::dhcp' ... It is a kernel command line to setting netboot ...
0
votes
1answer
35 views

why isn't my Upstart $JOB variable being interpolated?

I installed upstart on a Debian 7.8 system, but last I checked this didn't work on an Ubuntu 11 system either. I've got my jobs running using sudo, but would like to do it right if possible. here's my ...
0
votes
1answer
198 views

initctl not finding an upstart service

I have the following upstart config (see below), on Centos 6.5 the file is in /etc/init/prerender-io.conf, the service does not appear with the "sudo initctl list" command also, sudo initctl ...
0
votes
1answer
180 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
0
votes
1answer
1k views

My upstart script is says its running but doesn't actually run - Ubuntu 10.04 LTS

This is on Ubuntu 10.04 LTS So I've got a gulp script (running through Node) that works great when I execute it manually. It actually runs a "watch" on a directory so that if any of the files change ...
0
votes
1answer
298 views

How do you start multiple node.js apps using forever and upstart?

I'm managing multiple node.js processes using forever, and I need them to start at boot time. I think that upstart should be used for that, but I'm not sure whether I should create one init script per ...
0
votes
1answer
210 views

Ubuntu — Application global environment variables

So I have an application I am deploying to an Ubuntu 12 server. My application has several "parts" to it: There's a web server, run as part of an upstart script There are cron jobs There are ...
2
votes
0answers
59 views

How to edit and restart and upstart job without rebooting?

I'm trying to deploy a WSGI appplication with Gunicorn. I have written an upstart job for launching the WSGI app. I'm testing different options (Unix socket v. TCP, etc). Whenever I change the ...
2
votes
0answers
101 views

upstart-monitor with CLI option fails to start in Ubuntu Server 13.04

When I try starting upstart-monitor on Ubuntu Server 13.04. I get the following error: Traceback (most recent call last): File "/usr/bin/upstart-monitor", line 195, in <module> class ...
2
votes
0answers
427 views

After installing upstart Raspberrypi gets stuck in boot

I recently installed upstart blindly replacing things I shouldn't of been. The results was that now my raspberry pi is stuck on Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix ...
2
votes
0answers
901 views

Wireless network interface ra0 does not start at boot

I recently installed USB Wireless Adapter based on Ralink RT5370 chip on my Ubuntu 10.04. Manufacturer drivers are installed properly and now I have ra0 wireless interface configured in ...
1
vote
0answers
87 views

Can I use /etc/init/ on Debian Wheezy to manage a daemon process?

I want to run a PHP daemon process and found a solution at Stackoverflow but unfortunately its not working. Now I thought Upstart is not installed since Debian still uses System V. I have two ...
1
vote
0answers
34 views

Running lengthy shutdown script on ubuntu

I need to perform some cleanup work before shutdown that will take 15 to 150 seconds on Kununtu 14.10. The cleanup action should be start after all network services like sshd, ftpd, samba etc. are ...
1
vote
0answers
83 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : ...
1
vote
0answers
42 views

Upstart restart process time

A question about upstart. I understand the restart command does a stop and restart of the process. What happens if the process will not stop and check for the signals for a long time (20min or 2h)? ...
1
vote
0answers
239 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
0
votes
0answers
56 views

Tell if a process is under systemd, init.d or Upstart control

Is it possible to reliable tell for a given Linux process if it was launched or is still supervised by an init.d script, Upstart or systemd ?
0
votes
0answers
26 views

cronjob + upstart for a node.js script

I can start my node.js script as a process like so: start demo because in /etc/init/demo.conf i have: respawn respawn limit unlimited exec node /home/engine/private_js/demo.js >> ...
0
votes
0answers
23 views

Script does not start when OS start|reboot

I have a file at /etc/init/pdoneVendorBroker.conf with the following content: description "PDone Vendor Broker" start on runlevel [234] stop on runlevel [0156] respawn exec php ...
0
votes
0answers
87 views

Setting user in Upstart script for Node.JS and Forever

I run a web site that uses Node.JS on Ubuntu Server (14.04 LTS). After rebooting the machine, my current workflow is to manually start the server manually by running the command $ forever start ...
0
votes
0answers
91 views

Running upstart as non-root user not working in Ubuntu 14.04 LTS

I realise a similar question has been asked before but the solutions aren’t working. I think its because I'm running a multi-line exec call: script exec start-stop-daemon --start --chuid sbprod ...
0
votes
0answers
50 views

Piped processes in upstart shell script continue running after stopping

I have an upstart script on my CentOS box that runs a shell script. The shell script runs a netcat command whose output is piped through a couple other commands and then ends up in a file. When I ...
0
votes
0answers
251 views

error with upstart script

Further to my last question, I'm now using logger. I have the following upstart configuration start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec 2>&1 > ...
-1
votes
0answers
10 views

Start Application on Boot Ubuntu

I am trying to make my application Ruby on Rails (OpenProject) start with the system on boot. When I test the script as root it returns the error: /usr/bin/env:ruby: No such file or directory. My ...