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
4
votes
1 answer

daemonUser for upstart not working in sbt-native-packager

I'm using the sbt-native-packager to create a .deb package including all libraries. The generated upstart-script is using the root user which I obviously want to avoid. I found a hint in the code that there is a daemonUser sbt-setting defined but i…
magegu
  • 530
  • 4
  • 18
4
votes
1 answer

Using Upstart instead of cron

Can I use Upstart to run tasks on schedule? Now I have this tasks in my crontab: 0 3 * * * /usr/bin/node ~/update.js 0 9 * * * /usr/bin/node ~/update.js 0 12 * * * /usr/bin/node ~/update.js 0 15 * * * /usr/bin/node ~/update.js How I can run this…
inetbug
  • 409
  • 6
  • 16
4
votes
3 answers

Upstart script needs to run after /tmp is mounted and writable

I have an Ubuntu Linux server that is running in a Vagrant virtual environment. I use the server for development of a web service. When the server starts up I have a shell script that needs to run once in order to setup a cache directory structure…
SunSparc
  • 1,812
  • 2
  • 23
  • 47
4
votes
3 answers

Ubuntu upstart can not stop/restart graphite carbon-cache

I created upstart config file at: /etc/init/carbon-cache.conf to stop/start/restart carbon-cache process. I can start carbon-cache process using command: start carbon-cache, however, I could not use stop/restart carbon-cache and always gives me…
Nam Nguyen
  • 5,668
  • 14
  • 56
  • 70
4
votes
1 answer

Run Jar file on Ubuntu at system startup

I'm trying to get a .jar file to run at startup on an Ubuntu machine, but I'm not getting anywhere. I've tried the instructions here https://askubuntu.com/questions/99232/how-to-make-a-jar-file-run-on-startup-and-when-you-log-out , and I've tried…
Alex Bunn
  • 390
  • 1
  • 5
  • 19
4
votes
1 answer

How to support several nodejs services by upstart and monit?

I have created an upstart script in order to daemonize a node.js app: description "app_name" start on startup stop on shutdown script export HOME="/home/ubuntu/nodeapp" exec sudo -u nodejs /usr/local/bin/node $HOME/app/server.js…
Erik
  • 14,060
  • 49
  • 132
  • 218
4
votes
1 answer

Upstart error terminated with status 1

I have an ubuntu 10.04 server and tried to create an upstart script: description "node-workerListener" author "me" start on startup stop on shutdown script # We found $HOME is needed. Without it, we ran into problems export…
bernhardh
  • 3,137
  • 10
  • 42
  • 77
3
votes
1 answer

Running a Python service on ubuntu using upstart

I want to create to deploy a heartbeat service (a python script) as a service using Upstart. My understanding is that I've to add a /etc/init/myheartbeatservice.conf with the following contents. # my heartbeat service description "Heartbeat…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
3
votes
1 answer

capturing stdout from python in an upstart job

I'm struggling to save the stdout output of a python2.6 script into a file when I run it as an upstart job. This is my current test script: #!/usr/bin/python from time import sleep import sys while 1: print "Hello from stdout" print >>…
rod
  • 3,403
  • 4
  • 19
  • 25
3
votes
3 answers

Chef recipe: Upstart daemon not starting with Ruby

I'd like to run a ruby mongrel script as the last step of my provisioning system (CHEF). Therefore I wrote an upstart .conf file with the following entries: #!upstart description "mongrel server" author "daniele" start on startup stop on…
danielepolencic
  • 4,905
  • 1
  • 26
  • 25
3
votes
1 answer

Restarting a job (upstart) in a php script

I am currently writing the admin portal for my most recent project. I have been fighting with my computer to get upstart working, and now that it is, I wanted to be able to operate upstart from the web. I need to execute the following in my php…
Walter Johnson
  • 1,624
  • 2
  • 12
  • 15
3
votes
2 answers

Socket.io startup output kills Upstart script for node.js daemon

I have a Node script that uses Socket.io to broadcast messages to connected clients. I want to run it as a background process with an Upstart script. I can start the daemon with sudo start my_server and the process will start and run. However, the…
user631630
  • 41
  • 3
3
votes
1 answer

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 development. Create volume1/path_to_your_app/app.js and…
Berend Kemper
  • 31
  • 1
  • 5
3
votes
2 answers

How do I setup an init.d rc script for a Daemon-kit project?

I am using the Ruby Daemon-kit to setup a services that does various background operations for my Rails application. It works fine when I call in on the commandline: ./bin/bgservice How do I go about creating a daemon initd starter script for it,…
Kevin Baker
  • 1,187
  • 3
  • 12
  • 22
3
votes
1 answer

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 # Required-Stop: $remote_fs $syslog # Default-Start: …
Crankycyclops
  • 552
  • 5
  • 25