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
2
votes
0 answers

Create a sysv init script with upstart/systemd detection

I'm trying to create a common set of init scripts for Ubuntu upstart/Debian SysV and systemd systems. I realize for upstart, I can always just have a simple check in my /etc/init.d/appname file: . /lib/lsb/init-functions check_for_upstart() { …
djsumdog
  • 2,560
  • 1
  • 29
  • 55
2
votes
0 answers

Running selenium webdriver through jar file with upstart

i created a .jar executable file that when executed opens up two firefox selenium webdriver instances (two automated firefox instances) now when i execute the jar file through terminal likes this java -jar /opt/program.jar it works fine. but when i…
Amit Hendin
  • 87
  • 1
  • 8
2
votes
1 answer

Django logging in file with Gunicorn and Upstart

I'm trying to get logs from Django app. in setting.py something like this: 'handlers': { 'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': 'elections_app/static/e.log', When I…
Pavel Kulikov
  • 871
  • 1
  • 7
  • 10
2
votes
1 answer

Upstart script to run container won't manage lifecycle

I have an upstart script (say, /etc/init/dtest.conf) start on runlevel [2345] stop on runlevel [!2345] respawn script DID=$(docker.io run -d ubuntu /bin/bash -c "echo Starting;sleep 20;echo Stopping") docker.io attach $DID end script When…
Marshall Anschutz
  • 1,200
  • 1
  • 12
  • 23
2
votes
3 answers

Upstart script exported by Foreman not working properly, respawning too fast

The only error I could find out was looking at dmesg [ 603.598951] init: thx4-web-1 main process ended, respawning [ 603.607935] init: thx4-web-1 main process (3901) terminated with status 127 [ 603.607988] init: thx4-web-1 main process ended,…
Ricardo
  • 667
  • 9
  • 25
2
votes
1 answer

daemonizing sidekiq with upstart script - is not working

I'm trying to daemonize sidekiq using two upstart scripts following this example. Basically the workers service starts a fixed number of sidekiq services. The problem is that the sidekiq script fails at the line of code where I am starting sidekiq.…
nucka
  • 559
  • 5
  • 12
2
votes
4 answers

Upstart script for bitcoind, respawn feature

I have an upstart script for the bitcoind, it based on the script in this topic: https://bitcointalk.org/index.php?topic=25518.0 I strongly need respawn future working: if something happened bitcoind should restart automatically. I tryed to emulate…
2
votes
1 answer

shell script: `[[` not working as expected

I have a script: ENABLE_SYSLOG=true test -r /etc/default/inotifywait && . /etc/default/inotifywait || exit 99 test -d $INOTIFY_FOLDER || exit 100 inotifywait -mrq -e ATTRIB --format '%w%f' "$INOTIFY_FOLDER" | while IFS= read -r FILE do if [ -f…
vskubriev
  • 826
  • 1
  • 11
  • 21
2
votes
1 answer

Why use user nobody nogroup in upstart services or daemon services

I am experiencing some problem with a gunicorn service, after stopping it I find requests are successfully serviced and doing a ps aux | grep python confirms the service is still running. I searched around and found that many scripts are using user…
Bwire
  • 1,181
  • 1
  • 14
  • 25
2
votes
1 answer

Upstart node.js mysql connection

I am new to node.js so in an attempt to learn it I tried to run this example http://markshust.com/2013/11/07/creating-nodejs-server-client-socket-io-mysql It has no problems and everything is working fine. But then I wanted to run this server…
krypt
  • 439
  • 1
  • 4
  • 13
2
votes
1 answer

NodeJS app not loading static files when started with Upstart

I have a NodeJS app that I want to start with Upstart. So far the process works, Upstart initiates the app, but when I load the page, the CSS are not loading. The curious thing is that if I start the app using #node myapp.js, it will start and load…
Reydel Leon
  • 1,035
  • 2
  • 11
  • 34
2
votes
1 answer

Upstart If Statements Executing Illogically

I made an upstart script which breaks my expectations entirely. stupid-test.conf script VALUE="PONG" echo "START" >> /var/log/stupid-test.log if [ "$VALUE" == "PONG" ]; then echo "GOOD PONG" >> /var/log/stupid-test.log fi if [ "$VALUE"…
skeggse
  • 6,103
  • 11
  • 57
  • 81
2
votes
1 answer

Can't Start Golang Prog Via Upstart

I can't get my golang prog to run via upstart. Here is my proj dir-- /go /src /print.io /geo main.go /geodomain [.. files ..] I have my gopath set to the /go dir above. Within the /geo folder i can run go…
Micah
  • 10,295
  • 13
  • 66
  • 95
2
votes
1 answer

I want to define an upstart process without any fork. Do I need to specify 'expect'?

In order to define an upstart process, to be started automatically when the system is started in Ubuntu 12.04, I found a useful page describing how to create a myservice.conf file. The given example has the line expect fork to be used when the…
Alex
  • 41,580
  • 88
  • 260
  • 469
2
votes
1 answer

Upstart email notifications

I exported an upstart script via foreman, and I added a line to the .conf file to send an email if the process was restarted. However, when ever I kill the process to test the functionality, it spams my inbox with over 20 emails. Does anyone know if…
icantbecool
  • 482
  • 8
  • 16