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
136 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
470 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
474 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
336 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
49 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
136 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
319 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
775 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
796 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
821 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
301 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
592 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
361 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
106 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
1k 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
3k 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
82 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 ...
2
votes
1answer
595 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
55 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
3answers
13k 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
346 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?
0
votes
1answer
399 views

Restart Upstart

I'm in the process of building a job to work in upstart, and any time I have even a typo the entire upstart breaks; not just my job. Is there any way to reload upstart without rebooting?
1
vote
1answer
193 views

Am I using upstart correctly?

I'm trying to write a startup script for my Ubuntu 12.04 desktop that pings my Netgear router every 30 seconds (this is necessary as a nasty workaround for a separate problem I'm having). I read this ...
1
vote
1answer
343 views

Command fails to execute in upstart session job

This command: mongod --fork --dbpath ../data --smallfiles --logpath ../data/mongo.log runs perfectly from terminal, while in directory /mongo/bin/ But, when I use same command and directory for ...
2
votes
2answers
292 views

Powernap daemon doesn't start with upstart

I have a problem with powernap daemon on kubuntu 13.04, which doesn't start with upstart (or with /etc/init.d/powernap start). On my other machine with ubuntu 12.04.2 LTS it starts ok. $ sudo service ...
1
vote
5answers
9k views

Upstart can't start MySQL

After an installation of MySQL, I get a few errors and I can't run the MySQL daemon. I've tried uninstalling and reinstalling several times, and I'm not sure what's going on. Here's a snippit of what ...
3
votes
0answers
314 views

Shutdown slow: unknown job s35networking [closed]

Since I've upgraded to Ubuntu 13.04 from 12.04 LTS, I get this error when I shutdown the pc: rather than invoking init scripts through /etc/init.d, use the service(8) utility service S35 ...
6
votes
2answers
2k views

Upstart and core files

I have an upstart job that occasionally crashes with a segmentation fault, and I have a few questions about core dumps. First, should I add a stanza: limit core unlimited unlimited Is there a ...
1
vote
1answer
322 views

Startup script doesn't execute at startup

I have followed the tutorial here that shows how to setup the No-ip update program to start at system startup. I have done exactly as specified here, yet the program still doesn't start. Also, when I ...
4
votes
1answer
3k views

How should I start MongoDB on a NUMA machine?

When I first installed MongoDB 2.2.3 with apt-get, following the instructions from 10gen installation guide, it auto starts when the server starts. However, after following the instructions in ...
3
votes
2answers
1k views

Why is this laptop taking almost 1 minute to boot Ubuntu 13.04?

My dad's new HP Pavilion dv6 laptop running Ubuntu 13.04 takes almost a minute to boot up - it seems like it's hanging somewhere. Is there something I can do to easily fix it? I need some help ...
2
votes
1answer
399 views

Where is Unity startup script in rc?.d

I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2. What I want to do I want to ...
0
votes
2answers
676 views

Has behaviour of upstart changed in 13.04

I have an upstart conf that mounts a remote nfs at startup. Previously (in 12.10) it used start on (local-filesystems and net-device-up IFACE=eth0) in 13.04 this no longer works - I tried all ...
1
vote
0answers
39 views

apport package hook for 3rd-party package not being called

I have a proprietary package, installed via a .deb file. The package provides an upstart script which uses the respawn stanza - i.e. the executable gets restarted when it is killed, even with a ...
1
vote
0answers
206 views

initctl status autofs is stuck on stop/starting

We have an issue with Upstart not restarting the autofs job when the automount process dies, and the Upstart job status gets stuck in the "stop/starting" state. The process is not automatically ...
2
votes
1answer
964 views

Why are there start 'S' symlinks in rc0.d (shutdown) and rc6.d (reboot)?

Start 'S' symlinks in shutdown and restart runlevels? Why are there 'S00-S99' start symlinks in rc0.d and rc6.d? Ubuntu 13.04 directory listing: $ ls -l /etc/init.d/rc6.d lrwxrwxrwx 1 root root ...
1
vote
1answer
399 views

Start and stop parameters in init script

I have .conf a file in /etc/init/ with this code at the bottom: start on (started network-interface or started network-manager or started networking) stop on (stopping ...
0
votes
1answer
619 views

Upstart with a script that start and finish their own processes

I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required $ listener.py -startall $ listener.py -killall I can run it with this settings: # Listener ...
1
vote
0answers
133 views

How can I inspect Upstart Job States Transitions Using log file?

I want to have a look at the states transitions using the method described here: http://upstart.ubuntu.com/cookbook/#viewing-state-transitions. This is what I do: # initctl log-priority debug # ...
2
votes
2answers
862 views

Upstart script that depends on init.d scripts?

I have an upstart script to start a custom nodejs app. The app depends on couchdb and elasticsearch. couchdb and elasticsearch provide init.d scripts for starting/stopping them. Is it possible to tell ...
1
vote
1answer
178 views

Why can't we remove bluetooth service the reguler way?

The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
0
votes
1answer
214 views

Startup script for spawn-fcgi

I would like to use spawn-fcgi to start a web.py application on system boot. Is there any facility for managing spawn-fcgi through Upstart? (Is Upstart the modern system for managing services, or ...
3
votes
1answer
254 views

Can I use a custom shell with upstart script stanza?

I'm writing a few daemons implemented in pure shell script and would like to use zsh(powerful substitutions, modules with socket/tcp handling, etc) instead of the default /bin/sh. Can I tell the ...
1
vote
1answer
524 views

How do I restart conky and nautilus whenever they crash?

Many times nautilus crashes because of various reasons. When nautilus crash, it crashes with conky. The only way to get back conky and active desktop is to start nautilus and conky from terminal. ...