Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sschapiro:openstack:upstream
openstack-swift
openstack-swift-container-server.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-swift-container-server.init of Package openstack-swift
#!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container-server # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Stop: 0 1 6 # Short-Description: Swift container server # Description: Container server for swift. ### END INIT INFO # openstack-swift-container: swift container server # # chkconfig: - 20 80 # description: Container server for swift. . /etc/rc.d/init.d/functions . /usr/share/openstack-swift/functions name="container-server" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" lockfile="/var/lock/subsys/openstack-swift-$name" start() { swift_action "$name" start retval=$? [ $retval -eq 0 ] && touch $lockfile return $retval } stop() { swift_action "$name" stop retval=$? [ $retval -eq 0 ] && rm -f $lockfile return $retval } restart() { stop start } rh_status() { swift_action "$name" status } rh_status_q() { rh_status &> /dev/null } case "$1" in start) rh_status_q && exit 0 $1 ;; stop) rh_status_q || exit 0 $1 ;; restart) $1 ;; reload) ;; status) rh_status ;; condrestart|try-restart) rh_status_q || exit 0 restart ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" exit 2 esac 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