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
8 views

Prevent duplicates when launching ssh-agent in upstart script

As part of an Upstart script, I need to launch ssh-agent to load a GitHub deployment key, so in the script I have: eval "$(ssh-agent -s)" ssh-add $HOME/.ssh/id_rsa The problem is that when the ...
3
votes
1answer
442 views

Upstart restart command doesn't load new updated job config (solr)

Here my upstart config for solr which is located under /etc/init/solr.conf # /etc/init/solr.conf description "Starts Solr server" respawn start on startup solr_push script echo "Starting ...
2
votes
2answers
1k views

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown ...
-1
votes
1answer
19 views

Systemd not working after Ubuntu 14.04. to 16.04. upgrade

I just did the above mentioned upgrade but it seems like systemd is not working as it should. If I run a command like systemctl start apache2 I get the message Failed to connect to bus: No such ...
0
votes
1answer
1k views

Why is this upstart script not stopping my process?

I am trying to write an upstart script that checks if my process is running by pinging it's HTTP interface. So far, I just can't get the post-start clause to work. Here's a simplified version that ...
0
votes
1answer
8 views

Does upstart have a built in way to respawn a process that is not stopped using initctl stop in specific intervals?

We thought the following directives would try to respawn the process 10 times in 60 seconds (i.e. once every 6 seconds): respawn respawn limit 10 60 However these directives restart the process as ...
2
votes
3answers
6k views

Why is Upstart not starting uWSGI?

I am trying to set up a django project on my VPS. I am trying to get a uWSGI Emperor to run and thus spawn vassals. I have set up all my config files as suggested by numerous websites including the ...
7
votes
3answers
3k 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 ...
3
votes
1answer
1k views

Ubuntu upstart hangs on interactive start & stop

How do I get Ubuntu upstart to not hang on interactive start & stop? I have created many upstart scripts that work fine during init, but often hang when I enter them at the console. If I CTRL+C ...
2
votes
1answer
295 views

Redirecting app log to rsyslog in upstart script

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
0
votes
2answers
36 views

how to execute a script Rhel 7 at booting time?

I am trying to execute a shell script on RHEL7.1 when the machine starts. As in ubuntu, Upstart scripts (in /etc/init/) are used to execute any scripts or to start any services at boot time, is there ...
1
vote
2answers
2k views

Celery with Upstart - processes are dying unexpectedly

When I'm running Celery with Upstart, after a while, the child processes or the main processes die without any trace. The Upstart script I'm using (/etc/init/celery): description "celery" start on ...
0
votes
0answers
7 views

ubuntu 16.04 blank screen at bootup [migrated]

I am having a problem when booting up Ubuntu (both 15.10 and 16.04). I am getting the following error: $ cat ~/.xsession-errors openConnection: connect: No such file or directory cannot ...
0
votes
1answer
18 views

Which ssh starup script is invoked by ubuntu?

I am trying to run two sshd processes, one for admin and one for sftp. Ubuntu 14.04 on digital ocean has both upstart in '/etc/init/ssh' and init.d in '/etc/init.d/ssh`. Is this just digitalocean or ...
0
votes
0answers
23 views

Upstart script for Bitbucket Server only partially working on Ubuntu 14.04

I installed Bitbucket Server from the archive file onto Ubuntu 14.04, following these instructions: ...
18
votes
5answers
4k views

How to make upstart back off, rather than give up

I want Upstart to do two things: stop trying to respawn a failed process so fast never give up trying to respawn In an ideal world, upstart would try to restart a dead process after 1s, then ...
0
votes
2answers
248 views

How do I chose between upstart, runit, supervisor, daemontools, and etc. for restarting a process if it dies?

I have a Nginx web proxy, gunicorn web server, and a python/flask web app. The Gunicorn process apparently died, and I want to ameliorate that in the future by looking into a utility that can monitor ...
0
votes
1answer
52 views

How to kill a respawn service on ubuntu 14.04 LTS

I want to kill a respawn service by using upstart. when I use "htop" command to monitor system,I observe a process "/123.lock". when I kill it via "kill" command,it restart again. how could I kill it ...
1
vote
0answers
14 views

How to have upstart shutdown rsyslog as last job in Ubuntu 14.04

It seems like upstart decides to shutdown rsyslog on Ubuntu 14.04 as one of the first jobs if a machine shuts down. So most logging of shutting down jobs is lost. How to I instruct upstart to shutdown ...
2
votes
0answers
25 views

Upstart job logs not being forwarded by rsyslog - Ubuntu 14.04 LTS

I've got rsyslog set up correctly forwarding all logs on a set of clients to a central server. Things like ssh auth logs etc all work fine and appear in the remote server properly. The issue is that ...
1
vote
2answers
2k 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
0answers
35 views

Restart service from non-admin user

I write my C++ program and run it as daemon by writing upstart script inside /etc/init/ So my program is automatically started after reboot and can be controlled using sudo service my-service restart ...
0
votes
0answers
32 views

Upstart - how to convert ubuntu daemon to centos?

On Ubuntu this upstart service did a brilliant job at making sure the app always stayed running (and logged) start on started mountall respawn respawn limit unlimited exec node ...
4
votes
4answers
16k 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 ...
0
votes
2answers
522 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
0answers
42 views

nc exits immediately, on connection, when run as an upstart job

