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
2answers
105 views

Ubuntu 14 Upstart, Script Never Runs — No Log File

I apologize ahead of time if this has been answered, but Ive looked through all the other questions and havent found anything that helps. Here is my upstart script: nodeapps.conf start on [2345] ...
0
votes
0answers
14 views

Upstart Auto restart mysql when it stops

I was searching for a upstart script to auto restart mysql service when it crash since I need to manually use: sudo service mysql restart I'm new to ubuntu and I did not find it after many ...
0
votes
1answer
18 views

Upstart - Start-stop-daemon vs exec

I am writing my first init conf file using upstart. I would like to know what are the advantages of starting my daemon using start-stop-daemon. Why is it better then just: exec /path/to/my/daemon ...
0
votes
2answers
455 views

Starting nodejs application on server start gives exit with code 2

I'm running the below on server startup: exec sudo -E -u www-data /usr/bin/node /etc/nodeserver/app.js >> /var/log/applicationserver.log 2>&1 The console writes many messages that the ...
10
votes
2answers
465 views

What does init on Ubuntu do?

I already know that init is the magical program that is needed for booting your computer and managing runlevels, but what is it's real purpose? Why do we even need init in the first place? Why can't ...
1
vote
0answers
15 views

Export env variables to grandchild jobs

I have a set of upstart scripts, generated by foreman from a Procfile, to start my web service and async task queue worker. The way foreman generates the scripts is as follows: app app-web app-web-1 ...
0
votes
0answers
14 views

Upstart: wait for webping

I'm using upstart to start my server, but I would like the start process to wait for the localhost:port/webping to be available (200 OK) before considering the startup successful, so the automatic ...
0
votes
0answers
12 views

Why `initctl status tty1` gets `Unknown job: tty1`

# initctl status tty1 initctl: Unknown job: tty1 But there is a tty1.conf file in /etc/init and I haven't modified it: # cat /etc/init/tty1.conf # tty1 - getty # # This service maintains a getty on ...
1
vote
0answers
33 views

Start jackd with realtime priority with upstart

I'm trying to start jackd with realtime priority at boot with an uptstart script but with no success so far. I'm using ubuntu server 14.04. My upstart version is 1.12.1. The user and group I'm using ...
0
votes
0answers
16 views

Upstart script on first boot with cloud-init

I'm trying to launch an EC2 instance where I need to perform some initial setup of the instance (download and install packages, configure directories, etc.) as well as start a web service. The initial ...
2
votes
1answer
36 views

systemd in ubuntu 14.04

I noticed that the most recent update of ubuntu offers to install systemd components. I hesitate to allow this update for I had very nasty experience of doing this in debian-testing when services ...
0
votes
0answers
28 views

after do-dist-upgrade i have some problems on my xubuntu

Hello guys some weeks ago i did an do-dist-upgrade a virtualbox machine, and now i cant login correctly without getting stuck on logs screens, worst with reboot and shutdown ever get stuck on logs ...
2
votes
1answer
931 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
2answers
373 views

Purpose of “postrotate invoke-rc.d rsyslog rotate” when logrotating, and is this command outdated?

When using logrotate to keep log files rotating, I have seen postrotate invoke-rc.d rsyslog rotate > /dev/null endscript I know postrotate makes bash execute the following ...
0
votes
2answers
34 views

Gamma correction with Upstart and a script

I've written an Upstart job to automatically change display gamma according to change in display brightness: start on (backlight-device-changed) exec /usr/bin/gammach And this is "gammach": ...
1
vote
2answers
48 views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
2
votes
1answer
2k views

How to add startup services?

I'm on 12.10 and I use Synergy to share my mouse between my laptop and desktop monitors. I tend to start the synergys daemon manually, but I'd like for it to start automatically after boot. Now I've ...
0
votes
1answer
45 views

upstart and gnome-session-Unity.log goes mad

In my upstart folder in ~/.cache/upstart: -rw-r----- 1 bussiere bussiere 18G août 5 17:59 gnome-session-Unity.log The log goes mad I've tried purge logrotate and reinstall it but nope.
2
votes
3answers
1k views

Debugging the execution order of Upstart jobs

I'd like to be able to debug the execution order of the jobs started by Upstart (ideally without injecting dumping code into every job file). How can I do this?
2
votes
2answers
198 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 ...
1
vote
1answer
23 views

Can't get upstart service to honor capabilities(7)

I am developing a daemon started by upstart (Ubuntu 14.04) which needs to run as a non-privileged user (for security), but bind privileged port 443. I am using setcap to set the CAP_NET_BIND_SERVICE ...
1
vote
1answer
2k views

How do I get Upstart to start my Mediatomb service?

I've been struggling, trying to get my Mediatomb server to start automatically on Upstart run level 2. I can't figure it out. I guess Upstart is still new to me and I don't understand it. I even ...
-1
votes
1answer
29 views

Are there any plans to simplify console service management on Ubuntu?

I am quite perplexed about the direction in which service management is going on Ubuntu and the funny part is that the same seems to be happening with OS X but that's another story. I do appreciate ...
0
votes
1answer
40 views

passing port to calibre-server via env variable in upstart script

I'm trying to write an upstart script for calibre-server. I can add all the arguments I need using env variables except for --port. description "Calibre (ebook manager) content server" start on ...
0
votes
1answer
14 views

When will “runlevel” event be emitted?

start on runlevel [2345] referring this: The syntax of start on stanza is: start on EVENT [[KEY=]VALUE]... [and|or...] It means, runlevel is en event, [2345] is that event's environment ...
1
vote
1answer
37 views

