Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [upstart]

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

-4
votes
1answer
37 views

Ubuntu 18.04 startup questions regarding runlevels and *.wants directories

Is Ubuntu 18.04 using Upstart or systemd? I know with the directories named Rc0.d Rc1.d Rc2.d ......Rc6.d. we can control runlevels in Ubuntu 18.04. But what is the difference between what they do, ...
4
votes
2answers
235 views

How to set up OpenVPN and Transmission to start at boot on CentOS 6?

I'm trying to set up Transmission with OpenVPN on a headless server running a minimal install of CentOS 6.10, and ideally these would start when I boot the system. I'm able to get everything to run ...
1
vote
1answer
110 views

Linux Centos 7 Convert upstart script into systemd service

I have the upstart script below, how can I translate it into a systemd service ? description "x11vnc" start on runlevel [2345] stop on runlevel [^2345] #console log respawn respawn limit 20 5 ...
0
votes
1answer
28 views

keep upstart job running?

When i run below UpStart job, UpStart job automatically stop when script ends. Is there any way to keep it running until i run initctl stop testjob. Like we use RemainAfterExit=yes in Systemd and it ...
0
votes
1answer
115 views

Upstart Logrotate?

What's wrong with my config? I had to --force the logrotate a couple times to see changes, but the numbering is all wonky. ----@----------:/var/log/upstart# ls -Anh total 4.0G -rw-r----- ...
0
votes
1answer
89 views

Create and Manage Upstart Services without Root Access

Is there anything like ~/.config/systemd/user/ and systemctl --user start ... for Upstart? initctl --user ... required UPSTART_SESSION environment variable, looks like --user here has different ...
1
vote
0answers
82 views

Upstart script with expect scripting

Please give me advices about expect scripting combined with an upstart script. There are 3 scripts that I am dealing with right now. Script A) Java program PATH: /opt/~~/manager Script B) ...
0
votes
0answers
443 views

How can I install upstart on debian 9? [duplicate]

To demonize an app, I‌ used to use upstart. I know it is discarded from debian packages, but I still need it as I can not make my app run using systemd. Currently, when I try to install it I get: # ...
0
votes
1answer
1k views

Package 'upstart' has no installation candidate

When I try to install upstart on Debian 9, I get : # apt-get install upstart Reading package lists... Done Building dependency tree Reading state information... Done Package upstart is not ...
7
votes
1answer
6k views

linux mint "initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused [duplicate]

Getting error message at logon "session only lasted less than 10 seconds....", which apparently can be caused by multiple issues. My error is happening during the graphical logon. I can login to the ...
1
vote
1answer
723 views

I don't have upstart installed on 16.04 but /etc/init has a bunch of .conf scripts in it. Why?

I'm trying to get a command to run on boot and wrote an upstart .conf file and put it into /etc/init. It's a brand new EC2 instance and theres was already bunch of .conf files there. My file wasn't ...
1
vote
1answer
3k views

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 ...
0
votes
1answer
76 views

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-...
1
vote
1answer
48 views

Finding which packages control network interfaces?

I have a debian package that I'm running on startup. I'm using upstart and I think I need to add a dependency to the upstart config: start on someProgram I'm not sure which program, but I'm not ...
0
votes
1answer
83 views

Bash / upstart - launch command under another user, replacing current process

I'm starting a process foobar as an upstart service which should be run under user joe. For this I'm using su -c: script su -c "foobar" joe end script However the su process is still lying ...
0
votes
1answer
496 views

Init running in Debian 9.1

I have the /usr/lib/systemd and /etc/systemd directories, and systemd is running. But I also have the /etc/init/ directory, with several .conf configuration files, I thought this was a sign of ...
2
votes
0answers
298 views

Upstart service killed by TERM signal, how to track that

I have upstart script as description "My API API" author "me@localhost" env MY_API_PYTHON_HOME=/opt/services start on runlevel [2345] stop on runlevel [!2345] script mkfifo /tmp/my-api-log-fifo ...
0
votes
1answer
302 views

