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
1answer
20 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
25 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
32 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
25 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
27 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
21 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 ...
1
vote
1answer
85 views

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

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
21 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
31 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
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 ...
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 ...
0
votes
0answers
65 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 ...
0
votes
1answer
15 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
27 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
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
44 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
27 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
55 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
101 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 ...
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
1answer
23 views

Config --no-log for an init deamon job

I have a proccess configured under /etc/init and it runs by the init deamon, and want this proccess to stop sending logs to the /var/log/upstart dir. I read this document: ...
1
vote
1answer
77 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
1answer
814 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 ...
1
vote
2answers
367 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 ...
1
vote
1answer
74 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
310 views

Why isn't my Upstart script running on 14.04?

I have the following Upstart script saved as /etc/init/automount.conf: description "SOME DESCRIPTION" start on startup task exec mount -t vboxsf WebApps -o rw,dmode=777,gid=GROUP_ID,uid=USER_ID ...
1
vote
2answers
97 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 ...
0
votes
0answers
114 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
1answer
729 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 ...
0
votes
1answer
76 views

Multi-user text mode runlevel in Ubuntu

I use Ubuntu as a server, and I want to change its runlevel to be full multi-user text mode (like init 3 in RedHat). From this command runlevel i see that am running N 2 which is Graphical ...
1
vote
1answer
103 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 ...
3
votes
3answers
112 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
112 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 ...
0
votes
1answer
29 views

Howto respawn a process on startup

In Slackware I just change one line in initab to run my program in a different console on bootup with auto respawn, how can I accomplish this in Ubuntu .. it seem one need a phd to write a upstart ...
1
vote
1answer
63 views

Upstart Job (.conf) Fails to Install

I have a simple package (.deb) wherein the main goal is to create an Upstart job. Call it Foo. It fails to create the job file /etc/init/Foo.conf. Package Definition I have created the package ...
1
vote
1answer
78 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
0
votes
2answers
32 views

Networking doesn't start after upgrade with new upstart system

I have upgraded to the stable version of ubuntu server and my network doesn't start. There should be some problem with the new upstart service, because the network seems to try to load a dhcp, but i ...
0
votes
3answers
317 views

/etc/sysctl.conf doesn't persist after reboot

In a mission to reduce frequent memory flushes to filesystem, I added the following two lines to /etc/syctl.conf. vm.dirty_background_ratio = 50 vm.dirty_ratio = 80 I then ran, sudo sysctl -p and ...
5
votes
1answer
65 views

Set permanent command-line options to upstart

I would like to add a command-line option, such as --default-console=none, to upstart. I believe I can just add these to the kernel invocation line and they will be passed on, is this true? If so, ...
3
votes
2answers
111 views

How To Run An Application On Startup Automatically?

I am using "UbuntuServer13.10" and I have Dynamic IP. So for learning purpose, I want to add a host on my dynamic IP to open my server easily from anywhere. For this purpose, I used www.noip.com ...
3
votes
1answer
124 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: ...
0
votes
0answers
111 views

What's the proper way to restart X or lightdm on the command line via upstart?

I want to restart the display manager (lightdm in my case, on Ubuntu 13.10) on the command line. What's the proper way to do it? sudo /etc/init.d/lightdm restart from a terminal emulator doesn't ...
0
votes
0answers
26 views

suddenly 30 gb gone from Home in ubuntu how?

Hi noticed a messege showing that less diskspace please clear up space in ubuntu. and when i took properties, i was surprised to see that of my 50gb partition only 4kb is left. then i followed the ...