Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:lafenghu
openstack-swift
openstack-swift-account-auditor.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-swift-account-auditor.init of Package openstack-swift
#!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account-auditor # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account auditor # Description: Account auditor for swift. ### END INIT INFO # openstack-swift-account-auditor: swift account auditor # # chkconfig: - 20 80 # description: Account auditor for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="account-auditor" [ -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