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

5
votes
0answers
891 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 /...
4
votes
0answers
123 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 ...
3
votes
0answers
69 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 ...
2
votes
0answers
33 views

What was the behavior before modern init replacements?

Based on this excellent answer on changes to init daemons: What is Upstart? ...it seems like modern init replacements including upstart and systemd have added functionality because they are event ...
2
votes
0answers
31 views

Early adbd on ubuntu touch device

I need to run adbd at early boot stage (before lightdm has started) on Ubuntu touch device (Nexus 10). As far as i know, adbd is launched after login screen password is entered. In upstart scripts i ...
2
votes
0answers
39 views

Using Screen inside /etc/init

I am trying to launch a .jar inside a screen session at boot using /etc/init Here is my script (pretty standard:) start on runlevel [2345] stop on runlevel [^2345] console log chdir /home/...
2
votes
0answers
187 views

deluge daemon crashes: There is a deluge daemon running with this config directory!

I am having a similar problem as described in Deluge Daemon continues to crash. I am sure, however, there are no deluge processes in the background when I start the daemon service. Here is my process ...
2
votes
0answers
63 views

Can't get slanger to start as an Upstart service

I have created the file /etc/init/slanger.conf and I'm trying to get it to start as a service. The following are the contents of the file start on started networking and runlevel [2345] stop on ...
2
votes
0answers
99 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
74 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 ...
2
votes
0answers
553 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 4....
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
177 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
369 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
352 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
27 views

Upstart services work in SSH session, but not in local terminal session

If I open a local terminal, and attempt to start an upstart service I get this error: service rsync status status: Unknown job: rsync But if I SSH in as the same user, it works fine: service rsync ...
1
vote
0answers
95 views

systemctl cannot disable services, displays upstart errors

On my Ubuntu 16.04 (Xenial) server, I cannot disable services from autostarting at boot. I get these error messages: $ sudo systemctl disable puppet.service ... initctl: Unable to connect to Upstart: ...
1
vote
0answers
37 views

Mongod service suddenly stopped at night. Understanding why

I've created a node.js server with a mongodb database on Ubuntu. I installed mongodb with the official documentation, using upstart. This morning, my node server wake me up with crash logs saying the ...
1
vote
0answers
21 views

xrandr reporting wrong resolution after booting from script started with upstart

I have a script in /home/username/.config/upstart myscript.conf ... description "my startup scripts" start on desktop-start exec ~/scripts/startup.sh start that startup script eventually calls ...
1
vote
0answers
13 views

Power on-off-on needed to boot laptop

Toshiba Satellite C660 01C01H 32-bit laptop (specifications at http://bit.ly/1PPMN30) Ubuntu 14.04.4 Trusty Tahr LTS When I switch on the laptop the Toshiba boot screen fails to appear OR the screen ...
1
vote
0answers
302 views

16.04 beta — problems with samba (systemd related) and nautilus (launcher related)

I decided to take the plunge on doing a do-release-upgrade tonight from 14.04.4 to 16.04. I only have two outstanding issues, both of which might just be due to buggy beta packages but I thought I'd ...
1
vote
0answers
18 views

Need to restart rinet manually on reboot

I redirect an internet connection through my desktop from WiFi to Ethernet for use by a Raspberry Pi. I then use rinet (manpage) to redirect one port back through the desktop so that I can access a ...
1
vote
0answers
32 views

Upstart Ruby version issue

I am trying to get Upstart to fire up Sidekiq (https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu). I can manually start it but the same command fails in the Upstart script. I have piped ...
1
vote
0answers
76 views

Capturing a kernel dump from a CPU soft lockup at boot?

I am SAN Booting an Ubuntu server and have configured the 14.04.2 client to the best of my ability according to: https://wiki.ubuntu.com/Kernel/CrashdumpRecipe It seems like the article works fine ...
1
vote
0answers
115 views

Creating an upstart service for dumping and uploading a mysql database on shutdown

I am running Ubuntu Server 14.04 LTS x64. I have two KVM guests. One is a file server and another runs mysql server. I have a script that I run on the file server. The script connects via ssh to the ...
1
vote
0answers
47 views

How to check if a service was started by upstart or sysvinit?

For some services (ex: bluetooth) I have entries in both /etc/init.d/ and in /etc/init/ directory. How do I know how this service is started ? By sysvinit or upstart ? I am using Ubuntu 14.04.
1
vote
0answers
27 views

How do I tell Upstart to run a script before shutting down any service?

I want to be able to tell upstart to run a certain script linked under /etc/rc0.d/K99-somescript to run before any of the services such as Nginx, PHP-fpm are shutdown.
1
vote
0answers
269 views

Lubuntu 15.10 systemd vs upstart kiosk script

Quite similar question that has been discussed HERE regarding the change of the default init daemon from Upstart to Systemd and converting foo.conf to foo.service for Systemd to be able to work with. ...
1
vote
0answers
193 views

openssh version 6.9+ upstart problems

I'm on trusty (14.04.2 LTS). current version of openssh=6.6 (OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3, OpenSSL 1.0.1f 6 Jan 2014) Was told to upgrade to openssh=6.9 or greater. Why does the ssh daemon now ...
1
vote
0answers
55 views

Cannot create custom mount point for /dev in systemd

I am working in an embedded system and we are migrating from upstart to systemd. I am trying to write .mount file for /dev in rootfs. But this failing. Can somebody please help ? # This file is part ...
1
vote
0answers
304 views

service xxx start runs in background only

I have a service that I run with a program that we developed. I want this program to start on startup and I want it to run in the foreground. Now I got it to a place where I can run it using " ...
1
vote
0answers
138 views

Can't find job mysql on crouton precise

I'm using Ubuntu precise as chroot in my chromebook machine. I'm trying to install mysql through apt-get install mysql-server. The thing is, when I try to start it, it can't find the job: (precise)...
1
vote
0answers
160 views

How can I get past the “Starting version 219” screen with 15.04?

so I was able to log on to my desktop earlier via the (upstart) option at the Advanced Options for Ubuntu, and I had updates to do. I ran the updates, and now I am still getting stuck at the Starting ...
1
vote
0answers
172 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
46 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
40 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
72 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
213 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
147 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
118 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 /home/...
1
vote
0answers
502 views

How to redirect the output to a log file from upstart script?

I am using upstart to start/stop my c++ app server as shown below - start on runlevel [2345] stop on runlevel [016] chdir /opt/tetra/app_server respawn post-stop script sleep 30 end script ...
1
vote
0answers
152 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
41 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
243 views

System hangs after /sbin/init starts; no login prompt

I have an Arndale board running Ubuntu 12.04 with the root file system mounted on a MicroSD card. Recent, that card was damaged and I tried to recreate the file system on a new 16GB card. All went ...
1
vote
0answers
132 views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
1
vote
0answers
1k 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
379 views

Upstart job not starting - virtual-filesystem not emitted?

I have installed logstash from the official elasticsearch repository on Ubuntu 14.10. Installation process added the upstart job /etc/init/logstash.conf and init script /etc/init.d/logstash # ...
1
vote
0answers
48 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
111 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
94 views

Making one Upstart script see environment variables of another

I have a server that starts with Upstart: /etc/init/server.conf description "Server" start on runlevel [2345] stop on runlevel [!2345] respawn exec /opt/myserver/runmyserver.sh To ...