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
9 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 ...
-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
9 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 ...
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 ...
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: ...
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
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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
619 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
303 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 ...
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
502 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
2answers
251 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 ...
4
votes
1answer
331 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 ...
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 ...
1
vote
0answers
259 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 ...
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 ...
1
vote
0answers
179 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
179 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
33 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
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 ...
0
votes
1answer
60 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
81 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 , ...
1
vote
1answer
2k 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
75 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
129 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 ...
2
votes
1answer
65 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
50 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
51 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
64 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
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
1answer
137 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
194 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
188 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
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 ...
1
vote
1answer
136 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
41 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
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 "-" ...
0
votes
1answer
333 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 ...
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 ...
0
votes
1answer
299 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
27 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 ...