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

1
vote
1answer
751 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
78 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
91 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
258 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
377 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
247 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 ...
19
votes
4answers
30k 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
1k 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
251 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
129 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
362 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
125 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
487 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
95 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
0answers
46 views

Record events emitted during boot process with time stamp and task name (0.3.11 upstart version)

trying to monitor the boot process by listening to all the events in test.conf as well want to add time stamp information to the emitted event. From cookbook, tried recording the events as follows ...
0
votes
0answers
148 views

Upstart runs node.js app but function is not working properly

I don't know much about upstart. This script is copy from a tutorial blog and it does its job just fine. I have a node.js app that sits in dormant until it was triggered by users' request. The ...
0
votes
0answers
117 views

xOrg (Upstart) starts on wrong TTY

currently I'm developing on a little project consisting fully automated computer. I installed the Ubuntu server edition to get a very clean installation and installed xOrg, dwm etc. on it. Afterwards ...
0
votes
0answers
303 views

Correctly configure daemon (god) in /etc/init/ so it automatically starts during a reboot

For the life of me, I need help. I have Ubuntu 12.04 LTS installed and I believe that this version of Ubuntu already comes pre-configured with Upstart, which I'm assuming that all I need to do is ...
0
votes
1answer
125 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 ...
1
vote
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
127 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
426 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
426 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 ...
0
votes
0answers
66 views

After boot, the console does not switch to tty1

I'm running Ubuntu Server 12.04 LTS, and upon boot, all services start successfully (confirmed via watching the boot in verbose mode as well as looking at the contents of boot.log), but it doesn't ...
1
vote
1answer
320 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
47 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
1answer
951 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
121 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
249 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 ...
5
votes
1answer
642 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
690 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! ...
-1
votes
0answers
46 views

How to start 2 mongodb services

I need to start 2 MongoDB 2.4.4 Instances as Services on a Ubuntu 12.04 LTS One is a replica from another server and the other one is a testsystem. Simply cloning the upstart script in /etc/init/ ...
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
729 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
284 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 ...
1
vote
1answer
546 views

upstart bittorrent sync two configs for btsync

I want to write an upstart script for BitTorrent Sync that starts btsync like "btsync --config day.conf" in the morning and restarts it with "btsync --config night.conf" at night. This way, I would be ...
1
vote
1answer
2k views

How to repair installation, accidentally deleted /sbin/initctl

I'm running Ubuntu 12.04 on a VirtualBox. I was trying to create a central log server with rsyslog. At some point I made changes to the conf file and tried to restart rsyslog, but started getting the ...
3
votes
0answers
356 views

System won't shutdown unless I stop networking init script [closed]

I speculate it's networking related since I could only shut down my system if I do /etc/init.d/networking stop first. If I tried to put the system to sleep, it disconnect the network then reconnect it ...
0
votes
1answer
99 views

Hide desktop startup screen

I am working on a hardware device running on Ubuntu. One of the most important features is good presentation - in my case not showing the OS startup screen etc. Currently I am using upstart to start ...
0
votes
1answer
948 views

Upstart job doesn't die correctly

I'm making a simple upstart daemon. Following the Upstart documentation[1] I make the conf script: description "Super Daemon" author "Bastian Baltasar Bux" start on started dbus stop on runlevel ...
2
votes
2answers
5k views

lightdm fail to start automatically after last update

I have 12.04 LTS, I don't think I installed anything extraordinary lately, (just uninstalled lxc-docker), but after last automatic update I am left with console. I can do service lightdm start and ...
10
votes
1answer
2k views

What are all the autostart locations in Ubuntu?

I'm a Ubuntu newbie in need of some advice from anyone very familiar with the different Ubuntu startup methodologies. I'm interested in enumerating all the applications that are triggered at startup ...
1
vote
1answer
2k views

Upstart job fails to respawn and hangs when tried to stop/restart it

I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
0
votes
1answer
77 views

How can I tell inside an upstart script if the job was killed(crashed) or stopped normaly

Is there a way to know within the script if the job in question was killed(crashed) or stopped normaly. I want to kill another process in post-stop script only when the current job crashed and not ...
1
vote
1answer
529 views

Configure owner and permissions for upstart log files

When logging an upstart job with the standard console log stanza, can the resulting log files in /var/log/upstart be configured to be written with a mode or owner other than the default?
0
votes
1answer
54 views

My process is already daemonized before calling fork

I am starting process with upstart, to run as service using following command but looks like before i call the fork in main() of testservice it's already running as daemon. Any ideas what could be ...
12
votes
2answers
11k views

Correct way to install a custom upstart service

I am using upstart for services on my servers. Writing a conf file and placing it in /etc/init is easy enough, but that doesn't seem to completely install. For one, the service --status-all doesn't ...
1
vote
2answers
3k views

Systemd is installed on Ubuntu Raring?

Systemd appears to be installed in Ubuntu Raring. What does it provide that upstart doesn't provide? Why is it there? I thought Ubuntu was keeping upstart.
0
votes
1answer
307 views

Upstart: report (email, log) on respawn and failure

I would like to get an email when an upstart job fails and respawns, and when all respawns are depleted, and the job fails. How can I do that?