Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:leo_eraly
mrepo
rc.mrepo
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rc.mrepo of Package mrepo
#!/bin/bash # # Init script for mrepo distribution server. # # Written by Leo Eraly <leo@unstable.be> # ### BEGIN INIT INFO # Provides: mrepo # Required-Start: # Should-Start: # Required-Stop: # Should-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Mrepo distribution server # Description: mrepo builds a local APT/Yum RPM repository from local ISO files, # downloaded updates, and extra packages from 3rd party repositories. # It takes care of setting up the ISO files, downloading the RPMs, # configuring HTTP access and providing PXE/TFTP resources for remote network installations. ### END INIT INFO NAME=mrepo MREPO_BIN=/usr/bin/mrepo test -x $MREPO_BIN || exit 5 . /etc/rc.status rc_reset ### Default variables SYSCONFIG="/etc/sysconfig/mrepo" YAMCONFIG="/etc/mrepo.conf" ### Read configuration [ -r "$SYSCONFIG" ] && source "$SYSCONFIG" [ -r "$YAMCONFIG" ] || exit 1 case "$1" in start) echo -n "Starting $NAME" /sbin/startproc $MREPO_BIN -q -c $YAMCONFIG rc_status -v ;; stop) echo -n "Shutting down $NAME" /sbin/killproc -TERM $MREPO_BIN rc_status -v ;; restart|reload) $0 stop $0 start rc_status ;; reload) echo -n "Reloading $NAME" /sbin/killproc -HUP $MREPO_BIN rc_status -v ;; status) echo -n "Checking $NAME" /sbin/checkproc $MREPO_BIN rc_status -v ;; *) echo $"Usage: $0 {start|stop|restart|status}" 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