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

MongoDB manually preparing for upstart but not running

I am on Ubuntu 14.04.1 LTS. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty Instead of using the system ...
0
votes
0answers
13 views

Running upstart as non-root user not working in Ubuntu 14.04 LTS

I realise a similar question has been asked before but the solutions aren’t working. I think its because I'm running a multi-line exec call: script exec start-stop-daemon --start --chuid sbprod ...
0
votes
1answer
48 views

What do these parameters do?

What is the meaning of the switches and parameters of this command? exec su -s /bin/sh -c 'exec "$0" "$@"' root -- /opt/nsq/bin/nsqd Specifically the -- part and what exec "$0" "$@" is supposed to ...
0
votes
0answers
26 views

Piped processes in upstart shell script continue running after stopping

I have an upstart script on my CentOS box that runs a shell script. The shell script runs a netcat command whose output is piped through a couple other commands and then ends up in a file. When I ...
0
votes
1answer
39 views

initctl not finding an upstart service

I have the following upstart config (see below), on Centos 6.5 the file is in /etc/init/prerender-io.conf, the service does not appear with the "sudo initctl list" command also, sudo initctl ...
0
votes
0answers
35 views

Can I use /etc/init/ on Debian Wheezy to manage a daemon process?

I want to run a PHP daemon process and found a solution at Stackoverflow but unfortunately its not working. Now I thought Upstart is not installed since Debian still uses System V. I have two ...
1
vote
0answers
29 views

Running lengthy shutdown script on ubuntu

I need to perform some cleanup work before shutdown that will take 15 to 150 seconds on Kununtu 14.10. The cleanup action should be start after all network services like sshd, ftpd, samba etc. are ...
1
vote
0answers
36 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : ...
0
votes
0answers
20 views

How to start application after login on CentOS? [duplicate]

I am trying to start GUI application with upstart script on CentOS. I have test script located /etc/init/ folder. start on desktop-session-start stop on desktop-shutdown respawn script export ...
0
votes
1answer
132 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 ...
1
vote
0answers
40 views

How to edit and restart and upstart job without rebooting?

I'm trying to deploy a WSGI appplication with Gunicorn. I have written an upstart job for launching the WSGI app. I'm testing different options (Unix socket v. TCP, etc). Whenever I change the ...
0
votes
0answers
89 views

Upstart + nodejs not starting

I've been looking around for ages, I can't seem to find a solution for my problem. I ran the following first: sudo apt-get remove --purge node sudo apt-get remove --purge nodejs sudo apt-get install ...
0
votes
0answers
17 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
1answer
212 views

How can I make my Upstart service depend on PostgreSQL?

I have a service configured as an upstart job. How do I make sure that PostgreSQL is running before my service is started? Ubuntu 14.04 here.
0
votes
0answers
98 views

Upstart is throwing reload: Unknown instance: error with Django and virtualenv

I am trying to run django on my website with nginx, upstart and gunicorn. I have written the following in upstart configuration file /etc/init/myserver.conf: description "Gunicorn server for ...
3
votes
1answer
2k views

Where in CentOS does program start at boot if it's not in init.d?

I have installed a software (GitLab) on CentOS. It works well, but this GitLab starts at boot and I don't want that. So I took a look at /etc/init.d in order to disable it with chkconfig, but my ...
0
votes
1answer
412 views

How to configure network interface names booting from read only medium?

in a Ubuntu 12.04 system, we'd like to configure the names of the (physical) network interfaces (such as eth0, eth1, ...) using udev rules such as those generated in ...
5
votes
3answers
2k views

How to execute commands as root in git post-receive hook

I just recently set up a remote git repo on a server for a web app running as an Upstart service. I'd like to use the post-receive hook to trigger actions that are required to update the application ...
1
vote
1answer
46 views

Are upstart jobs guaranteed to be given time to run?

I am writing an upstart job that runs a shell script at startup and shutdown which synchronizes some files with a remote machine using rsync. The script can sometimes take a long time to complete if ...
1
vote
1answer
244 views

Upstart script that displays errors to the console?

