Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
obs-server
obsscheduler
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obsscheduler of Package obs-server
#! /bin/sh # Copyright (c) 2007, Novell Inc. # # Author: adrian@suse.de # # /etc/init.d/obsscheduler # and its symbolic link # /usr/sbin/rcobsscheduler # ### BEGIN INIT INFO # Provides: obsscheduler # Required-Start: $time $syslog obssrcserver obsrepserver # Should-Start: obssrcserver obsrepserver # Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: openSUSE build service scheduler ### END INIT INFO . /etc/rc.status . /etc/sysconfig/obs-server # Determine the base and follow a runlevel link name. base=${0##*/} link=${base#*[SK][0-9][0-9]} obsdir=/usr/lib/obs/server/ rc_reset case "$1" in start) echo -n "Initializing obsscheduler" cd "$obsdir" # FIXME: not nice, this should receive a proper daemon handling, # including real logging, pid file and startproc test -z "$OBS_SCHEDULER_ARCHITECTURES" && OBS_SCHEDULER_ARCHITECTURES=i586 for i in $OBS_SCHEDULER_ARCHITECTURES; do ./bs_sched $i >& /srv/obs/log/scheduler_$i.log & done rc_status -v ;; stop) echo -n "Shutting down obsscheduler" killall bs_sched rc_status -v ;; restart) ## If first returns OK call the second, if first or ## second command fails, set echo return value. $0 stop && $0 start rc_status ;; try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi # Remember status and be quiet rc_status ;; reload) ;; status) echo -n "Checking for obsscheduler: " # FIXME: needs proper checking for all invoked schedulers checkproc bs_sched rc_status -v ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|reload}" exit 1 ;; esac rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor