Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

learn more… | top users | synonyms

0
votes
0answers
6 views

auto restart php-fpm on segfault

I want restart php-fpm after segfaults. I run php-fpm on ubuntu 14.04 trusty. It uses upstart for checking services. I try to set automatic restart with respawn options, but after SIGSEGV php-fpm did ...
0
votes
2answers
10 views

sidekiq on ubuntu failed to stop with upstart

I installed an upstart service for sidekiq exactly as specified in it's wiki. That said, I have an upstart script that creates a process with: # skipped other insstructions script exec /bin/bash ...
1
vote
1answer
22 views

Simplest infinite script exec without upstart

I've got a CentOS 5.11 box that I have to work with for now--in a production env where I can't really push it to CentOS 6, at least for awhile. I have to be low-impact on this project, can't mess up ...
0
votes
0answers
11 views

Pppd upstart script

I am creating an upstart conf to manage different VPN connections. The problem is that if the pppd daemon dies, initctl still think it is start/running. This is my current vpn.conf description "VPN ...
0
votes
1answer
11 views

Upstart script runs well with sudo but fails as root user

I have a simple nodeJs upstart service run as, script exec /usr/bin/node /path/to/server.js end script On running with sudo command, it works ~$ sudo service upserv start sg_gui_server ...
1
vote
1answer
26 views

How to find the file location of int.d scripts in ubuntu

I need location of a init.d script. I am using service cinder-api start to start the service Other init scripts are located at /etc/init.d/ location. But this service is not found in that location , ...
0
votes
1answer
76 views

Debian Jessie UpStart / Systemd / SysV no more reboot

I have make some test on a Jessie server with Upstart installation and replace it by SysV and the reverse. After this I'm not anymore able to reboot. root@amoo-001:~# reboot Failed to talk to init ...
0
votes
2answers
35 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 ...
1
vote
1answer
77 views

sudo start my-project does not work

I'm using the following script in /etc/init/my-project.conf on my AWS instance. description "start and stop the go program 'my-project'" start on filesystem or runlevel [2345] stop on runlevel ...
1
vote
1answer
22 views

Privileges when doing sudo to another domain user

Suppose I have a corporate domain mydomain using MS Active Directory. In the domain I have the users myuser and youruser. Now, on one specific Ubuntu machine mymachine, myuser has sudo rights, and ...
3
votes
1answer
19 views

Should I rather explicitly run programs in foreground (instead as a daemon), or `expect fork` when configuring upstart daemons?

Many programs allow to be run either in daemon mode (which is usually the default), or explicitly run it in foreground with a flag such as -f. Now when configuring upstart to run programs like this, ...
0
votes
0answers
17 views

LSF Cluster Upstart Job

So I would like machines in our office to auto start LSF on boot. So I took my first stab at writing an upstart job. The goal here is to run these commands for startup: /usr/local/lsf/bin/lsadmin ...
-5
votes
1answer
50 views

init system vs configuration management [closed]

Best practice: What tasks would you give to an init system like systemd vs a configuration management system like ansible? What I like about starting up services with a CM is portability across ...
0
votes
1answer
182 views

running a docker container on upstart on Amazon Linux isn't working

I'm trying to get my container to run on startup using upstart. As the tutorial said - I created /etc/init/nginx_server.conf description "Nginx docker" author "Me" start on filesystem and started ...
0
votes
1answer
65 views

Upstart script doesn't work on boot - only manually

I followed this tutorial on setting up Flask with nginx + uwsgi. I created an upstart script at /etc/init/flask-uwsgi.conf: start on [2345] stop on [06] pre-start script mkdir -p ...
1
vote
1answer
88 views

Nginx Process getting lost by Upstart

Usually I can reload my nginx configuration by typing sudo service nginx reload and everything is dandy. However, today I tried it and got reload: Not running I tried restarting nginx and at first I ...
1
vote
1answer
72 views

service in vagrant VM not picking up configuration

I want to setup a Vagrant configuration to create and launch an Ubuntu guest VM which will launch a supervisord service within the VM after Vagrant up. I'd like for this to work on Windows, Mac, and ...
0
votes
0answers
200 views

upstart CentOS vs upstart Ubuntu is there any difference between them?

I'm moving some server configurations from Ubuntu Server 12.04 to CentOS 6.6. Now I'm working on /etc/init script that should be handled by upstart at both OS as far as I know. The files on both ...
1
vote
1answer
76 views

Upstart log stdout and stderr to file not working as expected

When in bash I can run: java -jar server.jar &>> log.txt And it combines the stdout and stderr into log.txt. However when I have this line in my Upstart .conf file, it does not do this: ...
1
vote
1answer
30 views

Proper way to start application servers

I'm not a server admin by any means...but run a few small apps and need to learn how things should work... I start all my stuff manually; mostly rails with puma/thin. When I reboot, I need to start ...
0
votes
1answer
62 views

ubuntu upstart never killing my process

I have a simple bash script: echo "Starting" function sigint { echo "sigint" } function sigterm { echo "sigterm" } trap sigterm SIGTERM trap sigint SIGINT while true do sleep 2 echo "-" ...
0
votes
1answer
173 views

Upstart service was running, stopped and will no longer run