Securing shared memory in Ubuntu (Linode VPS) renders it useless. Doesn't boot up [duplicate]

Everytime I setup a new VPS, I secure shared memory by adding the following to /etc/fstab: tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0 Which works as expected on every host, ...
260
votes
7answers
279k views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
0
votes
1answer
20 views

Minecraft Bukkit server spams logfile - Ubuntu 12.04

I have a virtual server (Ubuntu 12.04) and a serious problem with Minecraft/Bukkit. I've installed a fresh bukkit 1.6.4 on my virtual server and made some upstart script for it. Here is the ...
1
vote
1answer
32 views

How to force restart of a dependent service in upstart?

I have an upstart file for running a docker container: description "Start a worker" start on filesystem and started docker stop on stopping docker respawn script /usr/bin/docker start -a my_worker ...
21
votes
9answers
23k views

Why isn't my upstart service starting on system boot?

Following on from this question, I have written a simple upstart service (/etc/init/pms.conf) for my headless Ubuntu Server 11.04 box as follows: start on filesystem and net-device-up IFACE=eth0 stop ...
1
vote
2answers
2k views

Why my upstart script doesn't run?

I don't understant why my script is not running. Here is what I did (I'm using Ubuntu 10.04). I wrote a mountFTP.conf script: description "Mount the remote FTP for sync" start on started tty1 ...
1
vote
0answers
36 views

What is the Purpose of /etc/init/udev-fallback-graphics.conf in Ubuntu 14.04?

What is the purpose of the upstart configuration /etc/init/udev-fallback-graphics.conf (shown below) in Ubuntu 14.04 LTS? # fallback-graphics - take actions to initiate fallback graphics # # if we ...
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
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 ...
2
votes
1answer
65 views

Upstart job cannot create directory in /var/run

I the following config in /etc/init/foo.conf on Ubuntu 12.04.4: description "Foo" start on filesystem or runlevel [2345] stop on runlevel [!2345] pre-start script mkdir -p -m 0775 /var/run/foo ...
8
votes
2answers
15k views

Remove services from upstart

I have mysql installed (from repos) on a development machine (laptop) and I don't need the daemon running on every boot. I've copied /etc/init/mysql.conf to /etc/init/mysql.conf.old and then removed ...
0
votes
1answer
78 views

How Can I Suppress “Load Fallback Graphics Devices” and “Plymouth Upstart Bridge” Messages During Ubuntu Server 14.04 Boot-Up?

When booting Ubuntu Server 14.04 LTS, I see messages such as: * Starting load fallback graphics devices [FAIL] and init: plymouth-upstart-bridge main process terminated with status 1 and init: ...
0
votes
3answers
81 views

How to run a Phantomjs server with an upstart script?

I have phantomjs installed and I want to run a phantom server whenever the (Ubuntu) server starts. I am currently working locally on Ubuntu 14.04, and the server this will be deployed to is also ...
1
vote
2answers
52 views

Running a python scrip using startup

I am trying to get a simple python code that I have to run in the background at startup, and stay running. The best option that I have found so far is to use Upstart. I wrote the following .conf file ...
1
vote
1answer
1k views

tftpd-hpa server (timeout from client side) please help

I'm a bit new to version 14.04 of Ubuntu: No LSB modules are available. I am trying to set up a tftp server, mostly for backup up cisco ios configs. I have followed every tutorial I can, and I'm ...
2
votes
1answer
86 views

how to run a script on ubuntu shutdown when it needs network on [duplicate]

I have an upstart script that needs to run on reboot or shutdown, but it needs to access the network to post an http requests and wait for the replies, I tried start on starting rc and start on ...
0
votes
1answer
48 views

Which arguments are passed to init scripts during shutdown

I am currently looking at the startup and shutdown procedures for ubunut precise pangolin. As far as I understand at shutdown the system switches to runlevel 0 and all scripts with K* are executed ...
1
vote
2answers
40 views

How do you append to environment variable in Upstart?

I put the following in my /etc/init/myjob.conf file but it doesn't seem to work env PATH=$PATH:/mnt/data/src env PYTHONPATH=$PYTHONPATH:/mnt/progs/link Is it possible to somehow append to an ...
1
vote
1answer
46 views

upstart script not working Ugh! So frustrating!

Here is a copy of my conf file description "ncurses BitTorrent client based on LibTorrent" console none expect fork kill timeout 30 start on (local-filesystems and net-device-up and runlevel ...
1
vote
1answer
179 views

Full switch to systemd from sysv (apt-get install systemd-sysv not working) [closed]

I have systemd installed, but I want to make a full switch. I've read here that I should just install systemd-sysv, but when I attempt to do that I get this message: root@arm:/usr/lib/systemd# ...
1
vote
1answer
41 views

What is the right way to restart dependent services while package installation?

I am creating a configuration package, and would like to stop and restart services whose configuration is affected. Right now I am using the service [stop|restart] in {pre,post}{inst,rm} way. I read ...
0
votes
1answer
46 views

Node.js server silently fails with Upstart

I can manually run my Node.js server with ./server.js, but when I try to daemonize it with Upstart, it silently fails. Any idea why this would happen? I tried enabling console logging in the Upstart ...
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 ...
1
vote
1answer
191 views

upstart logs missing [duplicate]

I have been trying (unsuccessfully) to automate a script (or at least the actions contained within) that I run in Terminal each time a reboot my system, to enable the WiFi. I have been following as ...
3
votes
1answer
195 views

Where are Upstart log messages on Ubuntu 13.X?

On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog. Commands: # initctl log-priority info # initctl emit hello Log: Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: ...