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

Converting chef upstart template to systemd

I have one upstart template in chef-Cookbook and want to convert it into Systemd so that it can be supported in 16.04. I have already converted but faced the issue as my server is not starting properly. Below is the upstart script…
Arora20
  • 983
  • 10
  • 17
1
vote
1 answer

Upstart: ImportError: No module named

I have a simple python script import boto3 print('I know you are installed') I'm sure the boto3 module is installed pip3 install boto3 If run via terminal python3 test.py I get the expected output I know you are installed If I run the same…
Sam Luther
  • 1,170
  • 3
  • 18
  • 38
1
vote
1 answer

launch terminal and execute script from systemd after reboot

I have been creating an install script that is going to be used for installing proxy and Dev configs on Ubuntu Xenial Desktop only. I have 2 scripts that are all interactive and require input from the user, my challenge is each script needs a reboot…
1
vote
1 answer

How to use multiple exec command in a upstart script?

Here is what I tried to run multiple exec command , but I am getting output of email but not for the sms . Is there a way to run the both exec command ? description "starts a kafka consumer for email and sms " respawn start on runlevel [2345] stop…
Satyaki
  • 31
  • 5
1
vote
2 answers

Upstart problem with virtualenv - Python/Ubuntu

I'm using upstart in order to start this script: pre-start script sudo export WORKON_HOME=~/.envs sudo source /usr/local/bin/virtualenvwrapper.sh sudo workon env1 end script start on runlevel [2345] stop on runlevel [!2345] exec python…
RadiantHex
  • 24,907
  • 47
  • 148
  • 244
1
vote
0 answers

upstart - run python script in background not from root folder

I have a python script which is in some folder say /home/pcname/Program/myScript.py. I run it on computer startup using upstart. My python program has some mv, cp operation which it does with respect to Program folder. But when this script runs…
emkay
  • 777
  • 8
  • 19
1
vote
1 answer

Trying to use upstart to run npm script, but can't find where npm is installed

I started an Amazon Linux instance via AWS EC2. I'm trying to write an upstart script that will start my node server when the instance starts up. If I run npm start in the terminal, my node server starts successfully. I'm using the following upstart…
Derek Soike
  • 11,238
  • 3
  • 79
  • 74
1
vote
1 answer

Activate conda environment in upstart configuration file

I have a digital ocean droplet running a django project through gunicorn on ubuntu. A conda environment to manages the python dependencies. I can log in, run source activate py35, cd into the django project and run gunicorn django.wsgi -w 2 -t 360,…
DataSwede
  • 5,251
  • 10
  • 40
  • 66
1
vote
0 answers

Restart a python script within another python script

I have two python3 script, one which is a REST API and another one which can add resources to the first one. Right now, they are working with upstart to make sure that they are always running smoothly. I would like to restart/reload one of them from…
macdrai
  • 586
  • 5
  • 6
1
vote
0 answers

Running a python script on start-up/background in Ubuntu Linux - Failed to start service, Unit Not Found

I wrote a python script and need this to be running 24/7. Haven't really done this before and I decided to use upstart in my Digital Ocean cloud running Ubuntu, and followed the below tutorial.…
wolfcubman
  • 13
  • 3
1
vote
1 answer

Setting environment variable by fetch the value from an URL before unix services start

I need to set an environment variable before my init system actually starts other services, These services are baked into an AMI and use environment variables to run commands. In my case init system can be either upstart or systemd. For setting…
rajat
  • 3,415
  • 15
  • 56
  • 90
1
vote
1 answer

Upstart and uWSGI, work processes not exited

Above table's second column is pid. I'm using upstart for daemonize uwsgi, and upstart configuration file is here: respawn chdir ${DIR_OF_PROJECT} script set -a . ${DIR_OF_PROJECT}/.env uwsgi --ini uwsgi.ini --plugin python3 --master…
JuHong Jung
  • 226
  • 5
  • 19
1
vote
0 answers

Using a function in Upstart configuration

I am writing an upstart configuration file. Within it, I have a pre-start script, a script, and a pre-stop script stanza. Each of these had a large amount of identical code. Thus, I attempted to refactor this code into a few bash functions. …
BlackVegetable
  • 12,594
  • 8
  • 50
  • 82
1
vote
1 answer

dotnet core on ubuntu 14.04 upstart issue

I got dotnet core 1.0 running on a ubuntu 14.04 vm. I'm attempting to write an upstart script for my deployment process: start on filesystem and started networking respawn chdir /home/dotnetuser/dotnetportal/ exec sudo /usr/bin/dotnet restore exec…
fredp613
  • 107
  • 1
  • 8
1
vote
1 answer

How to write upstart script for nginx service?

In my usecase, I am trying to write an upstart script for nginx service. Here is my content, #nginx upstart script description "start and stop nginx server" start on (net-device-up and local-filesystems and runlevel [2345]) stop on runlevel…
Dany
  • 2,692
  • 7
  • 44
  • 67