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
2k views

Why the services do not start at installation?

I've seen this sometime now, but not finding anything in the ubuntu man about this peculiar policy-rc.d binary that prevents services from being started/restarted/stopped when called by dpkg/apt, so I ...
1
vote
1answer
619 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 ...
1
vote
0answers
368 views

Changing a start up init.d script to use with new ubuntu

This is my code. I would like to change it to use with new versions of ubuntu. The thing is ubuntu doesn't have chkconfig any more. Also I heard that new ubuntu uses upstart instead of init type start ...
0
votes
0answers
14 views

I have to open recovery every time

When starting my computer, I see every time purple screen and caps lock blinking. I have to power-off It and open recovery , select root in menu and write reboot after I could get a normal booting. ...
0
votes
1answer
220 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
0
votes
1answer
152 views

upstart jobs and “and” conditions

I am trying to get an upstart job to start after both 2 other jobs have completed. As an example, I have debug.conf that looks like: start on stopped networking and stopped screen-cleanup task ...
1
vote
2answers
298 views

Upstart - start after task finished

I have an Upstart job configured using the task stanza, which another job depends on being finished before it starts. However, this job must also wait for a different service to be started before it ...
1
vote
1answer
175 views

Upstart is not finding my job

Hi there I have made the following job: description "Emacs daemon" start on runlevel[2345] stop on runlevel[!2345] expect daemon respawn respawn limit 10 5 # respawn up to 10 times, waiting 5 ...
0
votes
2answers
97 views

Why can't I connect to this service when launched via Upstart?

I have a web service written in Golang that I need to fire up using Upstart. I can run the service executable (named word) on port 5555 from within it's directory manually like so: PORT=5555 ./word ...
0
votes
0answers
161 views

How to keep SSH running without connection drop on Ubuntu 12.04

I use a Raspberry Pi ssh to my Ubuntu web server to manually run an application that would not work with keeping it run with Upstart or other daemon tools. However, within hours the connection would ...
0
votes
1answer
98 views

Limit the parallelisation of Upstart?

If I understand right, Upstart runs all tasks that are ready to run in parallel. However, is there a way to limit the amount of parallelisation? That is, the number of parallel tasks that are run ...
1
vote
0answers
235 views

Run Mono Application on Startup Ubuntu

I need run a c# Windows Forms application (Mono app) on Ubuntu startup, then I trying use Upstart. I run this application fine manually, but when I use the Upstart script, as follow: description ...
1
vote
1answer
329 views

Upstart not starting emacs --daemon

I am trying to start emacs daemon through upstart. Here is my script # emacs --daemon - Emacs daemon # # The Emacs daemon provides a server for Emacs clients. description "Emacs daemon" start ...
0
votes
1answer
225 views

upstart job doesn't stop on “service something stop”

Could you guys please help with with Upstart script ? For some reason it cannot stop java process on service something stop. service status says bbb stop/waiting I'm trying to run my app which is ...
2
votes
0answers
68 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that won't work because: That's bash ...
0
votes
1answer
108 views

No message appears when using notify-send inside a service, why?

I'm developing a notification script which sends me messages from a json-file. I tried to run it as a service, as this seemed to be the easiest way to start and stop the script from he commands line. ...
0
votes
1answer
230 views

Upstart job not starting

Can someone help me with a startup script not starting? I started it with initctl start startupScript, and it works fine. But it wont start at startup (= virtualbox, and mount, doesnt execute). I need ...
2
votes
0answers
58 views

Starting a script with a keypress without an X server

I am looking for a way to bind any sequence of keys to an action that will run a script. I need to accomplish this on a Ubuntu 12.10 server which does not have X. I have looked into Upstart however I ...
1
vote
1answer
178 views

Can upstart script be triggered by a device attached?

How should I specify the "start on" condition to run an upstart script when a device (an external disk) is attached?
3
votes
2answers
2k views

Why can't I restart cron daemon in 12.04 LTS?

I just changed the timezone on my server and therefore need to restart crond so that it will pickup the change, but when I try, this is what happens: root@s2:/# service cron restart stop: Unknown ...
1
vote
1answer
845 views

Running short-term tasks via upstart

OS: Ubuntu 12.04 Task: run script at certain start/stop conditions. No long-running service/daemon is launched, only short-term actions. Upstart script test.conf: description "test script" ...
2
votes
0answers
86 views

Default to adm group for upstart logs

This bug suggests that on 12.04, the default permissions for upstart logs do not allow rsyslogd to read them: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1074564 That is the logs need to ...
1
vote
0answers
82 views

Why this upstart job is preventing lightdm from shutdown or restart my notebook?

in order to have a permanet ssh tunnel running I set up the following upstart job in /etc/init/ssh-tunnel.conf: # ssh tunnel - simple personal ssh tunnel description "simple personal ssh tunnel" ...
3
votes
1answer
93 views

How to stop a upstart job when another is starting?

I want to stop (and start again later) several services manually. How can I figure out the correct sequence that respects the dependencies? In ancient times I could parse the contents of e. g. ...
2
votes
1answer
288 views

svnserve startup no longer works as documented

The documented methods of starting svnserve no longer work in Ubuntu 12.04 LTS. Ref: https://help.ubuntu.com/community/Subversion "inetd" scripts are obsolete. "xinetd" scripts are now nonstandard. ...
-1
votes
1answer
386 views

sudo service networking start doesn't work

I just configured dns-nameservers in /etc/network/interfaces. To make it take effect instantly, I typed sudo service networking stop, the desktop seems to kill some processes, anyway the UI is ...
4
votes
1answer
309 views

