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

4
votes
0answers
316 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 ...
3
votes
0answers
56 views

How do I stop a job before its dependencies?

I have a job that does some things and uses other locally installed services (such as the mail server). Sometimes I do an ACPI shutdown but I need this service to complete the ongoing operation ...
3
votes
0answers
97 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 ...
2
votes
0answers
90 views

Cannot stop nginx service

It took me a while to find out, but as of some recent-ish update, I can't stop Nginx on any of my Ubuntu 12.04 or Ubuntu 14.04 servers. I run sudo service nginx stop, and I get nginx start/running, ...
2
votes
0answers
70 views

PXE boot 14.04 : filesystem.dir not working: do I have to use filesystem.squashfs?

I've been using PXE-Boot with an extracted filesystem rather than squashfs so far: [NFS-server]:/[cdpath]/casper/filesystem.dir/ instead of [NFS-server]:/[cdpath]/casper/filesystem.squashfs This ...
2
votes
0answers
423 views

Logging out from Ubuntu takes too long

When I first had only Unity as a desktop manager, I didn't need to log out so I'm not sure if this issue has been around before. I'm say so because It's important to know that I currently have Xfce ...
2
votes
0answers
62 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 ...
2
votes
0answers
159 views

Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?

I'd like to be able to use a terminal or console to configure runlevels. I don't need the conditions for starting and stopping services to be any more complicated than sysv. I just want to base ...
2
votes
0answers
290 views

declaring dependencies in upstart

It seems as if the accepted way to specify a dependency of service A on service B in upstart is to work in the reverse dependency direction: give service B a start on starting A stanza. I'd like to ...
2
votes
0answers
312 views

Quickly stop all network services except sshd (or boot with only sshd running)

