Questions tagged [upstart]
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.
284 questions
0 votes
1 answer
361 views
RemainAfterExit in Upstart
Is there an Upstart equivalent to systemd's RemainAfterExit? I have an upstart task that exec's a script that completes quickly when the task is started. However, I would still like that task to ...
0 votes
1 answer
2k views
How to create a systemd "start all" template unit file from an upstart script with multiple services?
I'm in the process of migrating all custom upstart scripts to systemd. I've come across a script that utilizes multiple services. I cannot figure out the proper syntax to handle this, or if I need to ...
0 votes
1 answer
355 views
Cronjob for Upstart service not working
I have an Upstart init script that manages a python script on the server. The pre-start and pre-stop scripts append a timestamped entry into a log file. There is a cronjob to stop and start the ...
2 votes
0 answers
3k views
How do I increase open file limit for nginx's master process on Ubuntu 14.04 LTS?
Not a dupe: This is not a duplicate of this question. I've already looked into that question. That helps with raising the limit for worker processes, but the nginx master process continues to retain ...
0 votes
1 answer
1k views
convert upstart to systemd - run command as root, spawns command off as another user
I need help with converting an upstart .conf into a systemd .service. Essentially what my .conf file does is this: exec su -l foo -c 'cd /var/www/path/to/file ; bundle exec puma -C config/puma.rb' As ...
0 votes
1 answer
139 views
Upstart - How to run cmd or script instead of respawn
I have a service process monitored by Upstart on Ubuntu. If that process dies abnormally, I don't want to try to respawn it. Instead, I would like to throw a notification and shut down the entire ...
3 votes
0 answers
631 views
Should I use systemd or docker-compose to keep Docker containers running on my systems?
We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
14 votes
1 answer
30k views
systemd script for starting my app server - Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
I have a upstart configuration file as shown below which works fine in Ubuntu 14: #/etc/init/data_server.conf #sudo start data_server #sudo stop data_server #sudo status data_server start on ...
-1 votes
1 answer
341 views
systemd script for starting my app server as soon as it is down or system is rebooted
I have a upstart configuration file as shown below which works fine in Ubuntu 14: #/etc/init/data_server.conf #sudo start data_server #sudo stop data_server #sudo status data_server start on ...
1 vote
6 answers
17k views
isc-dhcp-server doesn't start automatically
Running on Astra Linux 1.3, my dhcp service (isc-dhcp-server) is well-configured now and work as expected with a slight nuance - it works only when it's started, but a system don't run it at startup. ...
0 votes
1 answer
503 views
SSH crash on startup
My connection ssh to my VPS is not working anymore, i checked the auth.log file and found this : auth.log Jul 28 20:22:04 warp sshd[31257]: Accepted password for root from MY_IP port 49196 ssh2 Jul ...
1 vote
1 answer
930 views
Running daemon as non-root user in Upstart script
I have an upstart script that runs a background daemon that I want to run as a specific non-root user. The script is here: How To Create a Calibre Ebook Server on Ubuntu The relevant bit is here: ...
0 votes
0 answers
109 views
Which init system is main on particular system?
I have installed application with several init scripts as for dpkg -L application shows. For example: /etc/init/application.conf /etc/init.d/application /usr/systemd/applaication.service But i use ...
1 vote
1 answer
541 views
Sending Message to server over socket on startup using Upstart
Problem I need to send a message to a a server via a TCP socket during computer startup. We are using Ubuntu 14.04 and therefore, by default, must use Upstart as the system initialization. (We also ...
0 votes
1 answer
183 views
How can I set the same set of environment variables for multiple upstart daemons?
I have a bunch of job/daemon configuration files, say: /etc/init/service1.conf /etc/init/service2.conf /etc/init/service3.conf Most of those jobs are quite similar, and the files are of a format like:...
0 votes
2 answers
2k views
Mongod stuck in stop/waiting on Ubuntu 14.04
I installed MongoDB on Ubuntu 14.04 as per the documentation. It runs and works fine, except that it mysteriously stops every few hours and requires a manual restart with service mongod restart to get ...
0 votes
1 answer
427 views
upstart and LD_LIBRARY_PATH
I am new to upstart and required to start a process through it. However I am getting error which is described below. my script contents description "Server" author "Neeraj" expect fork respawn ...
2 votes
1 answer
880 views
Why would one use "stop; exit 1" in an Upstart script rather than just "exit 1" in case of an error?
I am maintaining an Upstart script (version 0.6.5) and in the pre-start script, there's a test to terminate the service if a precondition is not met: pre-start script if [ ! -f $REQUIRED_FILE ]; ...
1 vote
1 answer
62 views
Upstart, node and bash users
I am having some problems understanding all the mechanisms behind the user management with upstart, node and bash. What I want to do: I want to have a service, that executes a node script. This ...
0 votes
1 answer
849 views
Unknown Job Issue: Ubuntu Upstart Conf though syntax is ok
I am trying to run Apache Solr 4.10.4 as service in Ubuntu 14.04. I have written the following upstart conf file : sudo vim /etc/init/my-solr-job.conf # my-solr - Search Backend Engine description ...
1 vote
0 answers
325 views
Does upstart wait until a core dump is written before restarting the process?
On our Ubuntu servers, core dumps are currently disabled. If we enable them, and a daemon process crashes, will that impact the time taken for upstart to restart the process? That is: if my daemon's ...
0 votes
0 answers
521 views
Keep Service Running with Upstart
I am trying to use upstart to keep a service running: rabbitmq-server. I have written an upstart configuration file in /etc/init/rabbitmq.conf 1 2 start on runlevel [2345] 3 stop on runlevel [...
1 vote
0 answers
80 views
running composer from upstart
I am running Ubuntu 14.04. I am trying to make a service capable of deploying an application. The process is very simple: I have a node script listening on port 2133 for a POST request When this ...
0 votes
1 answer
150 views
Proper way to get process to turn on after reboot on AWS-AMI linux
I'm trying to make sure my queue system does not fail when the server gets rebooted. The PHP processed queue system is started up via a command line command. The Laravel documentation suggests ...
1 vote
1 answer
560 views
Init script doesn’t work properly by using “service” command
I have the following startup script, which should either start or stop a screen in detached mode: #!/bin/sh # node2 # Maintainer: @KittBlog # Authors: [email protected] ### BEGIN INIT INFO # ...
1 vote
1 answer
465 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
1 answer
12k 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
1 answer
2k 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
2 answers
3k 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
1 answer
70 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
1 answer
531 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
0 answers
98 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
0 answers
85 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
0 answers
703 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 ...
2 votes
2 answers
23k 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 ...
1 vote
1 answer
1k 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
1 answer
1k 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 /sbin/...
3 votes
0 answers
297 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 ...
2 votes
1 answer
4k 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 ...
14 votes
2 answers
7k views
How do I chose between upstart, runit, supervisor, daemontools, ... for restarting a process if it dies? (process supervision / monitoring)
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 ...
7 votes
1 answer
1k 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
0 answers
2k 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
1 answer
2k 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
0 answers
1k 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
2 answers
619 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
1 answer
115 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
1 answer
177 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
1 answer
255 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 start/...
2 votes
1 answer
19k 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 , ...
3 votes
1 answer
5k 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 ...