Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

in Ubuntu 12.10

user@xyz:~$ sudo initctl --version
initctl (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@xyz:~$ ls -l /etc/init/rs-comm.conf
-rw-r--r-- 1 root root 349 нояб. 15 03:22 /etc/init/rs-comm.conf
user@xyz:~$ sudo initctl reload-configuration
user@xyz:~$ sudo initctl start rs-comm
initctl: Unknown job: rs-comm
share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Your job probably contains invalid syntax, which means Upstart will not consider it. Try running the following as a normal user (not as root):

init-checkconf /etc/init/rs-comm.conf
share|improve this answer
4  
ERROR: failed to ask Upstart to check conf file –  xdenser Nov 15 '12 at 20:54
    
it is ubuntu server w/o GUI. here is output of init-checkconf -d /etc/init/rsyslog.conf Upstart does not reply over D-Bus –  xdenser Nov 15 '12 at 21:30
3  
Solved. I have noticed in debug output of init-checkconf that it asks Upstart to write answer into file in /tmp. I looked there - here they are - several files pointing on error in my job file. I have fixed that typo and now my job is seen by Upstart. There is still question why init-checkconf does not see Upstart answers. –  xdenser Nov 15 '12 at 22:54
2  
@xdenser The problem with init-checkconf is most likely this issue: bugs.launchpad.net/upstart/+bug/881885 –  FvD Jul 13 '13 at 21:45
    
I'm trying this in RHEL 6 and can't find any init-checkconf command to test the syntax. I've run the same upstart job in Ubuntu without an error. yum info upstart returns: Installed Packages Name : upstart Arch : x86_64 Version : 0.6.5 Release : 12.el6_4.1 Size : 550 k Repo : installed From repo : rhel-x86_64-server-6 The job ends with .conf and the file permissions look okay. Doing sudo initctl list shows all of the files in /etc/init/ except the job in question. –  Ali Nabavi Feb 5 at 22:09
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.