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
1 answer

ansible handler only runs once when notified from parameterized role

I have an ansible playbook for some init services that are broadly similar with a few tweaks. In the top-level playbook, I include the role twice, like roles: - {role: "my-service", service: webserver} - {role: "my-service", service:…
2
votes
1 answer

How do I deploy the web2py scheduler for multiple apps?

According to the following I need to create the following file: /etc/init/web2py-scheduler.conf http://web2py.com/books/default/chapter/29/13/deployment-recipes#Start-the-scheduler-as-a-Linux-service--upstart- web2py-scheduler.conf description…
evan54
  • 3,585
  • 5
  • 34
  • 61
2
votes
1 answer

How do I run Java as a service on Ubuntu?

So after 2 days (yes I'm a complete rookie when it comes to servers) trying to get this working I give up and turn to SO for help :) I want to start my java app on start, log to a logfile. That's it :) start on runlevel [2345] stop on runlevel…
Mackelito
  • 4,213
  • 5
  • 39
  • 78
2
votes
2 answers

Node js Upstart script file read

I am working on EC2 instance and I have placed my node application project in the /var/www/. I am using upstart script to start the node application. The upstart script is placed in /etc/init/. In the application I am parsing a file as below to…
XCEPTION
  • 1,671
  • 1
  • 18
  • 38
2
votes
1 answer

Upstart not respawning Sidekiq daemon

I have problems with my sidekiq daemon restart. Upstart is not respawning the daemon when the daemon crashes. Here is my Upstart init file. description "Sidekiq worker" start on runlevel [2345] stop on runlevel [06] # change to match your…
2
votes
1 answer

Upstart to Systemd porting

I have this line in an upstart conf file: start on starting service1 or stopped service2 stop on stopping service1 How can this be translated to systemd unit target? I've searched for any kind of disjunction support but I couldn't find one.
2
votes
1 answer

Linux: Java program called from Upstart cannot access mysql database

I am working on a simple java background process that handles data from socket connections and then uses the mysql connector JDBC driver to establish a connection to a database where this info is stored. I want to use upstart to use the program as…
Omega142
  • 313
  • 2
  • 6
2
votes
0 answers

Upstart script using foreman export is using wrong ruby version

I have just recently deployed my application to production server, but it looks that that every process I have added to my .procfile (foreman) is not started at all. Details: I am using Rails 4.0.12, foreman 0.78.0, sidekiq 3.4.2 and clockwork…
Giron
  • 350
  • 3
  • 16
2
votes
2 answers

Switch between users in an upstart script

Is it possible to have a upstart script that runs the pre-script as root but the rest as normal_user. I'm trying something like: setuid normal_user pre-start exec su -c "echo I'm root" root script exec /bin/bash <<"EOT" echo "haha, I'm normal…
Ingo
  • 802
  • 9
  • 21
2
votes
2 answers

Ubuntu: When upstart service is run with user root, it returns Unknown job

As you can see from the following output(not limited to mysql, other service gives similar result), when run service/status with sudo, it gives correct result, but gives 'Unknown job' when run directly with root. I googled a lot, but key words like…
D3Hunter
  • 1,329
  • 10
  • 21
2
votes
0 answers

How can I influence the owning group of files in /var/log/upstart?

upstart supports a setgid stanza, but this has an influence only on the running process, not on the log file written by upstart itself. So if the setuid and setgid stanzas are used, the service or any of its children cannot read its logfile, but I…
Juergen
  • 272
  • 1
  • 11
2
votes
1 answer

Starting and stopping celery processes in upstart with a python wrapper script

So we have an application that has celery workers. We start those workers using an upstart file /etc/init/fact-celery.conf that looks like the following: description "FaCT Celery Worker." start on runlevel [2345] stop on runlevel…
djsumdog
  • 2,560
  • 1
  • 29
  • 55
2
votes
1 answer

Ubuntu upstart gets incorrect PID from Play 1.3

The Upstart script using the start-stop-daemon we've been using for Play 1.2.7 is now unable to stop/restart Play since Play 1.3 due to it having an incorrect PID. Framework version: 1.3.0 on Ubuntu 12.04.5 LTS Reproduction steps: Setup an upstart…
fraserh
  • 181
  • 1
  • 10
2
votes
1 answer

Unicorn periodically fails to restart after deploy - stale PID

I've been trying to solve this problem on my own for sometime and have not had any luck. It occurs when I redeploy my rails app about 10% of the time. The other 90% of the time the deploy goes smoothly. I've tried and tried again, but have not…
switchflip
  • 403
  • 1
  • 5
  • 13
2
votes
0 answers

executing command on vagrant-mounted

I'm trying to run a command after a share is mounted with vagrant. bu I've never written an upstart script before. What I have so far is start on vagrant-mounted script if [ "$MOUNTPOINT" = "/vagrant" ] then env CMD="echo…
Rune FS
  • 21,497
  • 7
  • 62
  • 96