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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

How do a change the user under which JDownloader runs on a Synology NAS?

When installing JDownloader from the package center on Synology, the package runs as root, and therefore all of the files it creates are owned by root. Not ideal. How do I run it as a user so that the ...
user avatar
0 votes
1 answer
58 views

CentOS 7 - Load settings for iptables at OS startup

I would like to load the settings below for iptables on CentOS 7 at OS startup using a bash script. How can I do this? #!/bin/bash iptables -I OUTPUT -d 0.0.0.0/0 -j ACCEPT iptables -I FORWARD -d 0....
user avatar
0 votes
0 answers
316 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-...
user avatar
1 vote
2 answers
1k views

Linux - Program persistanly running on port 3000

I have a node server running consistently on port 3000, so every time I kill it, it will load back. I know which program server it is, but I don't know which program/service is responsible to ...
user avatar
0 votes
1 answer
3k 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/...
user avatar
13 votes
2 answers
69k views

Systemd error : Executable path is not absolute

I have the following below code of systemd. [Unit] Description=start RCC logger server process Requires=rcc-drbd.service rcc_check_locked_scr.service s96rcc.service After=rcc-drbd.service ...
user avatar
3 votes
2 answers
477 views

How to foreground a process started by upstart?

Is it possible to foreground a process started by upstart? root@me:~# ps aux | grep my-app root 2208 0.2 0.0 1456 480 ? S 17:38 0:01 /opt/me/my-app root@me:~# fg 2208 -bash: fg:...
user avatar
  • 1,783
0 votes
1 answer
242 views

Point systemctl to use variables from a file

I'm using systemctl to launch and keep my app alive. Below is my .service file. Notice the Environment='METEOR_SETTINGS={"privateKey": "ohnoyouseemyprivatekey!"}'. This is where I will be storing ...
user avatar
  • 103
3 votes
2 answers
2k views

How to find out which service manager is installed on my Linux OS?

I know that my Linux installation comes with one of the service manager implementations. It could be either Systemd, Upstart, or any of the others. So, my question is how can I find out which one of ...
user avatar
  • 219
1 vote
0 answers
71 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 ...
user avatar
  • 131
0 votes
1 answer
178 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 ...
user avatar
  • 1,027
2 votes
1 answer
142 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 ...
user avatar
  • 203
1 vote
0 answers
956 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 ?
user avatar
  • 11
0 votes
1 answer
387 views

How to run a script on startup for Old Linux kernel (3.0.0)

I need to run a script on system startup, but the Linux version is very old, so: There is no rc.local. Even when I created it and gave it a command, it was never run. There is no crontab at all. ...
user avatar
  • 111
1 vote
1 answer
779 views

Upstart: What is the first tracked PID w/o expect, but with script AND exec?

I have some Upstart configs used to start some foreground and blocking processes to run in the background as some kind of "daemons", especially those processes do not fork in any case. What I want is ...
user avatar
1 vote
1 answer
2k views

Tell if a process is under systemd, init.d or Upstart control

Is it possible to reliable tell for a given Linux process if it was launched or is still supervised by an init.d script, Upstart or systemd ?
user avatar
  • 1,780
1 vote
0 answers
250 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/...
user avatar
0 votes
0 answers
79 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/...
user avatar
  • 341
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 ...
user avatar
6 votes
2 answers
15k views

shutdown: /run/initctl: No such file or directory

I updated my server to Debian wheezy and played around with it. After a while I wanted to restart and encountered the error shutdown: /run/initctl: No such file or directory I searched on the web ...
user avatar
  • 161
0 votes
1 answer
923 views

Setting user in Upstart script for Node.JS and Forever

I run a web site that uses Node.JS on Ubuntu Server (14.04 LTS). After rebooting the machine, my current workflow is to manually start the server manually by running the command $ forever start app....
user avatar
  • 397
0 votes
1 answer
496 views

MongoDB manually preparing for upstart but not running

I am on Ubuntu 14.04.1 LTS. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty Instead of using the system ...
user avatar
  • 1,189
3 votes
1 answer
4k views

What do these exec su parameters do?

What is the meaning of the switches and parameters of this command? exec su -s /bin/sh -c 'exec "$0" "$@"' root -- /opt/nsq/bin/nsqd Specifically the -- part and what exec "$0" "$@" is supposed to ...
user avatar
0 votes
1 answer
3k views

initctl not finding an upstart service

I have the following upstart config (see below), on Centos 6.5 the file is in /etc/init/prerender-io.conf, the service does not appear with the "sudo initctl list" command also, sudo initctl ...
user avatar
  • 131
