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
3answers
22 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
39 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
762 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
64 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
28 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 ...
0
votes
0answers
38 views

Stable 14.04 system suddenly will not boot - processes terminated with status 6 [on hold]

My laptop was running just fine, but tonight, it ran out of battery and wouldn't start up again afterwards. It's encrypted It can boot from a USB stick and the drive passes an e2fsck -f (after ...
1
vote
2answers
30 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
37 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 ...
0
votes
0answers
21 views

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

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

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

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
26 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 ...
247
votes
7answers
264k 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
29 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
47 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
182 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
126 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: ...
14
votes
3answers
3k views

How do I stop all processes in a chroot?

I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
2
votes
1answer
22 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
15 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 ...
2
votes
1answer
33 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 ...
0
votes
1answer
22 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 ...
8
votes
1answer
78 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 ...
2
votes
1answer
26 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 ...
0
votes
0answers
68 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
37 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 ...
1
vote
3answers
2k views

How to determine status of upstart job in bash script?

How do you determine if an upstart job is running inside of a Bash script? That is I need a "boolean" value to do something like: #!/bin/bash if [ determine_if_job_x_is_running ]; then echo "I see ...
0
votes
0answers
14 views

I have to open recovery every time

When starting my computer, I see every time purple screen and caps lock blinking. I have to power-off It and open recovery , select root in menu and write reboot after I could get a normal booting. ...
2
votes
1answer
28 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 ...
0
votes
1answer
17 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 ...
0
votes
2answers
382 views

12.04 in VirtualBox doesn't execute any custom startup script

I'm trying to use Vagrant for our development process, mostly web development on a LAMP system. On shutdown of the VM I dump the content of the MySQL database to an SQL file in the shared folder. This ...
1
vote
2answers
28 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
856 views

14.04 PXE slow boot process (udev/upstart/systemd)

I've been using a diskless installation of Ubuntu for our department up until Ubuntu 13.04, without any major issues so far. However, with 14.04, something weird is happening in the boot process ...
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
30 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 ...
3
votes
3answers
596 views

Upstart: Run job after networking has finished starting

I'm trying to start an upstart job after making sure networking interfaces are up. This is what I have now: start on started network-interface INTERFACE=eth0 stop on runlevel [!2345] pre-start ...
1
vote
1answer
104 views

Starting/stopping upstart service when Digitalocean droplet is created (14.04)

I'm running a node.js server on a Digitalocean droplet, and I want the server to announce that it's ready to an external service (via HTTP post). The server runs via an upstart script using the ...
1
vote
1answer
75 views

Startup & shutdown scripts for Java servers

I am trying to design a graceful startup/shutdown script (Bash) for a Java app (JAR) that I will be deploying to my Ubuntu 14.04 server. I'm looking for a clean, Linux- and Ubuntu-friendly way of ...
1
vote
1answer
35 views

How to setup this X server as a service with upstart?

This is the script I have to make my X Server up and running... The goal is to make it restart in case of a crash... description "X server" start on runlevel [2534] stop on runlevel [!2534] script ...
0
votes
1answer
49 views

Can I learn systemd on an Upstart system?

I want to leave my current system running with Upstart (if it ain't broke...). However, I would also like to dip my toe into systemd (in anticipation of the changeover). Is there any way to get ...
1
vote
2answers
113 views

How do I configure my Upstart scripts to take dependencies into account?

I have install PostgreSQL, Atlassian JIRA, Stash, Confluence and Crowd on a single Ubuntu 12.04 Server. They are integrated and working per Atlassian documentation. One thing I did notice is that ...
3
votes
3answers
113 views

Preparing a service to use upstart and systemD (compatibility)

We are currently building an cool open source tool to be used as a linux service. so I begin writing an upstart script, But then I wondered, if debian/ubuntu world is moving to systemD, should I write ...
1
vote
2answers
98 views

Run a custom init script always before lightdm.conf

I have a firstboot script /etc/init/firstboot.conf which starts on "filesystem". This file creates some symlinks to some libs in /usr/lib Issue is , /etc/init/lightdm.conf also starts on ...
2
votes
2answers
102 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 ...
0
votes
1answer
46 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
56 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
1answer
192 views

Stuck on login screen!

I have only one user account on Lubuntu 13.10 and the automatic access was enabled. I decided to change this option, I wanted to see the login screen on startup where I can choose the user and run the ...
12
votes
3answers
4k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
21
votes
9answers
22k 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
1answer
33 views

Upstart sub-command tab completion with zsh

I've just recently switched to ZShell, and am loving it so far. One issue I'm having however is that my init.d or upstart scripts used to have tab completion for their subcommands, but now it doesn't. ...
1
vote
2answers
372 views

Unable to start kde

Rebooting my laptop after a few days of uptime (so I don't know what could have triggered the issue) I have found that I am unable to login from lightdm. My password is accepted and the fields ...