I feel sure that someone, somewhere changed something on the server but I cannot identify what occurred. Keep in mind the service was working perfectly prior to the beginning of this week. (NOTE: this ...
2
votes
2answers
709 views

EC2 linux any and all upstart jobs returning “unrecognised service”

Having a nightmare migrating some upstart jobs from Ubuntu to EC2 Linux (ElasticBeanstalk) I am unable to get even the most basic task to work. I am using the script below which works perfectly on ...
0
votes
1answer
79 views

Upstart service is not killing processes on stop

I have an upstart service that maintains a number of instances of workers. pm-all-workers.conf: start on runlevel [2345] stop on runlevel [!2345] env NUM_WORKERS=25 pre-start script for i in `seq ...
-1
votes
1answer
25 views

Where are smbd system links in UBUNTU 12.04?

After installing Samba on UBUNTU 12.04, I checked the system link run level directories and were not able to find smbd links. This is interesting because smbd is started automatically on reboot. Here ...
2
votes
2answers
384 views

Only start a Docker container after process in other container is operational

I'm trying to deploy 3 Docker containers, having a dependency relation amongst them (A -> B -> C). Now, each container is supposed to run an Akka-Spray instance, on top of a JVM instance. The ...
0
votes
1answer
60 views

Upstart is not sending CONT to my stopped daemon which is configured to use 'expect stop'

I have the following test configuration file for an upstart service, running on Ubuntu 14.04: expect stop chdir /home/joe/Projects/Marketplace env RAILS_ENV="development" script ruby -e ...
0
votes
0answers
94 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
0
votes
1answer
127 views

Chef installation in a chroot (packer): not starting services

I'm trying to use packer.io to create a machine image for a server who's deployment I already have automated using Chef (chef-solo specifically), using the amazon-chroot builder and the chef-solo ...
0
votes
1answer
367 views

How to respawn a script in RHEL/Centos6 when /etc/inittab has been deprecated?

I have a custom init script and I want that script to be respawned if in case the process dies. In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
0
votes
1answer
104 views

How do I keep process running in the background, even after a machine reboot?

What is the way to keep some process running (web server, database and so on) in background, and be sure that in case of system reboot it will start immediately again? I'd like to have this feature ...
3
votes
1answer
189 views

Properly ordering shutdown of MySQL and iSCSI on Ubuntu Lucid

I'm running MySQL on an Ubuntu 10.04 server, with the MySQL $datadir located on an iSCSI volume. The filesystem is tagged with "_netdev" in /etc/fstab. On system shutdown, upstart sends MySQL a ...
0
votes
0answers
62 views

Node.js hotswap deployment

I'm trying to deploy my MEANjs application into production... So far I've use jenkins, git,rsync, etc. to copy the project to the remote server. and in the final step I just have to call stop ...
4
votes
1answer
824 views

Is there a timeout for init.d scripts running during boot process?

I am creating a few scripts that are being registered to execute on server start on CentOS 6.5. One of this scripts has a while loop that blocks until it finds a successful start message on the log ...
1
vote
2answers
119 views

Thin process duplicates after upstart.conf run

I'm trying to run thin server in upstart. Here is what my upstart.conf file contains: description 'kitfaye' start on runlevel [12356] stop on runlevel [!12356] respawn script exec su -l deploy ...
0
votes
1answer
1k views

Node.js Forever upstart script stop hangs

I am using Ubuntu 14.04 with Node.js installed to .nvm and the project direction under my home directory. I am trying to run the script as me bill during boot. And have the ability to restart and ...
0
votes
1answer
812 views

Upstart: cannot run as root

I have made this upstart script, which starts a Node.js service. But all of the sudden the service has stopped, and upstart has failed to restart it. Now that I am trying to start it manually, it ...
1
vote
0answers
32 views

Init script to run overlapping servers at service restart

How can I create a init script that starts (and tracks) the new process before the old is completely terminated at restart? I am developing a node.js service that needs to be able to restart ...
2
votes
4answers
10k views

“sudo service nginx start” fails but “sudo nginx” works - can't figure out why

I have a server that is close to new and having a problem with getting nginx to start as expected. I have configured another server basically the same way and it works there. I figure there must be ...
1
vote
1answer
222 views

Creating a folder in `/var/run` when job is run as a non-privileged user

I have a few upstart scripts which are run as a non-priviledged user using setuid. Pid files should be created in /var/run/my-service: /var/run/my-service/v1.pid, /var/run/my-service/v2.pid and so on. ...
0
votes
1answer
160 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 ...
1
vote
1answer
455 views

Upstart can't stop foreverjs services on shutdown?

Scenario We use a Vagrant-based virtual machine running Ubuntu 12.04 LTS for development of three Node.JS servers that are started using foreverjs. We run the services under the vagrant user and ...
0
votes
1answer
44 views

Upstart init task

Here is my use-case. I have a long running server that is started by upstart. This server needs to be initialized first (populate tables in a db). This should only happen once in the life of the ...
3
votes
1answer
372 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 ...
2
votes
2answers
1k views

ec2 upstart, what is the `start on` command to wait for network

This is my first time with upstart and am using EC2. os/upstart = aws base AMI latest version - upstart-0.6.5-13.3.13.amzn1.x86_64 I can not get the following script to launch when waiting for the ...
1
vote
1answer
844 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 ...
4
votes
1answer
185 views

How to prevent a service from starting until a volume is mounted?

Using Ubuntu 12.04 or 14.04, how can I prevent an upstart service from starting until a couple of network volumes (GlusterFS) get successfully mounted?
4
votes
1answer
650 views

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to ...
0
votes
1answer
176 views

Upstart script which restarts service when file is created

I have created my own upstart script in /etc/init, which I can start and stop. Now I want that service to be restarted when a file (/etc/my-app/restart-requested.txt) exists (or better is touched). ...
2
votes
2answers
1k views

upstart script not logging to file

Linux CentOS 6.5 Here's my upstart script inside of /etc/init/ start on runlevel [2345] stop on runlevel [!2345] exec /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 ...