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