Questions tagged [upstart]
Upstart is an event-based replacement for the traditional init daemon used to perform tasks when the computer is started.
546
questions
0
votes
0
answers
24
views
Rsyslog can't start inside of a docker container
I've got a docker container running a service, and I need that service to send logs to rsyslog. It's an ubuntu image running a set of services in the container. However, the rsyslog service cannot ...
0
votes
1
answer
62
views
RabbitMQ Node died with proxied Nginx server
We have a RabbitMQ cluster that was set up by someone that is no longer present, and I do not know enough about it to fix what is wrong. Only way I knew it was down was because of a programmatic error ...
0
votes
0
answers
120
views
Sidekiq Upstart on AmazonLinux 2018.03
My goal is to add the sidekiq service to upstart on AmazonLinux 2018.03.
Since I want to upgrade sidekiq to version 6, There are needs to manage the process by OS like upstart.
I put a file to /etc/...
1
vote
0
answers
181
views
Ubuntu puma-manager.conf custom service Job failed to start
I have an Ubuntu 14 server where I run a Ruby on Rails app and I want to create a service that will start the rails server automatically on reboot. This service should allow me to run the Puma server ...
2
votes
1
answer
7k
views
Node JS running on Synology Nas, accessing ssh Windows Powershell, port forward, Linux upstart (.conf) script running the app.js permanently
The Nas I used at home has installed Node JS v12 from Synology's package center. So I thought it would be cool to create a Node JS http webserver and study myself into back-end and front end ...
0
votes
0
answers
56
views
How to proper write an upstart script?
I am trying to write an upstart script to be put in /etc/init to start neo4j on start-up. I am on a VM with Ubuntu 16.04. My file, taken from here is named neo4j1.conf and looks like:
description "...
0
votes
1
answer
69
views
How can I export the execution of a command to an upstart script
I have an upstart script that runs a nodejs-app, but Node.js is installed with nvm. I source some variables to upstart from another file, and my script section looks like this:
script
. /etc/default/...
1
vote
1
answer
838
views
Unable to run gitlab-ctl reconfigure after updating from 10.6.4 to 10.8.7 on RHEL 6
I am working on the upgrade to the latest 11.x version of gitlab but needed to upgrade to 10.8.7 first from 10.6.4 on RHEL 6. That upgrade proceeded normally, then I attempted the upgrade to latest 11....
0
votes
3
answers
1k
views
How can I stop Apache Storm Nimbus, UI and Supervisor?
I run Apache Storm in a cluster and I was looking for ways to stop and/or restart Nimbus, Supervisor and UI. Would writting a servise help? What should I write in this service file and where should I ...
1
vote
0
answers
51
views
How to fix erlang application restarting with upstart?
I have an erlang application (OTP 21) that runs as an upstart service. When I try to restart application with sudo initctl restart my_service I got an error:
Protocol 'inet_tcp': the name my_service@...
1
vote
0
answers
3k
views
How to disable serial console during bootup
I have stopped ttyS0 (initctl stop serial DEV=ttyS0). The ttyS0 process stops for the session but reappears post to reboot, I want to disable ttyS0 at boot as it throws errors like:
Feb 19 20:19:42 ...
1
vote
1
answer
31
views
Why is my RubyGems environment different when using setuid from an upstart script?
I'm having a problem where my RubyGems environment is wrong when starting a Rails application from Upstart on Ubuntu. In my Upstart script I use setuid www, then run a wrapper script which eventually ...
2
votes
1
answer
113
views
Process is not respawning when an associated post-stop process is killed
I have a process xyz, whose upstart script is as below
description "Run the xyz daemon"
author "xyz"
import SETTINGS
start on (
start-ap-services SETTINGS
)
stop on (
stop-ap-services ...
1
vote
0
answers
53
views
How to start a program on localhost server on reboot using shell script [duplicate]
We are trying to start a go program which runs localhost on the specified port when the system reboots using shell and crontab. Following is the work we have done so far:
created a shell file called ...
1
vote
0
answers
82
views
Running python script with upstart
I try to run python script, script runs multiple processes and one process runs multiple threads. This script run under root and 'initctl stop script' done successfully (script stops), but if I run ...
1
vote
0
answers
170
views
Airflow starting with upstart
I have old version of upstart (0.6.5) and want to start airflow webserver with upstart.
description "Airflow webserver daemon"
start on started network-services
stop on (deconfiguring-...
1
vote
1
answer
278
views
Upstart job running script
Ubuntu 14.04
I have simple upstart job test.conf:
root@ubuntutest:~# cat /etc/init/test.conf
expect fork
script
/root/test.py
end script
and simple python script /root/test.py:
root@ubuntutest:~# ...
1
vote
1
answer
150
views
upstart run script between particular time
I would like to run a script between two hours using upstart:
start at: 9h00
stop at: 23h30
This is my upstart:
author "bakka"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
script
...
2
votes
0
answers
564
views
How to set memory limits on Docker Daemon when using Upstart as an init system?
The answer to question, Docker 17.06-ce default container memory limit on shared host resources is applicable to my question, except it proposes a Systemd only solution.
I have read question, Setting ...
0
votes
2
answers
2k
views
NODE APP: Systemd startup script not working?
Trying to create a start up script for my nodejs app which runs on port 3000.
Issue: The node-app.server script is not working and I think it's because ExecStart pathway is wrong. When I go to the ...
2
votes
1
answer
2k
views
Sidekiq with multiple instances with different queue using same redis server
Recently had to prioritize my Sidekiq queues (before I was using only the default queue).
so, i thought of using reserved queues as per https://github.com/mperham/sidekiq/wiki/Advanced-Options#...
2
votes
1
answer
694
views
How to manage a group of resque workers using systemd?
I'm trying to migrate control of a group of resque workers from upstart to systemd. Under upstart we were able to have two control scripts, one script that defined a single worker and a second script ...
0
votes
1
answer
133
views
How can I create an Upstart Zip package using sbt-native-packager?
I am unable to generate an upstart zip package.
I have added the following to my sbt project
...
enablePlugins(UpstartPlugin).
enablePlugins(JavaServerAppPackaging)
and then run
sbt clean universal:...
0
votes
1
answer
54
views
changing user in upstart script
I have an upstart script that does some logging tasks. The script testjob.conf looks like below:
description "Start Logging"
start on runlevel [2345]
script
sudo -u user_name echo Test Job ran at ...
0
votes
0
answers
29
views
Can't print out date in sys log when running a service using upstart script
I am setting up Linux service using upstart script:
description "AAE client app"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env PATH=/home/ec2-user/aae_client/env/bin
env ...
0
votes
1
answer
17
views
Why does service runs as root while USERNAME is set to something else
I am setting up a Linux service for my Python app using Upstart. Here is the conf file in /etc/init/
description "AAE client app"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env PATH=...
0
votes
1
answer
121
views
Why upstart service does not stop when sys.exit is called by Python
I set up a Python application as a Linux service using Upstart script.
description "AAE client app"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env PATH=/home/ec2-user/aae_client/...
0
votes
1
answer
148
views
Airflow Upstart Goes Straight to Stop/Waiting
I am trying to have the Airflow scheduler & webserver running in the background on the ubuntu EC2 instance. Whenever I start the upstart job, the airflow-webserver job goes straight to stop/...
0
votes
1
answer
237
views
Cannot start upstart job, error: Could not open input file
I have an upstart configuration that worked before and now it shows the error:
Could not open input file: /var/local/test/run.php
but the file is there and I can normally run it with php /var/...
2
votes
1
answer
2k
views
Amazon Linux 2 AMI cannot start program with upstart
I wanted to run my server when connection to terminal is closed but i cannot do it.
Whenever i try to sudo start myconf_file it returns with start: command not found or even sudo initctl start ...
2
votes
1
answer
2k
views
Systemd + Sys V init.d script: start works, but stop does not
I'm pretty new to writing systemd compatible init scripts. I've tried the following example:
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: test
# Required-Start: $remote_fs $syslog
# ...
1
vote
0
answers
54
views
Upstart job and dependencies
We have three jobs, job1, job2 and job3. With job3 depending on the other two:
job3 config
start on (started job1 and started job2)
stop on (stopping job1 or stopping job2)
with this configuration, ...
1
vote
0
answers
40
views
How to Raise upstart access?
My project run when i use ./launch.sh command in terminal.
But with upstart not run, i try to run it i get this on upstart log:
Operation not permitted
It seems like little access,
My upstart script:...
2
votes
1
answer
44
views
Puppet start on device with no clock?
I'm starting puppet agent using upstart on a Debian 14.04 embedded system:
description "Puppet Agent"
start on started 2klic-gateway
stop on runlevel [!2345]
respawn
pre-start script
if [ ! -f ...
1
vote
1
answer
892
views
A better way to make a Node app run forever on a Linux server?
currently I use nohup and forever.js to run my app on the server (Linux) without interruption:
nohup forever app.js > logs &
plus I have a cron script that checks if my neo4j database is ...
0
votes
0
answers
51
views
How to make VS 2012 program to copy itself to startup folder in C#
I want to make my super simple program to copy itself to the startup folder regardless if the os is w7/w8/w10 what I've done already is change the manifesto privileges with this:
<...
4
votes
3
answers
7k
views
Set GIT_DISCOVERY_ACROSS_FILESYSTEM to allow service to access git repo stored under a symlink
We have an Upstart service/job that uses a local clone of a git repo. After relocating the data folder using a symbolic link we now get the following error message:
Failed to run 'git fetch' for /...
1
vote
0
answers
107
views
Converting chef upstart template to systemd for ubuntu 16.04
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 ...
1
vote
1
answer
383
views
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 ...
1
vote
1
answer
385
views
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 ...
0
votes
0
answers
62
views
How to use systemd script
I am trying to deploy flask app on aws using nginx.I am trying from this tutorial:here is the link
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-...
0
votes
1
answer
635
views
Running a script with upstart server in ubuntu 14.04
I have a script named rotate.sh. After chmod +x rotate.sh, I can run it with the command /home/lin/Desktop/rotate.sh, and my screen will rotate left.
rotate.sh:
#!/bin/bash
xrandr --output VGA1 --...
1
vote
1
answer
6k
views
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 ...
0
votes
2
answers
119
views
How to copy a file in a upstart script on Linux?
I have a simple upstart job. I want to copy a file there when it is restarted. I can not get it to work. I have read how to execute bash scripts etc from upstart but I dont get it to work. This is ...
3
votes
2
answers
6k
views
Start node server on machine startup
I was trying to start node.js server on startup of the machine (ubuntu 16.04) with upstart by using the the following code in nodeserv.conf file:
#!upstart
description "Node.js server"
author "...
0
votes
2
answers
2k
views
Ubuntu service Upstart or SystemD, Django development server as Service
I've been working around with Python & Django Framework for a while with Ubuntu 16.01. Since I used Django with Q system (Celery) and some others Enhancement Apps. When I try to run all the apps ...
6
votes
1
answer
815
views
How to debug an upstart script that intermittently fails?
I have a process that I want to start as soon my system is rebooted by whatever means so I was using upstart script for that but sometimes what I am noticing is my process doesn't get started up ...
0
votes
1
answer
249
views
What is systemd equivalent of upstart "on stopping" and "on started"
I am translating my upstart scripts to systemd scripts and I am wondring what is the best practice of transalting the following:
start on started postgresql
stop on stopping postgresql
Is the ...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
70
views
Hot update a service that start by upstart or systemd
A service start by Upstart or systemd and I want hot update it. After update, the new service process is running and then kill the old service process that start by upstart or systemd. A at last, the ...