I'm using the following /etc/init/jsonlog.conf upstart job: description "jsonlog" start on runlevel [23] stop on runlevel [06] respawn script cd /tmp echo "about to listen" /bin/nc -l ...
0
votes
1answer
56 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 ...
2
votes
1answer
475 views

Amazon EC2 Ubuntu and upstart logging permissions

I have set up this upstart script on a Amazon Ec2 Ubuntu 12.04 TLS instance for executing a node.js application. The script uses setuid and setgid. It works fine without using setuid and setgid but ...
1
vote
1answer
1k views

Starting command on boot with correct user env vars

I am attempting to create a start-up script that will run this command on boot for my ubuntu 12.04 server: bundle exec thin -R config.ru start -p 3030 When I run it as a regular user it works just ...
-1
votes
2answers
874 views

Autossh error with upstart script: ssh exited prematurely with status 0 [closed]

I have set up the following upstart script: # autossh description "autossh connections" start on started dbus stop on (runlevel [06] or stopped dbus) respawn respawn limit 5 60 # respawn max 5 ...
0
votes
0answers
46 views

Use upstart to start a Python-script on boot

I have a server that I want to run a Python-script 24/7. The server is running Ubuntu 14.04. My upstart script looks like this: start on runlevel [2345] stop on runlevel [!2345] env ...
1
vote
2answers
404 views

Process being sent SIGINT when started using Upstart

I have a Linux application which opens up several serial devices (/dev/ttyUSBX) and reads/writes from them. When I run it from a command prompt (Ubuntu 10.04, bash) it works perfectly. $sudo ...
0
votes
0answers
12 views

ubuntu upstart script fails to load job

When I run: sudo start homepage homepage.conf looks like: description "uWSGI server instance configured to serve homepage" start on runlevel [2345] stop on runlevel [!2345] setuid user setgid ...
1
vote
0answers
258 views

How to deal with Upstart “terminated with status 1”?

I have a very simple script on Ubuntu 14.04 upstart (/etc/init/myscript.conf) description "Something" author "me" start on filesystem and started networking stop on shutdown respawn respawn limit 5 ...
5
votes
3answers
3k 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/ ...
0
votes
1answer
42 views

How to change max file limits on a process

Yes I know this question has been asked before and I have tried all the solutions I have seen and none of them work for me. We are running Ubuntu 12, and we have a process that automatically gets ...
1
vote
1answer
616 views

What is meant by /sbin/init too old? [closed]

I am trying to use Upstart to daemonize a script. So, I made a .conf file under /etc/init/. Now to check the conf file I did init-checkconf /etc/init/ping_me.conf And it says ERROR: version of ...
0
votes
0answers
300 views

php5-fpm does not start on Debian Jessie

I just upgraded a Debian server from Wheezy to Jessie but I'm having some problems on php5-fpm: Setting up php5-fpm (5.6.14+dfsg-0+deb8u1) ... debconf: unable to initialize frontend: Dialog debconf: ...
1
vote
0answers
70 views

uWSGI won't start via Upstart, but starts ok from the console

I'm trying to make uWSGI run on boot using Upstart on a Vagrant box. So I've created /etc/init/uwsgi.conf with the following contents: # simple uWSGI script description "uwsgi tiny instance" start ...
7
votes
2answers
4k views

How to define different stop/restart signals with upstart

I am starting to convert all of our systems to using upstart to manage our various application processes. One thing that I am constantly missing is the ability to send a different signal to the ...
0
votes
0answers
17 views

upstart script is not picking system default environment variable

I have one openstack based service. Which we are ran using upstart script. upstart script # filename: /etc/init/myservice.conf start on runlevel [2345] and started mountall stop on runlevel [016] ...
0
votes
1answer
501 views

Why does my Upstart job work with sudo but not with setuid?

I have an Upstart job for a Node.js application, and I want to make it run Node as the node user rather than root. When I use setuid in the job config, whenever I try to start the job, it says my-app ...
0
votes
1answer
144 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 "-" ...
4
votes
1answer
330 views

start on vagrant-mounted (upstart) equivalent in systemd

I have a Vagrant box running Ubuntu 15.04, which has an upstart script that starts a service when the system boots. It has a start on vagrant-mounted stanza because the service requires that the ...
1
vote
2answers
4k views

Daemon crashes but upstart thinks it is still alive

I have to following problem: We have an Java application which is started by an bash script. This application should run as a daemon, so we have an upstart-job to start it. start on runlevel [2345] ...
0
votes
1answer
315 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 ...
0
votes
0answers
28 views

Why upstart starts my processes in an inconsistent way

I'm debugging a strange issue with upstart managed jobs. I have a ruby web application which is started using passenger and I generate upstart configuration files using foreman The problematic ...
3
votes
3answers
2k views

Fedora14 serial console how-to needed

Has anyone ever got a serial console working in fedora 14 ? Is it as simple as adding to grub: serial --unit=0 --speed=38400 terminal --timeout=10 serial console and add to the kernel lines: ...
1
vote
1answer
218 views

How to configure a newer version of Supervisord to start on system boot in Ubuntu 12.02?

How do you configure a newer version of supervisor to start on system boot in Ubuntu? Some distributions simply lag behind in their repositories. When I use easy install (as recommended by default on ...
7
votes
1answer
4k views

What signal does upstart/initctl use to restart a job?

What signal will upstart/initctl use to restart a job? Furthermore, is there any way to specify that SIGHUP should be used? Alternately, is there a way to define a custom reload command that will ...