All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
38 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
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
2 answers
314 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
0 votes
1 answer
231 views

Why won't upstart stop my node server?

I've got a super simple test node server # server.js var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'...
gman's user avatar
  • 147
3 votes
1 answer
742 views

Upstart: Why two processes when running as a different user?

I want to keep a nodejs app running, so I followed this: http://howtonode.org/deploying-node-upstart-monit and installed Monit and Upstart which have been working perfectly for a couple of months. I ...
paintedbicycle's user avatar
0 votes
1 answer
1k views

Run node.js from upstart (ubuntu 12.04)

I'm trying to setup upstart script to start/stop my node.js application. Here is my upstart script: #!upstart description "node.js server" author "marduk" start on filesystem stop on runlevel [!...
Marduk's user avatar
  • 3
1 vote
1 answer
900 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
1 answer
2k views

Upstart Log Not Rotating

I have a custom upstart script that manages a Node API service. That script pipes output to /var/log/upstart/api-access.log. What I keep seeing is that the old log gets archived to api-access.log.1.gz,...
Rob Wilkerson's user avatar
0 votes
0 answers
760 views

setuid upstart not working

I have created a .conf file in which I include setuid mario setgid mario in order to run as mario user. The program I run in the exec command is forever which runs an instance of node which ...
Mario's user avatar
  • 127
2 votes
1 answer
504 views

Is it necessary to monitor the PID of proccesses?

In some tutorials I've seen the following snippet for monitoring processes with PID: check process nodejs with pidfile "/var/run/yourprogram.pid" start program = "/sbin/start myapp" stop ...
Erik's user avatar
  • 203
4 votes
1 answer
5k views

Simple upstart script for nodejs + forever on Ubuntu

I'm using Ubuntu Sever 12.04. I have a nodejs application which I want to run like so: NODE_ENV=production PORT=3001 APP_PATH=/var/www/myapp forever -a -l /var/www/myapp/forever.log -o /var/www/myapp/...
Svilen's user avatar
  • 91
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
4 votes
1 answer
986 views

Why is upstart eating all of my RAM?

I'm running Ubuntu Server 12.04 LTS in EC2. I have several node.js daemons running as services under upstart, along with the usual init stuff. After every deploy, during which all the node.js daemons ...
wolak's user avatar
  • 149
0 votes
1 answer
763 views

Sending signals to running Upstart job

How can I send signals or events to a running Upstart job? I run a Node.js HTTP server with Upstart as a daemon and sometimes need to put it into maintenance mode for backups and stuff. I'd like to ...
buschtoens's user avatar
4 votes
0 answers
285 views

Monit will not start my node js app

I have a problem with Monit that I use for monitoring of my Node.js app. I just moved from a single core machine to a multi core one. On both of them I run Ubuntu 11.10. On the old one this was ...
Buzz's user avatar
  • 41
2 votes
1 answer
8k views

How should I use sudo from an upstart script?

I am using upstart to run my node.js app on an Amazon Linux AMI EC2 instance. I have had a few issues getting it to work, summarized below. In my script I had a line like this: exec sudo -u www /...
blu's user avatar
  • 229
2 votes
1 answer
3k views

Ubuntu Upstart job - "stop" is not recognized command

I need some help with this; endless upon endless scripts look exactly the same -- yet I can't seem to stop the job associated with an upstart script. I'm using any of the newest Ubuntu Elestic AMIs ...
user avatar
6 votes
3 answers
4k views

cant get upstart script for node.js program to start on startup

I made a rather simple startup script for my node.js program that should run on startup: start on startup stop on shutdown script exec sudo -u max WEBSITES_DIR=/home/max/websites/ /usr/local/bin/...
Max's user avatar
  • 481
3 votes
1 answer
4k views

Upstart does not work

I followed this tutorial to set up upstart for my node.js server: http://howtonode.org/deploying-node-upstart-monit The problem is, that when I try to run "start mynodeprogram", I get the floowing ...
FlashFan's user avatar
  • 131