LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   help with new upstart jobs (https://www.linuxquestions.org/questions/programming-9/help-with-new-upstart-jobs-4175433282/)

herkalurk 10-20-2012 06:40 PM

help with new upstart jobs
 
I'm attempting to auto start some python programs (SABnzbd, Sickbeard, and Couchpotato) with upstart jobs. For whatever reason, after making the .conf file in /etc/init, when I attempt to run say 'start sabnzbd', I get 'start: Unknown job: sabnzbd'.

Just looking for some help.

sabnzbd upstart conf
Code:

start on runlevel [2345]
stop on shutdown

script
        exec su --command='/home/user/newsgroup/SABnzbd-0.7.4/SABnzbd.py -d' user
end script

listing of /etc/init

Code:

[root@homeserver init]# ls
control-alt-delete.conf  plymouth-shutdown.conf  rcS.conf                  readahead.conf                  sickbeard.conf      tty.conf
init-system-dbus.conf    prefdm.conf            rcS-emergency.conf        readahead-disable-services.conf  splash-manager.conf  typescript
kexec-disable.conf      quit-plymouth.conf      rcS-sulogin.conf          sabnzbd.conf                    start-ttys.conf      utorrent.conf
newz.conf                rc.conf                readahead-collector.conf  serial.conf                      teamspeak.conf      vm.conf
[root@homeserver init]#


sundialsvcs 10-22-2012 09:02 AM

The English word would be startup, not upstart.

Don't ask me why ... :rolleyes:

rigor 10-22-2012 12:14 PM

Quote:

Originally Posted by sundialsvcs (Post 4812175)
The English word would be startup, not upstart.

Don't ask me why ... :rolleyes:

Naturally I can't know if this is what the OP meant, but the OP does show RHEL at work, and AFAIK, at one time, RHEL included a facility named upstart, as in

http://upstart.ubuntu.com/

sundialsvcs 10-22-2012 03:58 PM

Ahh ... missed that one.

herkalurk 10-23-2012 10:55 AM

Quote:

Originally Posted by kakaka (Post 4812325)
Naturally I can't know if this is what the OP meant, but the OP does show RHEL at work, and AFAIK, at one time, RHEL included a facility named upstart, as in

http://upstart.ubuntu.com/

I do use RHEL at work, but this is my home server, CentOS6. Upstart was used in RHEL/CentOS 6 replacing init. At work on the RHEL 6 test box we're using to try and port all of our scripts over, all the times we make an upstart config file in /etc/init, no issues, init process sees the conf and works. However I tried to create a couple at home, and init won't see them, so that's where I'm struggling.


All times are GMT -5. The time now is 11:14 AM.