How to specify a daemon shutdown command with upstart?

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes. startup.sh - to start the server shutdown.sh ...
20
votes
4answers
33k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
1
vote
2answers
2k views

Upstart job won't start

I have a simple upstart job: - /etc/init/hmastart.conf I want to test it, so i run:- service hmastart start But i receive the following error:- start: Unknown job: hmastart I get the same error ...
1
vote
1answer
266 views

User defined upstart jobs using Openbox

I know that to enable user defined jobs for upstart you need to uncomment ubuntu in /etc/upstart-xsessions and this will allow user defined upstart jobs in ubuntu default Xsession. The question is ...
2
votes
1answer
131 views

Switch raring to systemd [closed]

I know that Raring use upstart as init system. However I'm wondering if it's possible to switch to systemd, as we can do it on Debian. I've found this ppa: systemd : Martin Pitt But the systemd ...
0
votes
1answer
379 views

Upstart and Node js: Cannot find module

I'm trying to setup upstart to run with my Node js and Socket.io server. /etc/init/quizens.conf env NODE_BIN=/usr/bin/node env APP_DIR=/root/quizens env SCRIPT_FILE="quizens.js" env ...
1
vote
1answer
132 views

runlevel misunderstanding

As I known there is no classical init in ubuntu, instead of init ubuntu uses upstart. Upstart is capable of fully simulation of classical init. The problem is I still don't understand how upstart ...
2
votes
1answer
560 views

How are kernel modules in /etc/modules determined (because one of mine fails to load)?

I was trying to setup lm-sensors (Community Guide) and when I get to step 4 (sudo service module-init-tools restart) the service fails to start. In /var/log/upstart/module-init-tools.log I get an ...
0
votes
1answer
101 views

Ubuntu upstart and issue with dns resolution not ready during reboot

I created in /etc/init a monit.conf file that is pretty standard. During reboot, however, when monit tries to start, it checks dns resolution for things in its configuration file (monitrc) but fails. ...
0
votes
1answer
126 views

Can I run my script using inputbox to appear my menu-box before login?

I am trying to do experiment with /etc/init. I have written a script which displays a window showing some menu. I don't understand on which event I should start my service. I don't want any desktop ...
2
votes
1answer
1k views

upstart service giving 'chdir: command not found' error

I've created an upstart conf script called watch_folder.conf that i have used successfully on a few ubuntu installs already but for some reason I'm getting an error from the following code: ...
1
vote
1answer
131 views

how can i get sequential execution list of init scripts?

I write following script but it is not working during upstart, start on startup exec echo "Current date:-" $(date) > /tmp/myscript.out I have stored this script as /etc/init/myscript.conf ...
1
vote
1answer
451 views

Upstart - Bluepill not starting without sudo

I have an upstart service to start bluepill (Ruby gem to monitor processes). The upstart config is below. description "Start up the bluepill service" start on runlevel [2] stop on runlevel [016] ...
2
votes
1answer
451 views

Upstart creates two processes instead of one

I'm trying to create a simple echo-service using ubuntu upstart. For some reason upstart behaves really strange. When it starts the echo server first time everything is ok, but when it starts it ...
1
vote
1answer
326 views

Issue With Upstart And RVM Gem?

Im trying to get a RVM gem to run via upstart... I can't seem to get it to work: siriserver.conf #siriserver start on filesystem or runlevel [2345] stop on runlevel [!2345] respawn exec ...
1
vote
1answer
48 views

Upstart doesn't produce any log on Ubuntu Raring [duplicate]

I've just installed Ubuntu 13.04 and added custom upstart scripts. These scripts work well and are already in use on other hosts (not Ubuntu). The problem is, upstart doesn't produce any log of what ...
2
votes
2answers
1k views

Upstart tracking wrong PID of process - not respawning

I originally asked this question on StackOverflow. Then realised that this is probably a better place. I have bluepill setup to monitor my delayed_job processes. (Ruby On Rails application) Using ...
1
vote
1answer
129 views

Running BaseX as an upstart job

I'm trying to configuring BaseX to run as a service on my server. The basexserver command has a flag -S whose functionality is listed as "start as service". If I run basexserver -S at the command ...
0
votes
2answers
289 views

Service starts when called, but not on startup

I wrote a simple upstart script that kicks off a python program, I have it saved as vgpusher.conf. It doesn't start automatically, but if I run sudo start vgpusher it starts and runs just fine. The ...
6
votes
1answer
713 views

Why don't custom upstart job names tab complete in the service command?

I'm used to create upstart services with a file in /etc/init/<service>.conf and it works perfectly fine, the only thing I'd like to is to have tab completion the same way that every service in ...
3
votes
2answers
744 views

How to create (via installer script) a task that will install my bash script so it runs on DE startup?

I've been reading for the last couple hours about Upstart, .xinitrc, .xsessions, rc.local, /etc/init.d/, /etc/xdg/autostart, @reboot in crontab and so many other things that I'm totally confused! ...
2
votes
1answer
32 views

How come service --staus-all outputs a non-existing service?

When I run sudo service --status-all It outputs [ ? ] jetty but there is no such service/process running in the system. How do I cleanup this service/process?
1
vote
2answers
774 views

Auto-start Upstart User Jobs on boot

I've enabled Upstart User Jobs and configured a few jobs. These jobs can be started/stopped by the respective user and all is well. However the start on stanza doesn't seem to have effect: start on ...
3
votes
2answers
292 views

Creating a “deadman” switch using Ubuntu to shutdown EC2 instance

I've put together a simple "deadman switch" using upstart to automatically shutdown my EC2 instances after a period of time. I'm doing this to avoid the dreaded Monday morning blues when you realized ...