Questions tagged [upstart]

Upstart is an event-based replacement for the traditional init daemon used to perform tasks when the computer is started.

Upstart is an event-based replacement for the traditional init daemon used to perform tasks when the computer is started. Be sure to check out the cook book found at : http://upstart.ubuntu.com/cookbook/

545 questions
5
votes
1 answer

How to define custom templates with foreman's --template option?

While using the foreman gem I'm having some issues where it will not allow me to define a custom template. For one of my apps I am able to define ~/.foreman/templates/upstart/master.conf.erb and it is read just fine. Yet for another project, no…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
5
votes
1 answer

Send reload command to upstart service

How can I send some kind of reload command to a daemon started by upstart without the need to completely stop it?
buschtoens
  • 8,091
  • 9
  • 42
  • 60
5
votes
4 answers

Why is stopping (or restarting) squid3 on GNU/Linux is so slow?

I'm using Ubuntu 11.04 and when calling "/etc/init.d/squid3 restart", it spends about half a minute to restart. What is it doing? The output looks like this: * Restarting Squid HTTP Proxy 3.x squid3 * Waiting... * ... * ... * ... * ... * ... * ... …
speedogoo
  • 2,828
  • 2
  • 17
  • 19
4
votes
2 answers

upstart & node.js app "stop: Unknown instance:"

I'm having a bit of trouble with upstart on ubuntu and a node.js app. Everything was working fine with the upstart script. Start, stopping, status-ing, etc all worked as expected until I deployed new code. The changes weren't reflected in the…
Tim W.
  • 371
  • 4
  • 13
4
votes
3 answers

Set GIT_DISCOVERY_ACROSS_FILESYSTEM to allow service to access git repo stored under a symlink

We have an Upstart service/job that uses a local clone of a git repo. After relocating the data folder using a symbolic link we now get the following error message: Failed to run 'git fetch' for /var/company/service/src/program repo; Details:…
Greg Bray
  • 14,929
  • 12
  • 80
  • 104
4
votes
2 answers

Why use nohup when the app can be run as system service?

I put this question on stackoverflow, because I found lots of quesions on the topic here already. Short introduction Simply put, nohup can be used to run apps in the background and keeps them running after the user logs off or the terminal or ssh…
rocksteady
  • 2,320
  • 5
  • 24
  • 40
4
votes
2 answers

There was an error while trying to load the gem 'yard'

I am using sidekiq upstart job but while running sudo service sidekiq restart getting the following error There was an error while trying to load the gem…
drishti ahuja
  • 1,379
  • 2
  • 15
  • 26
4
votes
1 answer

How can I be sure a freshly-started VM is ready for provisioning?

This wasn't much of a problem under Ubuntu 14.04, but since switching to 16.04 things have gotten a bit messy: When I use a tool to start a new VM and run a provisioning script (think Vagrant or Packer) one of the first things the script does is an…
smitelli
  • 6,835
  • 3
  • 31
  • 53
4
votes
1 answer

upstart ubuntu apt-get install fails to configure

After installing upstart with sudo apt-get install upstart the command start jobname prints this: start: Name "com.ubuntu.Upstart" does not exist what am i missing?
Yttrill
  • 4,725
  • 1
  • 20
  • 29
4
votes
1 answer

How do I tell celery worker to stop accepting tasks? How can I check if any celery worker tasks are running?

The scenario: System running on a server consisting of a Python/Flask web application and background tasks using Celery Both web application and celery workers are run as upstart jobs (Web app behind Nginx) Deployment to production is done with a…
codeape
  • 97,830
  • 24
  • 159
  • 188
4
votes
1 answer

What's the best way to get Upstart to send me an email notification if a job stops running?

Here is an example of a job I have running. I'd like to receive a notification if it exits, because it's important that it stays up. (I know php isn't the best tool for this, but it's someone else's code, so, whatever) /etc/init/watchdog.conf #…
Gabriel Alack
  • 472
  • 2
  • 6
  • 16
4
votes
1 answer

Booting up Sidekiq with Upstart

My goal is to have sidekiq start when the server boots up (I'm using EC2 with an auto-scaling group). I know there are a few other posts regarding getting sidekiq to start with upstart on boot, but I don't believe mine has been addressed…
s1ack3rhack3r
  • 319
  • 2
  • 12
4
votes
1 answer

Upstart | Ubuntu | Nodejs | Can not run multiple exec inside script block

I'm trying to setup a upstart conf for my nodejs app. I have to run 2 script scrip_1.js and script_2.js. Here the conf start on startup stop on shutdown respawn console log env PROJ=/project/path script cd $PROJ exec node script_1.js…
neo0
  • 592
  • 3
  • 10
  • 18
4
votes
1 answer

Puma - Rails on linux // Restart when process dies

Using puma on a rails app; it sometimes dies without any articular reason; also often dies (does not restart after being stopped) when deployed What would be a good way to monitor if the process died, and restart it right way ? Being called within a…
Ben
  • 5,030
  • 6
  • 53
  • 94
4
votes
1 answer

Upstart: How to execute custom stop commands for a daemon?

I'm new to upstart. Below is the upstart config for the "myserver" daemon. It works fine, but I want to execute custom commands when I issue "stop myserver", to cleanly shut it down. start-stop-daemon simply kills the pid of the daemon. description…
lairtech
  • 2,337
  • 4
  • 25
  • 38