I have a simple upstart script that runs a process and respawns it if it crashes. The problem is if it crashes I want the user to be alerted that it crashed (because they may need to take an action to ...
0
votes
1answer
802 views

My upstart script is says its running but doesn't actually run - Ubuntu 10.04 LTS

This is on Ubuntu 10.04 LTS So I've got a gulp script (running through Node) that works great when I execute it manually. It actually runs a "watch" on a directory so that if any of the files change ...
0
votes
1answer
134 views

Stopping an upstart script not working

When I try: stop mysite_api, I get: stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.11" (uid=1000 pid=2242 comm="stop mysite_api ") interface="com.ubuntu.Upstart0_6.Job" ...
0
votes
0answers
170 views

error with upstart script

Further to my last question, I'm now using logger. I have the following upstart configuration start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec 2>&1 > ...
0
votes
1answer
131 views

Fail to redirect log to /var/log/syslog

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
2
votes
1answer
3k views

Upstart: Run service as unprivileged user and pre-start script as root

I have following upstart job: description "posty api" start on mysql stop on shutdown env RACK_ENV=production setuid vmail setgid vmail chdir /opt/posty_api pre-start script mkdir -p ...
3
votes
0answers
22 views

Best way to run service no matter the distro

I am working on an application and want to make the script start on boot, and for the users to be able to run things like service my-program restart What i am seeing is there seems to be different ...
0
votes
2answers
60 views

Using cron vs. system managed service for frequent tasks

If some task should run in an frequent but not neccessary precise manner, what would the benefits of using cron vs. just using a service (eg. managed by upstart) with a loop script like #!/bin/sh ...
1
vote
1answer
490 views

Upstart: chdir stanza VS cd command

In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section. What is the difference between this two approaches? When ...
1
vote
0answers
2k views

How to troubleshoot Upstart Unknown job error

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
0
votes
1answer
1k views

Ubuntu: Tomcat upstart script. Logs end up in upstart log

I have a simple upstart script for tomcat. Here is the chef template: description "Tomcat Server" start on runlevel [2345] stop on runlevel [!2345] respawn respawn limit 10 5 # run as non ...
2
votes
1answer
1k views

Upstart: unrecognized service (CentOS 6.4)

I have created an upstart service from this gist. I put it into: [andrey@vm01 ~]$ ll /etc/init/play.conf -rw-r--r--. 1 root root 1255 Dec 1 20:50 /etc/init/play.conf I also installed upstart, as ...
0
votes
1answer
229 views

How do you start multiple node.js apps using forever and upstart?

I'm managing multiple node.js processes using forever, and I need them to start at boot time. I think that upstart should be used for that, but I'm not sure whether I should create one init script per ...
1
vote
1answer
189 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 doesn't work for at least two ...
0
votes
1answer
182 views

Ubuntu — Application global environment variables

So I have an application I am deploying to an Ubuntu 12 server. My application has several "parts" to it: There's a web server, run as part of an upstart script There are cron jobs There are ...
1
vote
1answer
58 views

Upstart start when system is idle

Is there a way to tell upstart to run a job when system is idle? If not, what is the next best thing - i.e. how to start it very late in the process, when system is reasonably expected to be idle?
3
votes
1answer
437 views

ubuntu upstart permission error when writing to log on a non admin user

I have a simple upstart script: start on started network-services respawn respawn limit 100 5 setuid www-data exec node /var/testapp/app.js >> /var/log/testapp.log 2>&1 post-start ...
0
votes
1answer
597 views

Why is Upstart not starting uWSGI?

I am trying to set up a django project on my VPS. I am trying to get a uWSGI Emperor to run and thus spawn vassals. I have set up all my config files as suggested by numerous websites including the ...
-2
votes
1answer
887 views

Run Jar file on Ubuntu at system startup

I'm trying to get a .jar file to run at startup on an Ubuntu machine, but I'm not getting anywhere. I've tried the instructions here ...
1
vote
0answers
40 views

Upstart restart process time

A question about upstart. I understand the restart command does a stop and restart of the process. What happens if the process will not stop and check for the signals for a long time (20min or 2h)? ...
2
votes
0answers
88 views

upstart-monitor with CLI option fails to start in Ubuntu Server 13.04

When I try starting upstart-monitor on Ubuntu Server 13.04. I get the following error: Traceback (most recent call last): File "/usr/bin/upstart-monitor", line 195, in <module> class ...
1
vote
0answers
215 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
1
vote
1answer
804 views

grep fails in upstart script

I have an upstart configuration for a service which needs to check the existance of a process on it's startup. This sounds fairly easy but I'm already trying for 3 hours to get this thing solved and ...
1
vote
1answer
143 views

How can I reboot system using Upstart?

I'm using Upstart on Ubuntu 12.04 to control and monitor a service defined by me, where the service is a user process running as a daemon. I need to monitor it so, when it fails/crashes it respawns, ...
1
vote
1answer
609 views

How to change hostname via kernel command line on ubuntu 12

I booted a guest vm on xen, and I want to assign guest-domU's hostname in config file. like this ... extra='ip=::::myguest-vm-hostname::dhcp' ... It is a kernel command line to setting netboot ...
0
votes
1answer
161 views

Upstart event when network connectivity to a specific server is available?

Is there a way in upstart to code an event to start when network connectivity to a specific machine becomes available? Something based on a ping result would work in my case. The task being started ...
1
vote
1answer
33 views

Upstart scripts causing problems

I like to start little web servers on boot. I've been using upstart, but often my scripts fail, causing important services like sshd to fail to start. What's a safer way to do this? ...
1
vote
0answers
362 views

After installing upstart Raspberrypi gets stuck in boot

I recently installed upstart blindly replacing things I shouldn't of been. The results was that now my raspberry pi is stuck on Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix ...
1
vote
1answer
404 views

Emit upstart events as regular user

I want to create a situation where something unprivileged user does (via SSH) triggers an event that causes an upstart job do perform some action. The activities rely on filesystem changes, so I ...
2
votes
2answers
2k views

Automatically mounting Truecrypt volumes at user login time

I need to mount a Truecrypt volume automatically at user login time. This volume is specific for each user. I'm not sure how to proceed since I'm not extremely familiar with Linux and the various ...
0
votes
1answer
574 views

Safely forking a low-privileged child process with su vs. sudo

I am trying to run Node.js as an unprivileged user (dmitry in this case). Hoping someone can confirm or, as necessary, please elaborate upon what I'm seeing below.: Using Ubuntu 12.04 and upstart, I ...