Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
openstack-swift
openstack-swift-object.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-swift-object.init of Package openstack-swift
#!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object server # Description: Object server for swift. ### END INIT INFO # openstack-swift-object: swift object server # # chkconfig: - 20 80 # description: Object server for swift. . /etc/rc.status . /usr/share/openstack-swift/functions name="object" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" lockfile="/var/lock/subsys/openstack-swift-object" 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 } mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name}-server || mkdir /var/run/swift/${name}-server } mkvarrun 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