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.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
67 views

Best way to run service no matter the distro

I am working on an application and want to make the script start on boot, and for the users to be able to run things like service my-program restart What i am seeing is there seems to be different ...
WojonsTech's user avatar
2 votes
1 answer
147 views

How to use upstart on VirtualBox guest

I have a custom upstart job with this basic structure: description "ulfs_bar_example" author "Ulf" # Only run at runlevel 2 (Default multiuser) start on runlevel 2 stop on runlevel [!2] # Keep it ...
UlfR's user avatar
  • 213
2 votes
0 answers
232 views

How to edit and restart and upstart job without rebooting?

I'm trying to deploy a WSGI appplication with Gunicorn. I have written an upstart job for launching the WSGI app. I'm testing different options (Unix socket v. TCP, etc). Whenever I change the ....
manu's user avatar
  • 263
2 votes
1 answer
977 views

Upstart script that displays errors to the console?

I have a simple upstart script that runs a process and respawns it if it crashes. The problem is if it crashes I want the user to be alerted that it crashed (because they may need to take an action to ...
asolberg's user avatar
  • 383
2 votes
1 answer
922 views

After installing upstart Raspberrypi gets stuck in boot

I recently installed upstart blindly replacing things I shouldn't of been. The results was that now my raspberry pi is stuck on Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix Is ...
Nick's user avatar
  • 1,571
2 votes
2 answers
918 views

Upstart script for Sphinx

I am trying to get Sphinx running with Upstart on Ubuntu, but the only script I've found isn't working and seems to be more complex than I require. Could someone provide me with a basic Sphinx ...
Marcus Morris's user avatar
2 votes
0 answers
2k views

Wireless network interface ra0 does not start at boot

I recently installed USB Wireless Adapter based on Ralink RT5370 chip on my Ubuntu 10.04. Manufacturer drivers are installed properly and now I have ra0 wireless interface configured in /etc/network/...
chaplean's user avatar
1 vote
0 answers
73 views

Upstart - execute script at boot when network is not available

I'm trying to figure out how to launch a command/script at boot only if the network is not available (eth0, wlan0) toconnect to a Bluetooth access point (NAP). I understand that upstart is one way to ...
alkopop79's user avatar
  • 131
1 vote
0 answers
1k views

how can remove systemd and use upstart in ubuntu 16

I try to remove systemd service and install upstart in Ubuntu 16.4 but when remove and reboot it, system won't boot, just purple screen. how can remove or disable systemd ?
msm's user avatar
  • 11
1 vote
0 answers
255 views

cronjob + upstart for a node.js script

I can start my node.js script as a process like so: start demo because in /etc/init/demo.conf i have: respawn respawn limit unlimited exec node /home/engine/private_js/demo.js >> /home/engine/...
Ben Muircroft's user avatar
1 vote
0 answers
277 views

Can I use /etc/init/ on Debian Wheezy to manage a daemon process?

I want to run a PHP daemon process and found a solution at Stackoverflow but unfortunately its not working. Now I thought Upstart is not installed since Debian still uses System V. I have two ...
Aley's user avatar
  • 316
1 vote
0 answers
100 views

Running lengthy shutdown script on ubuntu

I need to perform some cleanup work before shutdown that will take 15 to 150 seconds on Kununtu 14.10. The cleanup action should be start after all network services like sshd, ftpd, samba etc. are ...
p.g.'s user avatar
  • 131
1 vote
0 answers
164 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : /etc/init.d/...
Nilesh's user avatar
  • 135
1 vote
1 answer
91 views

Upstart start when system is idle

Is there a way to tell upstart to run a job when system is idle? If not, what is the next best thing - i.e. how to start it very late in the process, when system is reasonably expected to be idle?
icyrock.com's user avatar
  • 5,302
1 vote
0 answers
92 views

Upstart restart process time

A question about upstart. I understand the restart command does a stop and restart of the process. What happens if the process will not stop and check for the signals for a long time (20min or 2h)? ...
user avatar
1 vote
0 answers
340 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
Nik's user avatar
  • 179
1 vote
1 answer
2k views

How to change hostname via kernel command line on ubuntu 12

I booted a guest vm on xen, and I want to assign guest-domU's hostname in config file. like this ... extra='ip=::::myguest-vm-hostname::dhcp' ... It is a kernel command line to setting netboot ...
Chen OT's user avatar
  • 141
0 votes
0 answers
385 views

Service script for gitea always return stop/waiting

I use Ubuntu 14.04 (upstart 1.12.1) and successfully install gitea by follow this guide. However I can't write a service script to start/stop it. My script likes this: start on filesystem exec start-...
Tiana987642's user avatar
0 votes
1 answer
5k views

systemd service failed to start with errror : "main process exited, code=exited, status=3/NOTIMPLEMENTED"

I am getting below error when i start a systemd service [localhost.localdomain]-> systemctl status rcc_rccproxy.service * rcc_rccproxy.service - starts RCC Proxy process Loaded: loaded (/etc/...
Prashanth CM's user avatar
0 votes
1 answer
188 views

Is there an established configuration file for running SubGit as an upstart service?

It seems that upstart is the right way to shut things down and start them up during the reboot process, but I failed to find configuration files with a search of SubGit documentation and a general ...
sage's user avatar
  • 1,137
0 votes
0 answers
80 views

Script does not start when OS start|reboot

I have a file at /etc/init/pdoneVendorBroker.conf with the following content: description "PDone Vendor Broker" start on runlevel [234] stop on runlevel [0156] respawn exec php /var/bundles/...
ReynierPM's user avatar
  • 365
0 votes
1 answer
333 views

why isn't my Upstart $JOB variable being interpolated?

I installed upstart on a Debian 7.8 system, but last I checked this didn't work on an Ubuntu 11 system either. I've got my jobs running using sudo, but would like to do it right if possible. here's my ...
jcomeau_ictx's user avatar
0 votes
1 answer
533 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
goGud's user avatar
  • 121
0 votes
0 answers
1k views

error with upstart script

Further to my last question, I'm now using logger. I have the following upstart configuration start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec 2>&1 > >(...
Michael's user avatar
  • 109
0 votes
1 answer
938 views

How do you start multiple node.js apps using forever and upstart?

I'm managing multiple node.js processes using forever, and I need them to start at boot time. I think that upstart should be used for that, but I'm not sure whether I should create one init script per ...
Andres's user avatar
  • 101