upstart Questions

2

Solved

upstart won't activate my virtualenv for some reason. This is how I run it script # My startup script, plain old shell scripting here. cd path/to/env source bin/activate .... end script the...
Hardee asked 11/2, 2013 at 23:38

3

Solved

I have written a module in Python and want it to run continuously once started and need to stop it when I need to update other modules. I will likely be using monit to restart it, if module has cra...
Acetone asked 19/7, 2013 at 13:41

2

Solved

I have a python script which runs a daemon-like service, now I created the python package. I created a .deb package from there but I want the script to be run with upstart, but I can't mange to wri...
Simonasimonds asked 27/6, 2013 at 12:5

3

Solved

We have a custom C++ daemon application that forks once. So we've been doing this in our Upstart script on Ubuntu 12.04 and it works perfectly: expect fork exec /path/to/the/app However now we n...
Delectation asked 26/9, 2012 at 21:1

2

Solved

Below is a upstart script for redis. How to I create a pid so I use monit for monitoring? #!upstart description "Redis Server" env USER=redis start on startup stop on shutdown respawn exec sud...
Tejada asked 2/4, 2012 at 6:54

1

Solved

I'm trying to use upstart to launch multiple instances of node.js - each on separate cpu core listening on different port. Launch configuration: start on startup task env NUM_WORKERS=2 script ...
Bendwise asked 2/2, 2013 at 17:0

1

Solved

I have a PHP script that has been running as a cron job. The script uses the DB to see if it has anything to do, and to make sure its brethren are not already running. I'd like to run the PHP scri...
Telugu asked 8/1, 2013 at 8:52

3

I've created small web server using werkzeug and I'm able to run it in usual python way with python my_server.py. Pages load, everything works fine. Now I want to start it when my pc boots. What's ...
Phip asked 5/12, 2012 at 8:12

1

Solved

Are Upstart and Supervisord interchangeable? Do they work together? I am looking to run a python program as root when my system (debian) boots. After the boot, I would like the process manage...
Suck asked 30/11, 2012 at 0:5

2

Solved

I'm trying to use a cron job to call a healthcheck script I've written to check the status of a web app (api) I've written (a url call doesn't suffice to test full functionality, hence the custom h...
Thyestes asked 23/11, 2012 at 0:32

1

Solved

I am trying to export my application to another process management format/system (specifically, upstart). In doing so, I have come across a number of roadblocks, mostly due to lacking documentation...
Broeker asked 20/10, 2012 at 17:20

1

Solved

I am using upstart to start/stop/automatically restart daemons. One of the daemons forks 4 times. The upstart cookbook states that it only supports forking twice. Is there a workaround? How it fai...
Strobile asked 30/8, 2012 at 15:18

3

Solved

I have a few processes I need to run in deamon mode, I just discovered upstart so I am starting to use it. Are there any python libraries or applications that I could use to monitor and co...
Mikamikado asked 28/12, 2010 at 13:42

1

Solved

First of all I have many Django instances setup and running like this. In each project I have a script.sh shell script that starts gunicorn etc.: #!/bin/bash set -e LOGFILE=/var/log/gunicorn/a...
Pyrrolidine asked 22/6, 2012 at 14:33

1

Solved

How can I send some kind of reload command to a daemon started by upstart without the need to completely stop it?
Magallanes asked 29/5, 2012 at 0:15

2

Solved

I've written an Upstart script for Redis as follows: description "Redis Server" start on runlevel [2345] stop on shutdown expect daemon exec sudo -u redis /usr/local/bin/redis-server /etc/redis/...
Elmer asked 29/12, 2011 at 23:43

1

Solved

Alright, this is melting my brain. It might have something to do with the fact that I don't understand Upstart as well as I should. Sorry in advance for the long question. I'm trying to use Upstar...
Myotonia asked 29/12, 2011 at 11:41

2

Solved

I needed to send mail from my plain Flask app, so I thought the simplest way would be to send it using smtplib. But I had to do it asynchronously - you can't just insert a 3 second delay into the r...
Freiman asked 4/4, 2012 at 1:44

2

Solved

I am a node.js developer. I use Amazon ec2 to deploy my node.js apps. I want to have my node.js service running permanently - restarted if it fails for any reason. I came across 2 tools . Foreve...
Vichyssoise asked 20/3, 2012 at 18:43

1

Solved

We use PHP gearman workers to run various tasks in parallel. Everything works just fine, and I have silly little shell script to spin them up when I want them. Being a programmer (and therefore laz...
Rinehart asked 30/12, 2011 at 17:5

1

Solved

I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11). Here's the relevant line from my...
Okra asked 4/1, 2012 at 21:35

2

Solved

I'm configuring my server to run node.js as a daemon. I've setup Upstart to handle startup and shutdown of node, which works wonderfully. The next step is to make sure that node.js is restarted if ...
Reef asked 18/1, 2011 at 9:56

5

Solved

I've got a memory leak in Upstart init process (pid 1), what options I have on debugging it? EDIT: Suggest me some real tools for this, manually putting printfs or calculating memory allocations b...
Disembarrass asked 8/10, 2010 at 4:34

1

Solved

I've coded an node.js app that when get executed need to return CWD from process to be able to read files on disk. When I start the app directly with node in the actual app directory... #!sh ...
Enclitic asked 7/10, 2010 at 19:39

2

Solved

I know that Ubuntu (and Fedora) uses Upstart istead of the classical System V init daemon (SysVinit). I would like to know how to detect when a USB-drive has been inserted, mount it and copy some ...
Coracoid asked 26/2, 2009 at 9:40

© 2022 - 2024 — McMap. All rights reserved.