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.

It was originally developed for the Ubuntu distribution, but is intended to be suitable for deployment in all Linux distributions as a replacement for the venerable System-V init.

87 questions
145
votes
9 answers

Running upstart jobs as unprivileged users

What's the canonical way to have an upstart job change its userid and run the script as an unprivileged user? Obviously one can use su or sudo, but this seems hacky (and can generate needless log lines).
aaronsw
  • 1,647
27
votes
6 answers

How do you disable an upstart service in ubuntu 10.10?

In 10.10 upstart is being used instead of sysvinit. It's possible to remove annoying upstart services which you do not want by removing the appropriate file in /etc/init/blah.conf However, this seems a heavy handed approach. How do you correctly…
Doug
  • 450
19
votes
1 answer

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 rcc_check_locked_scr.service…
14
votes
3 answers

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 code and stop then restart the upstart service.…
djheru
  • 321
  • 1
  • 2
  • 9
10
votes
1 answer

How to depend on an upstart job from an init script on Ubuntu 12.04

I am using Ubuntu 12.04 LTS and this system uses primarily upstart jobs. Unfortunately my system also depends on a manually compiled dbmail server, which only has a init script, but no upstart script. Using update-rc.d dbmail defaults I installed…
8
votes
2 answers

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/run/posty chown -R vmail:root…
Christian
  • 213
7
votes
2 answers

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 and found out that initctl comes from upstart. Even…
henje
  • 171
7
votes
1 answer

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 problem is that there is no gitlab script in it, so I…
Pierre
  • 175
6
votes
2 answers

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 I created /etc/init/nomilkfor.me.conf (this is the domain name) and this is what is in the file: description "ubuntu 13.10 on…
Zeynel
  • 1,355
5
votes
1 answer

upstart node.js cant save files, wrong permissions?

I got my own linode server the other day and moved a small nodejs / express I was playing around with over from an aws linux. Everything works great, but if I launch the app with upstart it doesnt run with the right permissions and can't write files…
5
votes
2 answers

Controlling Upstart job as unprivileged user

What's the best way to allow an unprivileged user to control an upstart job? By controlling an upstart job I mean starting/stopping/reloading/restarting it: start myservice I can imagine one way to go about it is through sudo; what needs to be…
4
votes
1 answer

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 was missing on my system: sudo yum install…
4
votes
1 answer

ubuntu upstart permission error when writing to log on a non admin user

I have a simple upstart script: start on started network-services respawn respawn limit 100 5 setuid www-data exec node /var/testapp/app.js >> /var/log/testapp.log 2>&1 post-start exec echo "Server was (re)started on $(date)" | mail -s "Crashing…
gmadar
  • 143
4
votes
1 answer

grep fails in upstart script

I have an upstart configuration for a service which needs to check the existance of a process on it's startup. This sounds fairly easy but I'm already trying for 3 hours to get this thing solved and I'm lost. The problem seems to be that some grep…
4
votes
1 answer

Starting Redmine at boot using upstart on Ubuntu

So after installing Redmine from the repositories on Ubuntu 12.04, I've tried to create an upstart script (see below) so it would start up at boot time. While service redmine start does start Redmine, it does not start automatically when booting.…
joekr
  • 301
1
2 3 4 5 6