Upstart fills up with gigabytes of “QGLContext::makeCurrent(): Cannot make invalid context current”

I use XFCE on Linux Mint 18.2. Apparently, my /sbin/upstart --user process is filling my~/.cache/upstart/startxfce4.log with gobs and gobs of: QGLContext::makeCurrent(): Cannot make invalid context ...
4
votes
2answers
462 views

Why is upstart a childprocess of systemd?

🌐 pstree -h systemd─┬─ModemManager─┬─{gdbus} │ └─{gmain} ├─NetworkManager─┬─dhclient │ ├─dnsmasq │ ├─{gdbus} │ ...
1
vote
1answer
550 views

How can I have systemd execute a script only if a service was stopped via systemctl, but not execute if it crashed by itself?

What I am looking for, is the equivalent of the pre-stop stanza in upstart, for systemd
2
votes
0answers
162 views

Deploying an upstart project on a systemd machine with Capistrano

I am trying to configure a deployment for a Ubuntu 14.0.4 app on a RHEL 7 machine and the upstart-systemd difference is causing a lot of issues (foreman scripts ...). Does anyone have experience on ...
1
vote
1answer
901 views

Systemd to upstart

I got a systemd service and I am still using Ubuntu 14.04 for various reasons. As you probably know ubuntu uses upstart and not systemd. Can you guys help me convert this systemd service to an upstart ...
0
votes
1answer
288 views

How do I import Amazon EC2 instance/user data into the environments of the services on my machine?

I am using Ubuntu 14.04 and 16.10; so my init system can be either upstart or systemd. Things like How to set an environment variable in Amazon EC2 over on Stack Overflow show how one fetches an ...
1
vote
1answer
60 views

Prevent starting processes automatically

How can I prevent starting processes automatically. (e.g. I used mysql database about a year ago). I killed the mysqld processs and now I see it's running again. And many other processes I don't know ...
0
votes
1answer
345 views

Upstart Zookeeper script hangs and does not start

I've been writing a Zookeeper upstart service script as follows: description "ZooKeeper" limit nofile 32768 32768 start on runlevel [2345] stop on [!12345] respawn respawn limit 2 5 umask 007 ...
1
vote
1answer
59 views

Daemon service that runs a sequence of processes (balanced distribution)

