Questions tagged [upstart]

Questions specific to the "upstart" init system. Do not use for general init issues.

147 questions
4
votes
0 answers

Upstart reload does not work

On a virtualised Ubuntu, I used the command $ foreman export upstart /etc/init -f Procfile -e conf/development.env -u ubuntu -a my_app -t upstart And can now start my_app using $ sudo start my_app However the following command fails $ sudo reload…
AJP
  • 234
2
votes
1 answer

initctl: Unable to connect to Upstart

I recently upgraded my server from Ubuntu V14.04 to V16.04 and now systemctl doesn't seem to work anymore. I need to prevent transmission-daemon from starting automatically on boot so I issue the command sudo systemctl disable…
2
votes
1 answer

How is upstart's socket activation used?

Upstart has gained the ability to start a process after a socket is accessed, but I found the feature to be poorly documented. How is a socket-activated daemon and upstart config written?
joeforker
  • 233
2
votes
1 answer

Upstart - setuid inside post-start stanza

I have this upstart script that looks a bit like this: setuid userA setgid userB script # ... bunch of stuff run as userA end script post-start script # ... command run as userA # ... the following command needs to be run as root …
Ruben Tan
  • 123
1
vote
0 answers

Upstart Job as Unprivileged user fails with permission denied

I'm trying to set up a Sage Cell Server (an open source mathematical engine) running as an unprivileged user. I've created the unprivileged user sagecell to do the job. It is installed correctly and, if I run it normally…
Logan
  • 136
1
vote
0 answers

Upstart conf to require syslog

Translating SysV to Upstart I want to turn this to Upstart: # Required-Start: $remote_fs $syslog # Default-Start: 2 3 4 5 I'm stuck with translating $syslog.. start on (runlevel [2345] and started remote-filesystem and ???) What's the…
1
vote
2 answers

Upstart and multi-signal shutdown process

I'm running a resque worker service on Ubuntu, and I want to manage it using upstart (the default process manager for Ubuntu). A proper shutdown sequence for a resque worker is to send the QUIT signal first, and wait for the process to finish any…
Guss
  • 12,628
1
vote
0 answers

How to do X when a job hits respawn limit

I have a service named manager, which sometimes updates itself (from some network location). If something wrong happens during this update, like a system shutdown, I want to replace the bad executable with a known-working one. This resulted in me…
tshepang
  • 65,642
0
votes
1 answer

How do i configure an Upstart script to run prior to allowing user login?

As part of a system-provisioning process for Ubuntu 14.04, I would like to prevent user logins until my script has completed. I have an upstart job with the following contents: start on (local-filesystems and net-device-up IFACE!=lo) stop on…