Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
openstack-swift
openstack-swift-account-replicator.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-swift-account-replicator.init of Package openstack-swift
#!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account-replicator # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account replicator # Description: Account replicator for swift. ### END INIT INFO # openstack-swift-account-replicator: swift account replicator # # chkconfig: - 20 80 # description: Account replicator for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="account-replicator" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" lockfile="/var/lock/subsys/openstack-swift-$name" start() { swift-init "$name" start retval=$? [ $retval -eq 0 ] && touch $lockfile return $retval } stop() { swift-init "$name" stop retval=$? [ $retval -eq 0 ] && rm -f $lockfile return $retval } restart() { stop start } mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) $1 ;; stop) $1 ;; restart) $1 ;; reload) ;; status) ;; *) echo $"Usage: $0 {start|stop|status|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