Questions tagged [upstart]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
3k views

Setting up mongodb via upstart - how to pass options?

I installed MongoDB in an Ubuntu Server VM inside VMware using these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Everything works fine, and I can access MongoDB ...
Jonathan Ong's user avatar
1 vote
1 answer
1k views

Nginx traffic is going to wrong upsteam when mixing named servers and default servers

I have the below config file for nginx. The problem is all traffic is going to upstream clustera. How do I configure nginx to only send traffic for example.com to clustera and all the rest to clusterb?...
Morgan's user avatar
  • 155
1 vote
1 answer
4k views

Restart networking in ubuntu karmic (9.10) using upstart

As far as I know karmic uses upstart to control some of the services. Is there any way to restart the networking service without rebooting the system? The problem is that when I try to do it in any ...
igorp1024's user avatar
  • 228
1 vote
1 answer
840 views

How to change max file limits on a process

Yes I know this question has been asked before and I have tried all the solutions I have seen and none of them work for me. We are running Ubuntu 12, and we have a process that automatically gets ...
Marc's user avatar
  • 151
1 vote
1 answer
2k views

How to configure a newer version of Supervisord to start on system boot in Ubuntu 12.02?

How do you configure a newer version of supervisor to start on system boot in Ubuntu? Some distributions simply lag behind in their repositories. When I use easy install (as recommended by default on ...
eco's user avatar
  • 147
1 vote
2 answers
315 views

Unkillable upstart process

So I wrote a seemingly-basic node.js server upstart script based on a script from this article, and it works fine, starting the server and running on the expected port. The problem comes when I try to ...
moberemk's user avatar
  • 113
1 vote
1 answer
802 views

Upstart can't stop foreverjs services on shutdown?

Scenario We use a Vagrant-based virtual machine running Ubuntu 12.04 LTS for development of three Node.JS servers that are started using foreverjs. We run the services under the vagrant user and ...
msanford's user avatar
  • 1,487
1 vote
1 answer
2k views

RHEL6 Upstart: Flow of Events During Reboot

I have a situation where a RHEL 6.4 server is sending TERM and KILL signals too quickly, before applications and databases have had a chance to gracefully stop. It seems that Upstart is handing ...
skohrs's user avatar
  • 1,520
1 vote
1 answer
880 views

Proper upstart config for meteor?

I'm hoping to find out how to tell upstart that meteor will fork more than twice? I followed their instructions at http://upstart.ubuntu.com/cookbook/#how-to-establish-fork-count to count the forks ...
Mike Graf's user avatar
  • 417
1 vote
1 answer
3k views

Why is my nodejs application with forever not starting with Upstart on EC2 instance?

I am trying to start a nodejs application with forever (forever simply restarts the program if it crashes), but forever itself is not auto started on boot. So I am using upstart to initialize forever. ...
Renato Gama's user avatar
1 vote
1 answer
604 views

How to change upstart order, Start network after fstab?

In ubuntu 12.04, I want to change order; I want to mount all from fstab before running network (i have /etc/network/interfaces on other partition). How to do it? This is my fstab: # <file system&...
wmp's user avatar
  • 11
1 vote
1 answer
5k views

Upstart: defining service dependencies / priorities

I am working on an app which runs several services / daemons using upstart. These should start on system startup, but only after the DB server (in our case mongo) was started. I am looking for the ...
shevron's user avatar
  • 336
1 vote
2 answers
5k views

Daemon crashes but upstart thinks it is still alive

I have to following problem: We have an Java application which is started by an bash script. This application should run as a daemon, so we have an upstart-job to start it. start on runlevel [2345] ...
Arvodan's user avatar
  • 133
1 vote
1 answer
1k views

Upstart attempts to start job before mounting everything

~$ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 /dev/xvda2 /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 /dev/xvda3 none swap sw,comment=cloudconfig ...
Claudio Poli's user avatar
1 vote
1 answer
4k views

Ubuntu upstart use one script to run multiple others

This script will start the services: #!upstart description "example.com" author "Geert" script for service in "website" "feeds" "jobs" do exec start service.example.com service=$...
Pickels's user avatar
  • 135
1 vote
1 answer
826 views

init.d script worked OK on Ubuntu 10.10 but not on 11.10 despite LBS header correction

On Ubuntu 11.10, if I run /usr/bin/cserver -c /etc/cserver.conf & it'll work fine. But if I run service cserver start or /etc/init.d/cserver start as I did on 10.10, it won't. It just says "...
talkingnews's user avatar
1 vote
2 answers
605 views

Process being sent SIGINT when started using Upstart

I have a Linux application which opens up several serial devices (/dev/ttyUSBX) and reads/writes from them. When I run it from a command prompt (Ubuntu 10.04, bash) it works perfectly. $sudo ./...
user875729's user avatar
1 vote
1 answer
393 views

mysql upstart job hangs if database directory not mounted

Update: Filed as bug #812423 on Launchpad. I have mysqld pointed to an external volume: $ cat /etc/mysql/conf.d/data_joliss.cnf [mysqld] datadir=/mnt/data_joliss/mysql This is working fine in ...
Jo Liss's user avatar
  • 2,888
1 vote
1 answer
181 views

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make ...
SimonJGreen's user avatar
  • 3,245
1 vote
1 answer
3k views

What's the correct way to start a Ubuntu Upstart script from another Upstart script?

I have three Ubuntu Upstart scripts: browser runs an instance of firefox as an unprivileged user browsers starts when screen is started and launches browser PORT=1 browser PORT=2 browser PORT=3 ...
phretor's user avatar
  • 13
1 vote
1 answer
1k views

upstart config to start sync daemon as non-root user

I am planning to use inosync to sync data from master server to several client servers. I have created a user called rsyncuser in both master and slaves with access permissions and passwordless ssh ...
Rudiger Wolf's user avatar
1 vote
1 answer
2k views

Restart mysqld with a command line parameter on ubuntu 10.04

Getting my hands dirty with a MySql slave setup, I ran into a puzzling question: how do I pass any of the myriad options to mysqld (--skip-slave-start in this particular case) when I am restarting it ...
Jare's user avatar
  • 13
1 vote
1 answer
42 views

Upstart, node and bash users

I am having some problems understanding all the mechanisms behind the user management with upstart, node and bash. What I want to do: I want to have a service, that executes a node script. This ...
Hammerbot's user avatar
  • 175
1 vote
0 answers
276 views

Does upstart wait until a core dump is written before restarting the process?

On our Ubuntu servers, core dumps are currently disabled. If we enable them, and a daemon process crashes, will that impact the time taken for upstart to restart the process? That is: if my daemon's ...
Roger Lipscombe's user avatar
1 vote
0 answers
42 views

running composer from upstart

I am running Ubuntu 14.04. I am trying to make a service capable of deploying an application. The process is very simple: I have a node script listening on port 2133 for a POST request When this ...
Hammerbot's user avatar
  • 175
1 vote
1 answer
421 views

Prevent duplicates when launching ssh-agent in upstart script

As part of an Upstart script, I need to launch ssh-agent to load a GitHub deployment key, so in the script I have: eval "$(ssh-agent -s)" ssh-add $HOME/.ssh/id_rsa The problem is that when the ...
Andrew Porritt's user avatar
1 vote
0 answers
65 views

How to have upstart shutdown rsyslog as last job in Ubuntu 14.04

It seems like upstart decides to shutdown rsyslog on Ubuntu 14.04 as one of the first jobs if a machine shuts down. So most logging of shutting down jobs is lost. How to I instruct upstart to shutdown ...
user1737246's user avatar
1 vote
0 answers
2k views

How to deal with Upstart “terminated with status 1”?

I have a very simple script on Ubuntu 14.04 upstart (/etc/init/myscript.conf) description "Something" author "me" start on filesystem and started networking stop on shutdown respawn respawn limit 5 ...
Sasha Grievus's user avatar
1 vote
0 answers
1k views

auto restart php-fpm on segfault

I want restart php-fpm after segfaults. I run php-fpm on ubuntu 14.04 trusty. It uses upstart for checking services. I try to set automatic restart with respawn options, but after SIGSEGV php-fpm did ...
BaZZiliO's user avatar
  • 320
1 vote
1 answer
93 views

Simplest infinite script exec without upstart

I've got a CentOS 5.11 box that I have to work with for now--in a production env where I can't really push it to CentOS 6, at least for awhile. I have to be low-impact on this project, can't mess up ...
Dan's user avatar
  • 61
1 vote
0 answers
68 views

Init script to run overlapping servers at service restart

How can I create a init script that starts (and tracks) the new process before the old is completely terminated at restart? I am developing a node.js service that needs to be able to restart ...
Paso's user avatar
  • 131
1 vote
1 answer
906 views

Logrotate for node.js app deployed using monit and upstart

I deployed a web application in node.js by following the guide: Deploying Node.js With Upstart and Monit . The app produces some log via console.log(). In the upstart script, it's redirected to a log ...
He Shiming's user avatar
1 vote
0 answers
289 views

supervisord with Upstart always hangs

I'm trying to start supervisord with Upstart. The Upstart job is very simple and traditional (start on, stop on, author description, respawn, exec). I've tried running supervisord in the foreground ("...
Dustin Oprea's user avatar
1 vote
0 answers
138 views

Upstart - make "reload" behave like "restart"

I have a daemon process that doesn't respond to SIGHUP sent when running reload. It runs under an unprivileged user, and I can't restart it without sudo privileges. Is there a way to make reload to ...
yprez's user avatar
  • 183
1 vote
1 answer
451 views

Writing an upstart file which allows the user to input username and password

I'm trying to write an upstart file for OpenConnect. The task is pretty simple, but I'm stuck because I don't want to provide the username and password in a config file, but prompt the user to provide ...
Robert Munteanu's user avatar
1 vote
0 answers
97 views

Make sure an upstart job is stopped after /etc/init.d/nginx during shutdown

I have an upstart job X that control some web processes. During shutdown, I want to make sure that X is stopped after /etc/init.d/nginx, so that there won't be any 502 returned to the HAProxy instance ...
sayap's user avatar
  • 164
1 vote
0 answers
214 views

Upstart shows non-existent process running

I am using upstart 1.8-0ubuntu1 on Ubuntu-1210-quantal-64-minimal. It shows me nginx to be running, when it's not. # service nginx status nginx start/running, process 2543 # ps -p 2543 PID TTY ...
Samat's user avatar
  • 149
1 vote
0 answers
214 views

Upstart task to wait for iscsi target to become available?

I've got a couple of virtualization servers running Ubuntu 12.04 and Virtualbox and just bought a Synology NAS which I plan to use as an iSCSI target to serve storage for the VMs. I realize that ...
Steve Prior's user avatar
1 vote
0 answers
166 views

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn?

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn? Here is the error from my Upstart log deploy is not in the sudoers file. This incident will be reported. It ...
indi's user avatar
  • 181
1 vote
1 answer
304 views

Upstart job to start, stop and restart other jobs

I have around between 3 and 8 upstart jobs in various Ubuntu boxes that I wish to easily start, stop or restart all together. It seems that upstart would make it easy to do that, but I'm not sure how. ...
Pablo Fernandez's user avatar
1 vote
1 answer
541 views

Updating Upstart on Centos 6.3

I have a Centos 6.3 server -- alone among all my Ubuntu servers for historical reasons -- with Upstart 0.6.5. I need to update that upstart to at least 1.4, and I'd prefer to do it through yum instead ...
Daniel C. Sobral's user avatar
1 vote
1 answer
321 views

Ubuntu Upstart Job to Persist tcp_slot_table_entries Before NFS Mount

NOTE: I'm aware of the question Persistent changes to /proc/sys/sunrpc/tcp_slot_table_entries and while this older question is quite similar, the selected and proposed answers do not work for us, nor ...
bubba's user avatar
  • 111
1 vote
1 answer
531 views

Understanding Upstart script stanza

I have a script that runs some java process: /apps/run_my_app.sh: #!/bin/sh CLASSPATH=foo java -cp $CLASSPATH foo.app can I have an Upstart script stanza like this? script /apps/...
Dave's user avatar
  • 511
1 vote
0 answers
601 views

initctl respawn does not reload configuration

My upstart service is running with the respawn option. I was hoping that if I deploy a new service config, the config will be loaded, when the service respawns. Neither the initctl reload-...
DELUXEnized's user avatar
1 vote
1 answer
109 views

Upstart not triggering sysinit

Upon server boot Upstart runs but does not trigger the transition to the normal runlevel, and I would like to know how to fix it. For example syslog will have been started, time set and so on, but ...
joruffin's user avatar
1 vote
0 answers
1k views

Run python script as a service on Ubuntu 11.10

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: https://stackoverflow.com/questions/4705564/python-...
bugs99's user avatar
  • 15
1 vote
1 answer
973 views

How do I limit how much cpu a process can use with upstart (Ubuntu 11.10)

I want to limit the amount of processor power my sheduled jobs (Resque for a Rails application) use and I found this upstart that seems promising and might do what I want: http://upstart.ubuntu.com/...
Robban's user avatar
  • 113
1 vote
1 answer
773 views

How do I perform an action if the upstart respawn limit is hit?

I have an upstart job: description "foreman" start on runlevel [2345] stop on runlevel [06] respawn respawn limit 3 60 chdir /home/deploy/app/current env RAILS_ENV=production exec sudo -u deploy ...
Daniel Huckstep's user avatar
1 vote
1 answer
1k views

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my ...
Alex Tsvetkov's user avatar
1 vote
1 answer
483 views

ubuntu upstart for service with multiple daemons

my service is a group of "multiple" daemons. I need to integrate it with upstart to be started during the bootup. The problem is that I need to restart the service when any of the daemons dies ...
Ravikumar.T's user avatar