1 vote
0 answers
274 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 ...
user avatar
  • 276
1 vote
0 answers
96 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 ...
user avatar
  • 121
1 vote
0 answers
162 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/...
user avatar
  • 135
0 votes
1 answer
514 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 ...
user avatar
  • 121
2 votes
0 answers
229 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 ....
user avatar
  • 263
1 vote
1 answer
854 views

How can I make my Upstart service depend on PostgreSQL?

I have a service configured as an upstart job. How do I make sure that PostgreSQL is running before my service is started? Ubuntu 14.04 here.
user avatar
7 votes
1 answer
6k views

Where in CentOS does program start at boot if it's not in init.d?

I have installed a software (GitLab) on CentOS. It works well, but this GitLab starts at boot and I don't want that. So I took a look at /etc/init.d in order to disable it with chkconfig, but my ...
user avatar
  • 173
1 vote
1 answer
1k views

How to configure network interface names booting from read only medium?

in a Ubuntu 12.04 system, we'd like to configure the names of the (physical) network interfaces (such as eth0, eth1, ...) using udev rules such as those generated in /etc/udev/rules.d/70-persistent-...
user avatar
13 votes
3 answers
13k views

How to execute commands as root in git post-receive hook

I just recently set up a remote git repo on a server for a web app running as an Upstart service. I'd like to use the post-receive hook to trigger actions that are required to update the application ...
user avatar
  • 311
1 vote
1 answer
86 views

Are upstart jobs guaranteed to be given time to run?

I am writing an upstart job that runs a shell script at startup and shutdown which synchronizes some files with a remote machine using rsync. The script can sometimes take a long time to complete if ...
user avatar
2 votes
1 answer
970 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 ...
user avatar
  • 363
2 votes
2 answers
4k views

My upstart script is says its running but doesn't actually run - Ubuntu 10.04 LTS

This is on Ubuntu 10.04 LTS So I've got a gulp script (running through Node) that works great when I execute it manually. It actually runs a "watch" on a directory so that if any of the files change ...
user avatar
  • 363
0 votes
1 answer
556 views

Stopping an upstart script not working

When I try: stop mysite_api, I get: stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.11" (uid=1000 pid=2242 comm="stop mysite_api ") interface="com.ubuntu.Upstart0_6.Job" ...
user avatar
  • 267
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 > >(...
user avatar
  • 109
0 votes
1 answer
500 views

Fail to redirect log to /var/log/syslog

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
user avatar
  • 109
8 votes
2 answers
9k views

Upstart: Run service as unprivileged user and pre-start script as root

I have following upstart job: description "posty api" start on mysql stop on shutdown env RACK_ENV=production setuid vmail setgid vmail chdir /opt/posty_api pre-start script mkdir -p /var/...
user avatar
  • 215
3 votes
1 answer
65 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 ...
user avatar
0 votes
2 answers
2k views

Using cron vs. system managed service for frequent tasks

If some task should run in an frequent but not neccessary precise manner, what would the benefits of using cron vs. just using a service (eg. managed by upstart) with a loop script like #!/bin/sh ...
user avatar
  • 1,780
3 votes
1 answer
2k views

Upstart: chdir stanza VS cd command

In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section. What is the difference between this two approaches? When ...
user avatar
  • 131
6 votes
2 answers
9k views

How to troubleshoot Upstart Unknown job error

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
user avatar
  • 1,285
1 vote
1 answer
3k views

Ubuntu: Tomcat upstart script. Logs end up in upstart log

I have a simple upstart script for tomcat. Here is the chef template: description "Tomcat Server" start on runlevel [2345] stop on runlevel [!2345] respawn respawn limit 10 5 # run as non ...
user avatar
  • 13
4 votes
1 answer
5k views

Upstart: unrecognized service (CentOS 6.4)

I have created an upstart service from this gist. I put it into: [andrey@vm01 ~]$ ll /etc/init/play.conf -rw-r--r--. 1 root root 1255 Dec 1 20:50 /etc/init/play.conf I also installed upstart, as it ...
user avatar
0 votes
1 answer
914 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 ...
user avatar
  • 101
1 vote
1 answer
349 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that doesn't work for at least two ...
user avatar
1 vote
1 answer
419 views

Ubuntu -- Application global environment variables

So I have an application I am deploying to an Ubuntu 12 server. My application has several "parts" to it: There's a web server, run as part of an upstart script There are cron jobs There are ...
user avatar
1 vote
1 answer
87 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?
user avatar
  • 5,117