I've tried to find this documented somewhere, in the wiki or in documentation/books/en/xml/MAIN.Build_Service.xml and friends. Did I look at the wrong places ore are they both very much WIP?
If they are, I'd like to focus to one place and I volunteer to document it there. I'd personally prefer the wiki which is easyer to access even if it has less expressive power.
I'd like to volunteer my time as well to contribute to the documentation. There is some documentation on the wiki at: http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/ope... This doesnt describe the architecture of the build service, but you might be able to glean some information from there.
From the above link: " Start the Services Start the following services in this order. WARNING: The following starts services which are accessable from the outside.
Do not do this on a system connected to an untrusted network or be sure to block the ports via a firewall. # rcobsrepserver start # rcobssrcserver start # rcobsscheduler start" Below are the INIT INFO blocks for obsrepserver, obssrcserver obsscheduler and obsworker which are the "head" of the /etc/init.d/obs* scripts ===== ===== obsrepserver ===== ===== ### BEGIN INIT INFO # Provides: obsrepserver # Required-Start: $time $syslog # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: openSUSE build service repository server ### END INIT INFO ===== ===== obssrcserver ===== ===== ### BEGIN INIT INFO # Provides: obssrcserver # Required-Start: $time $syslog # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: openSUSE build service source repository server ### END INIT INFO As you can see obsrepserver and obssrcserver have the same Require-Start and dont depend on each other. ===== ===== obsscheduler ===== ===== ### BEGIN INIT INFO # Provides: obsscheduler # Required-Start: $time $syslog obssrcserver obsrepserver # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: openSUSE build service scheduler ### END INIT INFO obsscheduler requires that obssrcserver and obsrepserver are started (so thats one dependency) obsrepserver, obssrcserver and obsscheduler are started without problems on reboot (actually I noticed that sometimes obsscheduler does not start, but I dont really want to say anything about that right now). ===== ===== obsworker ===== ===== ### BEGIN INIT INFO # Provides: obsworker # Required-Start: $time $network $syslog # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: openSUSE build service worker ### END INIT INFO
/etc/init.d/obsworker should contain 'obsrepserver' in the 'Should-Start' section, i.e. add the line
Should-Start: obsrepserver
I'd like to fix this for all the init scripts in the packages...
I understand the Should-Start makes more sense than the Required-Start because the services can be distributed amongst different machines, right?
I modified my obsworker script to include the Should-Start directive but that didnt start the obsworker on reboot. Since im running my obsworker on the same machine (im actually trying to build a single xen vm as a local obs server) as the other obs* services, I also tried: # Required-Start: $time $syslog obssrcserver obsrepserver obsscheduler <-- in obsworker's INIT INFO block This didnt start my obsworker on reboot either. Hope we can get to the bottom of this. Razi --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org