Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 17230  / 2 Years ago, thu, august 4, 2022, 8:42:17

I have an Upstart conf file in /etc/init which starts fine if i start it manually like this:



sudo initctl start myconf


If i run it without the sudo command i get the error name=(unset) error, which is due to user privileges, but that shouldn't be the problem when the job is initialised at system boot when Upstart kicks in right? (because thats all run by the root).



The content of the script is:



start on runlevel [2345]
stop on runlevel [^2345]

exec /spatial/server_init.sh


...where the server_init.sh runs a python script based server. When i check the status of the script right after i login to shell, it says stop/waiting. I also tried the conf file with "start on net-device-up" but nothing changes. Is there a way to see the Upstart system log or something similar that might help me debug the problem.



Thanks


More From » upstart

 Answers
7

Try:




/var/log/upstart/JOBNAME.log


You may want to consider converting it to a task while you debug it.




start on spatial-start

task

exec /spatial/server_init.sh


then from the console:




initctl emit spatial-start
initctl status spatial-start

[#34669] Saturday, August 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hamostic

Total Points: 403
Total Questions: 142
Total Answers: 112

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;