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
11 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
0
votes
2answers
69 views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
0
votes
0answers
15 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
21 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 ...
1
vote
0answers
17 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
15 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 ...
10
votes
2answers
472 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 ...
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
36 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
17 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
38 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
29 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 ...
0
votes
2answers
36 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
52 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
2answers
201 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
47 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.
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 ...
0
votes
1answer
43 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
15 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
votes
1answer
30 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
21 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
0answers
39 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 ...
1
vote
1answer
35 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 ...
2
votes
1answer
66 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 ...
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
83 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
55 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 ...
0
votes
1answer
53 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
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, ...
1
vote
1answer
42 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 ...
2
votes
1answer
36 views

Upstart does not satisfy resources usage requirements set by “limit” stanza

I am experiencing problems with Upstart. I am trying to start the transmission-daemon (a BitTorrent client) with a limit on the maximum resident set size (rss). This is the ...
0
votes
0answers
28 views

Bitnami MediaWiki Stack - Autostart problem

I'm pretty new to the unix world and am stuck on the following problem: I've installed a bitnami MediaWiki package onto my Ubuntu system which includes an Apache Server, MySQL, PHP and the MediaWiki ...
1
vote
1answer
186 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# ...
0
votes
1answer
44 views

How do I configure smuxi-server to run as a normal service?

I installed the smuxi-engine package on my Ubuntu 14.04 server which contains the smuxi-server binary. But I do not see instructions anywhere on configuring it to run as a service. Is there a way to ...
2
votes
1answer
63 views

How can I alternate between two kiosk-mode appplications?

I currently have a single-user system that autoloads into X and starts XBMC via a super-simple Upstart job that runs: su -c "startx /etc/X11/Xsession /usr/bin/xbmc-standalone -- -bs" oli ...
2
votes
1answer
34 views

How to run a custom command for any X session

I need to patch the gamma on my monitor that is really out of balance, in short I need to run a command like xgamma -gamma 1.2 for any X session that I might start on my machine. My problem is that ...
8
votes
1answer
94 views

About dbus-daemon's activation parameter

I'm using Ubuntu12.04 LTS. I saw following line in /etc/init.d/dbus.conf. exec dbus-daemon --system --fork --activation=upstart And I saw the man page for dbus-daemon, and then found the ...
0
votes
0answers
110 views

Xubuntu 14.04 LightDM stalls after install of NIS NFS and reboot

After a clean 14.04 install of Xubuntu I went on to add NIS and NFS for remote access to the server. However, on reboot the system gets to the LightDM greeter and stalls (the consoles at Alt-F1 etc ...
1
vote
0answers
59 views

Upstart not reopening log files on logrotation

We use upstart to manage our services on our Ubuntu servers. They produce logs which are logged out to /var/log/upstart/SERVICE_NAME.log Then daily, the log files are rotated using the logrotation ...
0
votes
1answer
22 views

WOL upstart script won't run upon reboot 12.04.4

I am trying to enable WOL and followed this answer: How can I enable wake-on-lan permanently? As per the link, I created an upstart job to enable WOL upon reboot. Script is: start on started network ...
2
votes
1answer
33 views

Limiting nproc in an upstart job

What exactly does the stanza limit nproc 20 20 in an Upstart job do? I've read the documentation here (http://upstart.ubuntu.com/wiki/Stanzas#limit), and it seems like it would limit nproc for any ...
1
vote
2answers
43 views

Upstart: pipe the output of multiple commands

I try to detect if there is a network link (cable plugged/unplugged) in an upstart script (Ubuntu 12.04). Here the relevant part of my script (which didndt work): script if [ /sbin/ethtool eth0 | ...
0
votes
1answer
63 views

Start daemon after specific samba share is mounted

I have a homebrew headless NAS running 12.04. In it I have a bunch of disks that are presented as a samba share thanks to Greyhole. If I want to do anything to the files within this share, I must do ...
1
vote
1answer
44 views

Unable to start GUI app from upstart

As part of post-start of my app say "mydaemon", I want to launch a GUI app say "mygui". I am unable to do this. I have verified user perm using xhost, DISPLAY variable is set correctly. conf file in ...
0
votes
1answer
19 views

Does upstart chdir works with symlinks?

Currently in my upstart script, chdir points to a symlink (soft). Does chdir respect the symlink or goes directly to the symlinked directory? The question why I ask this is because in a web server I ...
1
vote
1answer
79 views

User upstart session in different window manager wIndow manager

I am using Ubuntu 14.04 and i3 as window manager. After I have logged in to i3, upstart won't find my user jobs under ~/.config/upstart/. How can I make upstart find these config files without having ...
2
votes
2answers
164 views

how to setup automatic core dump on upstart script?

the myapp is an application that crashes eventually. I would like to get the core dump of those crashes... this is the upstart script I tried so far... but it still doesn't work description ...