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.
771
questions
0
votes
1
answer
93
views
uptart and gnokii and chroot
I try to run this upstart script.
#
description ""
author ""
start on runlevel [2345]
stop on runlevel [!2345]
#chroot /home/ubuntu/
respawn
respawn limit 1 1
exec sudo smsd -u ...
0
votes
1
answer
76
views
Why upstart documentation prevents me from using respawn
In documentation I found a note that I shouldn't use respawn if I satisfied with expect.
But I cannot understand, how are they interfere.
For example, nginx config using both and predictable didn't ...
0
votes
1
answer
3k
views
FATAL: Module rtc not found
Upstart gives "unknown job" error when I try to start the server with $ start <my-app-name>. I found this in the logs:
z@ubuntu:/var/log/upstart$ sudo zcat module-init-tools.log.1.gz
FATAL: ...
0
votes
1
answer
106
views
upstart: mail error report on segfault
I have a process that's managed by upstart. It sends an error report on internal exceptions, but since the app isn't written in C, it cannot catch a SIGSEGV and send an error report on that. (Not ...
0
votes
1
answer
2k
views
Only Guest session can be started
While Ubuntu is starting, the following messages are shown and stays shown for long time:
* Starting LightDM Display Manager [OK]
* Stopping Send an event to ...
0
votes
1
answer
433
views
Init.d script problem
The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
0
votes
2
answers
363
views
Why can't I connect to this service when launched via Upstart?
I have a web service written in Golang that I need to fire up using Upstart.
I can run the service executable (named word) on port 5555 from within it's directory manually like so:
PORT=5555 ./word
...
0
votes
1
answer
703
views
Upstart job not starting
Can someone help me with a startup script not starting? I started it with initctl start startupScript, and it works fine. But it wont start at startup (= virtualbox, and mount, doesnt execute). I need ...
0
votes
1
answer
185
views
Can I run my script using inputbox to appear my menu-box before login?
I am trying to do experiment with /etc/init. I have written a script which displays a window showing some menu. I don't understand on which event I should start my service.
I don't want any desktop ...
0
votes
1
answer
173
views
How can I tell inside an upstart script if the job was killed(crashed) or stopped normaly
Is there a way to know within the script if the job in question was killed(crashed) or stopped normaly.
I want to kill another process in post-stop script only when the current job crashed and not ...
0
votes
1
answer
99
views
For processes to be up and running all the time
I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options -
Upstart
Cron
I am trying things ...
0
votes
1
answer
2k
views
Start command doesn't return for upstart script in Ubuntu?
I have written an upstart script called 'ts.conf' for a daemon and put it in /etc/init. When I try to start it with
start ts
I expect a confirmation message and I also expect to get the prompt ...
0
votes
1
answer
733
views
Alternative way to start mysql server other than upstart?
I have a chrooted 10.04 LTS installation on a NAS, it works great but breaks Upstart very badly. MySQL only works via Upstart these days, so I created a workaround to start like this:
dtach -n /opt/...
0
votes
1
answer
686
views
Missing Samba upstart job
Somehow my K20samba4 was deleted.
How can I restore it (ie does anyone know where I can get the script)?
0
votes
2
answers
770
views
Starting nodejs application on server start gives exit with code 2
I'm running the below on server startup:
exec sudo -E -u www-data /usr/bin/node /etc/nodeserver/app.js >> /var/log/applicationserver.log 2>&1
The console writes many messages that the ...
0
votes
0
answers
1k
views
How to disable a service only for the next boot?
According to https://askubuntu.com/a/19324
systemctl disable SERVICE Turns the service off on the next reboot or on the next stop event. It persists after reboot.
Is it possible to disable a service ...
0
votes
0
answers
44
views
automount process starts 5 minutes after system boots
New to ubuntu, and I have been looking every place I can find to fix this issue. I really need my automount process to start when the system starts, not 5 minutes after. I have a program that starts ...
0
votes
1
answer
129
views
installed upstart-sysv package and now my system loads of to blank screen
I hd some dns error thrown for some websites.
As a solution i tried installing upstart-sysv. But now screen loads to blank.
I long press esc n load a kernel then get directed to initramfs console. ...
0
votes
0
answers
2k
views
Initctl missing, need to run reload-configuration command
Ubuntu Sever, 18.04
I have a situation where I need to run a configuration file. The instructions call for me to run the following command:
initctl reload-configuration
However, initctl doesn'...
0
votes
1
answer
1k
views
16 to 18 Upgrade Stuck - upstart, systemd issues
Hi I might need a bit of help with upgrading Ubuntu on virtual server, it seems it upgraded to 18 but there are some dependancies errors and none of the restart commands are found in terminal.
"Apt-...
0
votes
1
answer
346
views
mysql does not start after a reboot
I am using Ubuntu 19.10 and installed mysql-server on it.
First it gave me an error
error was mysql access denied for user 'root'@'localhost'
solved by code below
ALTER USER 'root'@'localhost' ...
0
votes
1
answer
2k
views
unable to connect to Upstart Failed to connect to socket com/ubuntu/upstart : connection refused
I have a Ubuntu 16, whenever I run an apt-get update, things go correctly then I get a message indicating
Processing triggers......
start: unable to connect to Upstart Failed to connect to socket ...
0
votes
0
answers
190
views
cron @reboot ubuntu ldap dependency
Question: Users can configure cronjobs @reboot, but the cron environment is not ready for users at boot time. How can cron be forced to run only after the system is ready for users on Ubuntu?
On a ...
0
votes
1
answer
1k
views
My computer is stuck in Ubuntu Start up screen and doesn't start
I got Ubuntu 19.04 (old laptop) and my computer doesn't start. I'm not dual booting it with windows or any other Linux etc. I'm only having the Ubuntu 19 04 on it, I however got problem when starting ...
0
votes
1
answer
2k
views
how to start a systemd service after another systemd service has stopped
I have a A.conf init file in ubuntu 14.04, where it depends on B as follows :
start on stopped B
i.e. A should start after another service B has stopped. Can anyone please let me know what is the ...
0
votes
1
answer
770
views
Setup Kiosk—convert Upstart to Systemd
Following this great tutorial https://thepcspy.com/read/building-a-kiosk-computer-ubuntu-1404-chrome/ which unfortunately is for ubuntu 14.04, I have started out to do that using ubuntu 18.04 LTS.
...
0
votes
0
answers
419
views
Immediate logoff after login on Ubuntu 16.04
I try to quickly summarize the problem and what happened (details about system are below). I know there exist many similar questions however none of the answers did help in my case. I did not fiddle ...
0
votes
0
answers
2k
views
upstart returns "unrecognized service" only for some users
I've written a small custom REST service that runs via a python3 wsgi app under gunicorn, and is managed on the system via an upstart init script. (The host is ubuntu 14.04.1). The service is a git ...
0
votes
0
answers
346
views
Output logs to dynamically created folder structure (based on the current date), using upstart to create the service
I have the following upstart configuration:
start on runlevel [2345]
stop on runlevel [06]
respawn
respawn limit 99 5
#respawn is used to start the nodejs again, even if it fails.
env NODE_ENV=...
0
votes
1
answer
92
views
Upstart service says running but doesn't actually start
I have an upstart configuration file that's worked on my Ubuntu 16.04 VPS in the past (I reverted to upstart for 16.04 using this method here.)
After reinstalling the server for a clean slate and ...
0
votes
0
answers
59
views
What does upstart means? How to solve this issue?
I've tried this
sudo apt-get install upstart
But I get this as feedback.
Reading package lists... Done
Building dependency tree
Reading state information... Done
upstart is already the newest ...
0
votes
1
answer
271
views
/sbin/upstart cpu usage
I have randomly getting >80% CPU usage from:
/sbin/upstart --user
Any idea how to stop that and the reason why is this happening?
version:
>>>lsb_release -a
No LSB modules are available.
...
0
votes
0
answers
861
views
Upstart not detecting the new job on Ubuntu 16.04
I am unable to get Upstart to recognize my new job. I've checked the upstart cookbook, as well as various questions on the matter, such as this one. All the checks pass, but initctl list does not show ...
0
votes
0
answers
374
views
Systemd vs Upstart
When I attempt to boot using systemd the keyboard and mouse do not work.
When I boot using upstart the keyboard and mouse work fine.
How do I get systemd working?
I have looked over the other ...
0
votes
1
answer
384
views
New Mythbuntu Installation not working on restart
I've just installed and configured Mythbuntu 16.04.3 LTS on an Intel NUC. It worked fine (I watched some TV through a separate Kodi front-end) until I restarted the NUC, at which point I can access ...
0
votes
1
answer
1k
views
cannot reinstall upstart
I followed a fix for another issue but now the reboot and shutdown executables are missing. I have tried
sudo apt-get install --reinstall upstart
But I get this line at the end
/var/lib/dpkg/info/...
0
votes
0
answers
2k
views
ubuntu fails to load the graphical interface-- BLACKSCREEN, ALL TTYs working
I recently changed my entire machine and i just swapped my ssd in the new machine. grub2 works and shows my options, when i choose (k)ubuntu, it will end up in an empty black screen, however, when i ...
0
votes
0
answers
66
views
How do you uninstall apache2 when it thinks it's already uninstalled?
When I originally did
sudo apt-get remove apache2*
I hadn't stopped apache. After it didn't work I googled and found somewhere that you have to take a special step of stopping apache first.
I ...
0
votes
0
answers
166
views
Register Caddy HTTP server as a service in Ubuntu 14
I have a question regarding how to install an application as a service in Ubuntu 14. I am trying to register the HTTP server Caddy. I was following the instructions provided here however that ...
0
votes
1
answer
913
views
Radeon: Invalid ROM contents
I have a dual-boot Windows - Ubuntu 16.04 desktop computer with a Radeon HD 7950 graphics card. Yesterday I upgraded from Windows 7 to Windows 10. Everything seemed to be OK. I started Ubuntu a couple ...
0
votes
1
answer
71
views
How can I make sure one Upstart service starts before other non-Upstart (System V) service?
Is there a way to run one Upstart service before another non-Upstart service (system V, to be more precise)?
Or I must "convert" my Upstart script to a System V script (if it provides such ...
0
votes
1
answer
81
views
Zesty uses systemd or sysvinit, upstart [duplicate]
I'm looking at the instructions for resilio-sync and trying to stop temporarily, this service (as it uses a port I need free for a project)
It offers instructions for systemd and for 'sysvinit, ...
0
votes
0
answers
641
views
Have xrandr -o left run on startup
I know very little about Ubuntu. Enough to make my own persistent instance of the OS on a flashdrive I keep with me, and enough to navigate and move/copy/delete/make directories/install/update, but I ...
0
votes
1
answer
255
views
How to configure Upstart for Node js to respawn the process that is killed due to some error
I am new to Server side of things .
I want respawn my killed node js server which occurred due to some error.
I looked into forever but i want to use upstart any help is appreciated
0
votes
1
answer
189
views
Issue with Graphics after removing the upstart from Ubuntu 16.04
I was installing git on Ubuntu.
When I installing git, I got below error in there. (I got the similar kind error when I do the uprade also.)
start: Unable to connect to Upstart: Failed to connect to ...
0
votes
0
answers
519
views
Samba does not work after upgrade to 17.04
After upgrade to Ubuntu 17.04 from 16.0 Samba does not seem to work.
I did a reinstallation of Samba with a purge but same problem.
If I do
sudo status smbd
I obtain
status: Unable to connect ...
0
votes
1
answer
4k
views
How to create service user for application and run it at startup from that user
I have an application, that I should run at startup.
I created system user for that application with useradd -r serviceUser and made him the owner of application directory.
Then I write startup ...
0
votes
0
answers
316
views
Upstart job in systemd format
I have looked at the official docs for start-up, but I failed to replicate my Upstart job to systemd.
Upstart Job:
description "evercam_media"
start on filesystem or runlevel [2345]
stop on ...
0
votes
1
answer
143
views
boot 14.04 iptables fails intermittently [duplicate]
I have a kvm VM with Ubuntu 14.04 set as a firewall in a virtual network
(with eth0 and eth1)
This is not a course but at work. I have to learn this.
Intermittently eth1 will fail to come up.
In /...
0
votes
1
answer
2k
views
ftp - Unable to connect to Upstart:
Trying to set up an ftp server on a new install to accept files. /etc/vsftpd.conf is in place and write_enable=YES.
It is not working and when I go to restart vsftpd , I get the following error.
...