I have an Ubuntu Server 12.04 box acting as a home file server. At times I would like to be able to brings down all my normal network services (nfs-kernel-server and friends, netatalk, nmbd, smbd, ...
1
vote
0answers
7 views

start on ( condition ) in file /etc/init/rc-sysinit.conf

I am actually trying to add a boot options to start only the filesystem or start it with the static-network-up based on some system settings. We have a standard installation for multiple types of ...
1
vote
0answers
16 views

Job on Upstart not started

I'm trying to start my application at boot, but I can not ... the script in upstart calls another script, I'm not getting or whether the 2nd script is called, follows the two scripts: 1º Script ...
1
vote
0answers
9 views

What does the procps upstart job start on condition need to be to properly apply sysctl.conf IPv6 settings?

In ubuntu 14.04 disabling IPv6 via sysctl.conf does not work. Though the settings are applied on startup, both /proc/sys/net/ipv6/conf/all/disable_ipv6 and sysctl net.ipv6.conf.all.disable_ipv6 ...
1
vote
0answers
23 views

Ubuntu Phone sleep command

I want to use a small script initiated by upstart to periodically synchronise calendar and contacts. The script works and it is started by upstart. Since it is in an endless loop until stopped I ...
1
vote
0answers
18 views

Why is my upstart process constantly respawning?

Here is my current configuration file for the service: description "My App" author "Me" start on runlevel [2345] stop on runlevel [016] respawn respawn limit 99 5 chdir /home/ubuntu/myapp/ script ...
1
vote
0answers
110 views

15.04 upstart&systemd boot problem

I upgraded to Kubuntu 15.04 and cannot start using either systemd or upstart without going into rescue mode. I switched from systemd to upstart without any change. It hangs at the Kubuntu logo and ...
1
vote
0answers
25 views

upstart script to start after dns is ready?

Is it possible to make an upstart job conf so that it starts after DNS is started through /etc/init.d/bind9? I'd rather than have to modify the default system /etc/init.d/bind9 to make it emit ...
1
vote
0answers
30 views

Write a Custom Status Check for Upstart

I have an Upstart file to launch a daemon. I don't know how many times it forks and when I last tried to experiment to figure that out, upstart wedged hard and I had to power-cycle the system. ...
1
vote
0answers
40 views

Massive log file and 100% CPU usage for 'upstart'

I have a fresh install of Ubuntu 14.10, and I installed some programs like MATLAB, Chromium, Evolution and other fairly harmless stuff. However, I have run into some trouble recently. The file ...
1
vote
0answers
64 views

Problems with starting x11vnc on boot

I'm trying to start up x11vnc on boot, without the need to log in, but I ran into quite a few problems and none of the guides helped. First of all, rc.local does not work, as it apparently starts ...
1
vote
0answers
21 views

What is the idiomatic way to start/stop a group of Upstarted services with a single command?

I have a set of a dozen or so services that usually are restarted in a group, but there are also cases where they need to be restarted / stopped individually. It is cumbersome and error prone to have ...
1
vote
0answers
267 views

Change logging directory/file for an Upstart service

I have an upstart service that it fills up the space. I need to move the logs from /var/log/upstart to a different directory /pub/data/logs/order_server. I tried to do it using console log --logdir ...
1
vote
0answers
398 views

Process “/bin/sh -e /proc/self/fd/9” - what starts it and why?

I have a process /bin/sh -e /proc/self/fd/9 that runs on my system. sh -e /path/to/file in dash (which sh is symlinked to on my Kubuntu 14.10) just tests for existence of a file. In /proc/self/fs I ...
1
vote
0answers
451 views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
1
vote
0answers
29 views

Prevent service from starting manually when dependent services are down

Suppose I have two services db and app (which needs db to be up and running before it starts). They are starting correctly on startup and when I do sudo service db stop it stops both db and app. But ...
1
vote
0answers
50 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
1
vote
0answers
57 views

How to autorun a script as root just after the user's encrypted home directory has become mounted on headless server?

There is a problem with ecryptfs that it heavily limits the maximal filename length. To walkaround it I link most home subfolders to the external encrypted partition. The partition gets mounted just ...
1
vote
0answers
127 views

Given a user, how to control which services to disable after starting a graphical session?

I am not familiar with upstart, yet. When I start KDE with my own account upstart starts a lot of services as far as I understand. But I have some other users that I let them use openbox because I ...
1
vote
0answers
220 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
0answers
250 views

14.04 stops booting mid-upstart - how to debug?

My laptop is fully updated to the latest 14.04 packages, and all of a sudden it just stops coming up during boot: (I'm sure you can ignore the vg_sys-root at the top) I booted into recovery, ...
1
vote
0answers
267 views

How to start xfce4 session inside upstart user session?

I would like to use a upstart user session to run some jobs under user control. My machine has mythbuntu installed which means I have lightdm which starts an xfce4-session. How should I replace my ...
1
vote
0answers
50 views

log files prevent clean root umount

My root fs is always dirty after shutdown. To see why, I added a couple of lines into /etc/init.d/umountroot: /usr/bin/lsof / | /usr/bin/awk '$4 ~ /[0-9].*w/' ... mount -o remount,ro ... /bin/bash ...
1
vote
0answers
210 views

How to run a nohup script with upstart?

I'm porting some SysV-style service scripts for HBase (a java service) to upstart. The sysv scripts don't call java directly, but instead call hbase-daemon.sh. This is a start-stop-daemon-like tool ...
1
vote
0answers
263 views

upstart-socket-bridge and python3 example

I'm trying to get upstart-socket-bridge to pass the socket to a Python3 application. Are there any working examples of u-s-b using Python 2 or 3? This example is a test setup only. u-s-b launches ...
1
vote
0answers
306 views

UPSTART services all hang when stopping (stop/waiting)

I am using Ubuntu 13.10 After an IPL, there are many run once services that hang, they are all in STOP/WAITING status. Also, if I try to stop any normal service like apache2, mysql, vsftp I get the ...
1
vote
0answers
448 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 ...
1
vote
0answers
808 views

Upstart job not running at boot

Hi all I have been trying to figure out my problem for some time and think it is now time to ask someone who know more than me. Hopefully this is only a simple solution for someone in the know ...
1
vote
0answers
246 views

Upstart service stops when I log out

I've written an upstart script I want to run when my server starts up, only it does not. It will run when I call sudo start wiki, where wiki is the name of my service, however it stops running when I ...
0
votes
0answers
15 views

Noticable Faster Boot With Upstart, 15.04

It takes about a minute to boot with systemd, but however, with upstart just 20, most of the time 10 seconds. I actually can just switch from systemd to upstart, but upstart is not the default init ...
0
votes
0answers
20 views

Cannot extract package when execut node-webkit application in upstart

I wrote an application using node-webkit and this application needs to be executed when the ubuntu system boot-up every time. I put the command, /path/nodewebkit/nw /path/myapp.nw , into a upstart ...
0
votes
0answers
17 views

Start Rails Application on Boot Ubuntu

I am trying to make my application Ruby on Rails (OpenProject) starting with the system boot, but to test the script as root, returns me the error: /usr/bin/env:ruby: No such file or directory. My ...
0
votes
0answers
24 views

how do I diagnose why a process is starting?

I'm running an ubuntu box, mainly as a learning exercise, so I should probably begin by stating that I'm still very much at the "copying commands until something works" stage of unix knowledge. I ...
0
votes
0answers
77 views

Autostart x11vnc in Lubuntu

I am trying to get x11vnc to autostart at boot time to remotely login to a Lubuntu 14.04 box without a local session. I have found several threads related to this issue, but they are mostly outdated ...
0
votes
0answers
41 views

I want to run a script on boot system Ubuntu 14.04 Server

I've done anything like this I made a symlink in /etc/init.d sudo ln -s /home/sts/erp-enterprise/bin/jleaf-apps /etc/init.d then I run the command $ sudo update-rc.d jleaf-apps enable then ...
0
votes
0answers
32 views

Apache Storm and upstart

I'm trying to start apache storm on Ubuntu 14.04 LTS server with upstart script. The zookeepers instances and the nimbus are starting properly but the supervisor instance can only start when I set the ...
0
votes
0answers
28 views

How can I make one legacy sysvinit script (xen) start before an upstart job (lxc)?

I am running Xen with an Ubuntu trusty Dom0 in the following configuration: FreeBSD DomU vault exports ZFS filesystem /storage/backuppc via NFS. Ubuntu Dom0 keep mounts vault:/storage/backuppc at ...
0
votes
0answers
23 views

Help writing an Upstart script

On my Ubuntu 14.04.2 server there's an installation of ownCloud with its News app. Now, for some reason or another, a couple of days ago the app stopped pulling new articles via owncloud cron.php. ...
0
votes
0answers
41 views

Ubuntu wont boot under systemd

I have just installed Ubuntu 15.04 on my laptop, the installation went fine but Ubuntu will not boot. Using the default boot options I get stuck at a prompt to enter an encryption passphrase that I ...
0
votes
0answers
258 views

How to run docker-compose at bootup?

This is on an Ubuntu 14.04 LTS VM running Docker and I suspect respawn is the cause of my problem but not sure of the ideal solution. Current upstart script (cat /etc/init/dockersuitecrm.conf) ...
0
votes
0answers
19 views

Upstart task is terminating spawned processes

I am using Ubuntu 14.04. I want to create an upstart task that will run a simple script on system boot. The script runs properly when run from the command line. Its job is to iterate a number of ...