Questions tagged [upstart]

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

Filter by
Sorted by
Tagged with
4
votes
3answers
19k views

How to start application after login on CentOS?

I am trying to start GUI application with upstart script on CentOS. I have test script located /etc/init/ folder. start on desktop-session-start stop on desktop-shutdown respawn script export ...
-4
votes
1answer
61 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, ...
1
vote
1answer
1k views

how to run a script on ubuntu shutdown when it needs network on

I have an upstart script that needs to run on reboot or shutdown, but it needs to access the network to post an http requests and wait for the replies, I tried start on starting rc and start on ...
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 ...
4
votes
2answers
314 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 ...
6
votes
3answers
5k views

How do I start a screen session using an upstart job with a non privileged user?

I am trying to create an Upstart job that starts a new screen session on boot, in which I would like to automatically start a java executable. Here is the .conf file I am currently trying to get to ...
1
vote
1answer
929 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 ...
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 ...
2
votes
1answer
1k views

How to start GUI application with upstart?

I have an GUI application. I want to start this application automatically. And when it goes down or closed unexpectedly, I want to reopen this application. I tried to use upstart script, however ...
1
vote
1answer
165 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 ...
1
vote
2answers
2k views

What do +,- and ? symbols represent in `service --status-all`

What do +,- and ? symbols represent in service --status-all represent in Ubuntu 14.04. I am not able to understand it properly. I guess + here might mean delayed services which start after the ...
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/...
1
vote
1answer
32 views

Created upstart job that works - system doesn't boot to CLI but everything works SSH,RDP etc

The thing is I happen to have a monitor near me where I can watch my server boot and at boot it never makes it to the login prompt. It is just staying at right after it runs my Upstart Job. VRDE ...
2
votes
1answer
11k views

Autostart Virtual Machine VBoxHeadless at boot with Upstart - init and Graceful exit

I want to automatically start a VirtualBox Virtual Machine at boot on a Ubuntu 14 Linux Headless Server. I have tried @reboot via crontab, but the VboxHeadless command does not seem to work in ...
0
votes
1answer
36 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 ...
2
votes
2answers
10k 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 ...
4
votes
2answers
1k views

How to associate a script at boot time to a specific run level?

I am trying to understand how run levels work. I understand the meaning of the 7 run levels and I understand that they were usually configured by /etc/inittab, which used to call /etc/init.d/rc, which ...
8
votes
1answer
33k views

service to start on boot doesn't work with update-rc.d command

I have installed redis server on my Ubuntu based server, so I can start/stop/restart redis server. The redis_server.sh is already in the /etc/init.d. Now I want to make redis start on boot. I ...
1
vote
1answer
433 views

upstart environmental variable from command

I am trying to make reverse ssh tunnels to my clients using upstart. I have many clients and they obviously come on and off line at times. This is what I have now, but it won't work because the env ...
0
votes
1answer
126 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
104 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
1answer
3k views

CentOS - upstart script is created, but its never running at all

I have this following setup but its not working in my CentOS 6x (3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64 x86_64 x86_64 GNU/Linux) Step 1: vi /etc/init/a.conf description "...
1
vote
0answers
87 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
526 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
828 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
85 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-...
5
votes
2answers
1k views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my Ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
0
votes
1answer
335 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
49 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 ...
1
vote
3answers
13k views

How to restart my java program automatically if it gets killed?

I am running my runnable jar in linux machine (machineA) as shown below. In the runnable Jar, I have a java program which sends email to me every 15 mniutes. /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/...
0
votes
2answers
3k views

update-rc.d squid3 init.d init weirdness

sudo service squid3 status works, implying squid is in upstart. However a listing of services using sudo service --status-all does not show squid. Neither does sudo update-rc.d squid3 defaults ...
1
vote
2answers
11k views

service vsftpd restart : not working

I edited /etc/vsftpd.conf on my remote server. Now to restart the vsftpd, I ran ravbholua@ravi:~$ sudo /etc/init.d/vsftpd restart [sudo] password for ravbholua: Rather than invoking init scripts ...
0
votes
1answer
89 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
505 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
318 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 ...
91
votes
5answers
96k views

How to find out if a system uses SysV, Upstart or Systemd initsystem [duplicate]

Is there a simple way to find out which initsystem is being used e.g by a recent Debian wheezy or Fedora system? I'm aware that Fedora 21 uses systemd initsystem but that is because I read that and ...
0
votes
1answer
328 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 ...
1
vote
1answer
158 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 ...
4
votes
2answers
466 views

Why is upstart a childprocess of systemd?

🌐 pstree -h systemd─┬─ModemManager─┬─{gdbus} │ └─{gmain} ├─NetworkManager─┬─dhclient │ ├─dnsmasq │ ├─{gdbus} │ ...
182
votes
6answers
87k views

What are the pros/cons of Upstart and systemd?

It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?
7
votes
1answer
8k views

The equivalent of start-stop-daemon for RedHat 6

I have an upstart script to create a service in RedHat 6: env PLAY_BINARY=/usr/bin/play env HOME=/opt/warda env USER=root env GROUP=root [...] script exec start-stop-daemon --start --exec $...
1
vote
1answer
622 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
6
votes
2answers
716 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
168 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 ...
0
votes
1answer
364 views

Why does sudo su -l user -c bash fail to load user's environment?

I would like to be able to spawn a fully working shell environment from upstart script. Why does sudo su -l user -c bash fail to load user's environment properly? $ sudo su -l -m adam -c "bash" ...
5
votes
3answers
9k views

Running a bash script as a less privileged user with upstart

This is the script, /home/jack/myscript.sh, which I want to run: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26/ /home/jack/myapp/apache-tomcat-6.0.32/bin/./catalina.sh run The upstart file, /etc/...
1
vote
1answer
61 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 ...