I have the following problem. I have a machine learning process that runs in the background. Even better, I have plenty (let's say 5) that I want to run them. Each of them is CPU and GPU power ...
0
votes
1answer
93 views

CentOS6 /Rhel 6 boot process

I need some help to understand the boot process. I am reading this documentation which should be the same, please correct me if I am wrong https://access.redhat.com/documentation/en-US/...
1
vote
1answer
1k views

Ubuntu's main bootup only returns blank screen, systemd bootup works fine

I use Grub to boot between Ubuntu and Windows. The options are somewhat like Ubuntu Ubuntu (Recovery Mode) Windows If I choose 1, it shows the Ubuntu logo, the little balls under it flowing. Then ...
0
votes
1answer
80 views

Issues running Upstart script on server startup

I have an Upstart script that uses the following code: start on runlevel [2345] stop on runlevel [!2345] respawn env PYTHONPATH=$PYTHONPATH:/opt/lrms/lib/python2.6/site-packages exec python /opt/...
2
votes
2answers
162 views

View console output from an Upstart job without logfiles

I wrote a custom Java server. I am running it using Upstart (/etc/init/myservice.config) where I launch java -jar myservice.jar. The java process uses System.out.println to write log messages of all ...
2
votes
1answer
109 views

Excecute Upstart script after a specified service is running

I have two upstart scripts, one to start the teamspeak server and one to start the teamspeak bot as showed below. teamspeak.service: [Unit] Description=Teamspeak Server After=network.target [...
2
votes
1answer
672 views

Test upstart script without reboot

Is there a way test an upstart script without rebooting the system ? I am working on a system that I really don't want to reboot - yet I want to be reasonably sure that my newly written upstart ...
1
vote
1answer
2k views

Unknown runlevel on Ubuntu 14.04, services not starting on boot

I rent a VPS from a VPS company and run an Ubuntu 14.04 web server there. Recently it had to be suspended by my provider for a while. After the suspension period (1-2 days), the VPS boots, but cannot ...
1
vote
1answer
153 views

systemd underestimates boot time. How can I try upstart?

Sorry in advance if this is a stupid question, but I'm new to this issue and every time I google it, I just get comparisons of upstart versus systemd. Anyway, my Samsung laptop with Mint 18 is taking ...
1
vote
1answer
1k views

How to start the upstart process for golang application?

I am using upstart to start my golang application. I have my application folder structure like this, Web-app/ /app main.go I built the application $cd /home/ec2-user/go/...
2
votes
0answers
137 views

Upstart services only work on startup

I'm working on Raspbian Jessie and I wrote my upstart script by follows this tutorial. Here is my /etc/init/videostream.conf script file. # RPI Camera Service description "RPICAM streaming" ...
1
vote
1answer
829 views

How to start a service on boot after ldap account is available

I have a machine hosting an LDAP database and services on other machines run as users from that database. Because the user accounts does not exist locally, the services fail to start when those ...
5
votes
2answers
7k views

Making environment variables available for downstream processes started within an init.d script

This questions stems from @FrustratedWithFormsDesigner comment. How do I make export environment variables set within an init.d script available to downstream processes started within that same init....
3
votes
2answers
3k views

Why this error about upstart/systemd with runit?

I run sudo apt-get install git-all in Ubuntu 16.04 and see the following in the end Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/...
2
votes
2answers
9k views

How to use Upstart scripts on CentOS7?

I need to create a file /etc/init/start_swift.conf with following commands: description "mount swift drives" start on runlevel [234] stop on runlevel [0156] exec /opt/swift/bin/mount_devices But the ...
7
votes
1answer
878 views

Is there any systemd equivalent to “initctl emit”?

In upstart, it was possible to send custom events with initctl emit custom-event. It was also possible to use these custom events on the start on and stop on stanzas. Does systemd provides something ...
2
votes
1answer
418 views

Confusion about systemd, environment files and command-line arguments to the service executable

I'm trying to convert an upstart script to systemd, but I can't figure out how to pass command line arguments to the executable. Here is the original upstart script: # job description description "...
0
votes
1answer
423 views

Upstart job starts the script twice

I am using Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) where I created a simple Upstart job: # content of /etc/init/listener.conf start on runlevel [2345] stop on runlevel [!2345] ...
1
vote
0answers
141 views

Systemd: Running a script before msyql stops on shutdown

On my Ubuntu 14 vagrant box I use this upstart script to run automysqlbackup on every vagrant halt: description "run automysqlbackup" start on stopping mysql task exec automysqlbackup So ...
1
vote
1answer
145 views

How can output of runlevel be “1 S”?

When I switch from runlevel 3 to runlevel 1 on my CentOS 6 box the output of runlevel is 1 S: # runlevel 1 S I'd expect the output to be 3 1. It's not a big deal but I'm keen to understand the logic ...
6
votes
2answers
697 views

When is the appropriate time to start Redshift using upstart?

I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users. Running Redshift as a service does not seem fully ...
2
votes
0answers
465 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
1
vote
1answer
1k views

How to set the nofile limit on rsyslog with upstart?

I'm struggling to work out how to set the open file limit on rsyslog on Ubuntu 14.04. It uses Upstart, which ignores limits.conf, but I'd expect to be able to put limit nofile 16384 16384 in /etc/...
1
vote
0answers
114 views

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 ...
0
votes
1answer
435 views

How to enable/disable services with upstart 0.6.7?

I need to disable a service in RHEL, before upgrading it. Stopping it does not do the trick, because it uses the respawn stanza , which causes it to start immediately after I stop it. The method in ...