Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahasenack
portreserve
portreserve.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File portreserve.init of Package portreserve
#! /bin/sh # # /etc/init.d/portreserve # and its symbolic link # /usr/sbin/rcportreserve # ### BEGIN INIT INFO # Provides: portreserve # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 5 # Default-Stop: 0 1 6 # Description: Start the portreserve service ### END INIT INFO # First reset status of this service . /etc/rc.status rc_reset # Return values acc. to LSB for all commands but status: # 0 - success # 1 - generic or unspecified error # 2 - invalid or excess argument(s) # 3 - unimplemented feature (e.g. "reload") # 4 - insufficient privilege # 5 - program is not installed # 6 - program is not configured # 7 - program is not running PROG=/sbin/portreserve case "$1" in start) echo -n "Starting portreserve service" startproc -f -s $PROG rc_status -v ;; stop) echo -n "Shutting down portreserve service" killproc -TERM $PROG rc_status -v ;; 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 ;; restart) $0 stop $0 start rc_status ;; force-reload) # Does not support signalling to reload $0 try-restart rc_status ;; reload) echo -n "Reload portreserve service" # Does not support signalling to reload rc_failed 3 rc_status -v ;; status) echo -n "Checking for portreserve daemon (NTPD): " checkproc $PROG rc_status -v ;; probe) rc_failed 3 ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" 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