summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <mthode@mthode.org>2013-01-01 09:55:01 -0600
committerMatthew Thode <mthode@mthode.org>2013-01-01 09:55:01 -0600
commit5824ec48d42cbd332aee573b37ca8b49ea551e72 (patch)
tree4e729fdf03ad3b0e57be3282c06417c1b5ea1a39
parentinitial commit of swift and moved keystoneclient to tree (diff)
downloadprometheanfire-5824ec48d42cbd332aee573b37ca8b49ea551e72.tar.gz
prometheanfire-5824ec48d42cbd332aee573b37ca8b49ea551e72.tar.bz2
prometheanfire-5824ec48d42cbd332aee573b37ca8b49ea551e72.zip
should work :D
-rw-r--r--sys-cluster/swift/Manifest8
-rw-r--r--sys-cluster/swift/files/swift-account.initd36
-rw-r--r--sys-cluster/swift/files/swift-container.initd36
-rw-r--r--sys-cluster/swift/files/swift-object.initd36
-rw-r--r--sys-cluster/swift/files/swift-proxy-server.initd838
-rw-r--r--sys-cluster/swift/files/swift-proxy.initd57
-rw-r--r--sys-cluster/swift/files/swift-storage-server.confd775
-rw-r--r--sys-cluster/swift/files/swift-storage-server.initd60
-rw-r--r--sys-cluster/swift/swift-1.7.4.ebuild60
9 files changed, 181 insertions, 1725 deletions
diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest
new file mode 100644
index 0000000..ddb42e2
--- /dev/null
+++ b/sys-cluster/swift/Manifest
@@ -0,0 +1,8 @@
+AUX swift-account.initd 881 SHA256 7278241b34cea3d3544bcf3d64f406e5cc37250093f51cec160c7ec265f122a4 SHA512 f9bc66fd410cbc306075377ca89cf50c8a33630b2cf4020294f33fe83f3531eee10c08997f910c4ec6148925e6f36aab0cd56491770cdfd6ffcaaf4e8eeadffc WHIRLPOOL d51b2de925235f0973163728d1c0bec15bd201c5786c5a38ef7d655c24aef56b63a0c912e77a47e6b9afd194c9dc325695f78c45a82196558ef583a8a7800a72
+AUX swift-container.initd 891 SHA256 82d61cfbe600f782e0f408366be5283e52ecb503dfa24ef2b56080bb3fae997c SHA512 82bc22570a57620b7497368de5a4b79d5ee87599e39ab9cd6ab5a28c606646ca2d4eb70f469acfcac3d51b2f3bb58e6386f033d1aee679d13366bac98999fafc WHIRLPOOL aa1dcaf9e21acab942d463f109eaaa099f9bebb638259db75956feadad1f0f0df530661e0bc469717aa6a9524c69f40efa0103ac076a31a34df2ddb42b738e1c
+AUX swift-object.initd 876 SHA256 a3ec074cd0ef70b3b641e86054519da3a4fa18a320bd91a7d6e18b9df9ef5cf0 SHA512 803165e74e1fb5326d8520444f968d2a987dca454f9b5347fd4ebe1ab5e95093641450596da2543be9485b11be350b47873c3a1887682cd025f85231cec2767a WHIRLPOOL f2fc932d4992771edb633332cc2f672c25828e25da677a0db4bd5b6c815f89fda623927a032f45c836574ee4402d632f7dc6dd41e67b2adba9882233ce106bec
+AUX swift-proxy.initd 1393 SHA256 5b8cfd787dd47468fef31e261ef9529db32e9a2c540c586f9f20b829cab51a4c SHA512 f45253ff68bfb6e5149c0823c5b9692b37e9037f0e12eca32c7c1a28f8877bcdc255a0efd461e170df5bebdae427dd13f312da43525d6e946e32366371362070 WHIRLPOOL c234643758ccf75b3843cd6a65bc3679370cef072eccea7b6470440c380bbe24a687eac6381ccf9a904985e367e4b45930184d0f6a6d1bb4ee6f830f379d5da2
+DIST swift-1.7.4.tar.gz 461286 SHA256 5c927cfd6aeba38689c1b8e0d1b6fd697999ad56012f6a4aff011d6018d55cd2 SHA512 c7527593beaede09a70e92b85823eb4661992a568377aea6254c7470dddf9ab64238361c84298b1c046c05abb781507bd7634fdff05d30c1e35e465d7f86cf78 WHIRLPOOL f78325e57a02a34e3f4a052778604115df71f2225861b6b4e9516c25d9b83d7bec7251de34da98f34618b7b586eaac747948192822f2998f3ddeb23fc12f999a
+EBUILD swift-1.7.4.ebuild 3147 SHA256 f113384a751927e24f1922fbfa58de8cd37a0c5842c8a7cab3fe799bcc0171ec SHA512 46ba6644a2b1bee7d551d9ed59db31f5bade28753e4a4bfaa6a0b746f50d21c4f1adc53a67ed90c54c0f1a5c1a44fefac6ffa76004f5a5ed6a20ce26094950d6 WHIRLPOOL 06148957d2d8eddd30ffb56aee611c34327e005d6c6e941c404eb2ca70f2669b480a943d0f1dc13e12c393686fa089de31142a0a5c33d676d8689202cfa84f69
+MISC ChangeLog 380 SHA256 b66d44e1c09f502aa77ecb43804d948b25876cda652c23a303fa9ba82b6575dd SHA512 c8ee612811758a02596ae00b0ad739fa3e828880a610bb60d49d8ba18f1810578f4d0cb738d43d2480ecb7a8e34bf2e642042f06d1cb9f2d1501868a2d68c52a WHIRLPOOL 30a86afe00b7365f693a22e4a1078c41f289d8d07975b157b2a1556e5bed075b08adb2d10bfb7bb38c266c0e24680bcbd978935afff686142a0c3c0c4c621625
+MISC metadata.xml 386 SHA256 7ec5608fefa5f710bb2feeee1cf65c6d5d97c215e041ff996c05ab72096a048a SHA512 58521380599a366ccad1cc1da26d75e5356f55fe7d6ff2a25a5888fe34a4e18401429296e2e24100f4d33f9ff02123f14db7a3cc04833f8970c97be7451664b1 WHIRLPOOL 0e7f1c0f6b1dd7f3d3f30a652f819ddf6588f98f0b3a1239cd7ca8ae8f3e5d166b04ed652a019106d53d8faf59c3bdbb73d37a89dd3f70c009964d6fa6727da1
diff --git a/sys-cluster/swift/files/swift-account.initd b/sys-cluster/swift/files/swift-account.initd
new file mode 100644
index 0000000..6002820
--- /dev/null
+++ b/sys-cluster/swift/files/swift-account.initd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+COMMAND=/usr/bin/swift-init
+PIDFILE=/var/run/swift/swift-account.pid
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -r /etc/swift/swift.conf ]; then
+ eerror "Missing required config file: /etc/swift/swift.conf"
+ return 1
+ fi
+ if [ ! -r /etc/swift/account-server.conf ]; then
+ eerror "Missing required config file: /etc/swift/account-server.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account stop
+ eend $?
+}
diff --git a/sys-cluster/swift/files/swift-container.initd b/sys-cluster/swift/files/swift-container.initd
new file mode 100644
index 0000000..1ac9c80
--- /dev/null
+++ b/sys-cluster/swift/files/swift-container.initd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+COMMAND=/usr/bin/swift-init
+PIDFILE=/var/run/swift/swift-container.pid
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -r /etc/swift/swift.conf ]; then
+ eerror "Missing required config file: /etc/swift/swift.conf"
+ return 1
+ fi
+ if [ ! -r /etc/swift/container-server.conf ]; then
+ eerror "Missing required config file: /etc/swift/container-server.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- container start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- container stop
+ eend $?
+}
diff --git a/sys-cluster/swift/files/swift-object.initd b/sys-cluster/swift/files/swift-object.initd
new file mode 100644
index 0000000..8092981
--- /dev/null
+++ b/sys-cluster/swift/files/swift-object.initd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+COMMAND=/usr/bin/swift-init
+PIDFILE=/var/run/swift/swift-object.pid
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -r /etc/swift/swift.conf ]; then
+ eerror "Missing required config file: /etc/swift/swift.conf"
+ return 1
+ fi
+ if [ ! -r /etc/swift/object-server.conf ]; then
+ eerror "Missing required config file: /etc/swift/object-server.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- object start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- object stop
+ eend $?
+}
diff --git a/sys-cluster/swift/files/swift-proxy-server.initd b/sys-cluster/swift/files/swift-proxy-server.initd
deleted file mode 100644
index b899a09..0000000
--- a/sys-cluster/swift/files/swift-proxy-server.initd
+++ /dev/null
@@ -1,838 +0,0 @@
-
-
-
-<!DOCTYPE html>
-<html>
- <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>openstack-overlay/sys-cluster/swift/files/swift-proxy-server.initd at master · hyves-org/openstack-overlay · GitHub</title>
- <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub" />
- <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub" />
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-114.png" />
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114.png" />
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-144.png" />
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144.png" />
- <meta name="msapplication-TileImage" content="/windows-tile.png">
- <meta name="msapplication-TileColor" content="#ffffff">
-
-
-
- <link rel="icon" type="image/x-icon" href="/favicon.ico" />
-
- <meta content="authenticity_token" name="csrf-param" />
-<meta content="g0jvX3j6uTvQ+QokqxNdMhyLQBYXkHbzFBelaieIZek=" name="csrf-token" />
-
- <link href="https://a248.e.akamai.net/assets.github.com/assets/github-136f905f03a0a6ce0292d2e017a31c4fe548e2d0.css" media="screen" rel="stylesheet" type="text/css" />
- <link href="https://a248.e.akamai.net/assets.github.com/assets/github2-2326d6d1fbc034bffa9b37cad622815f40671037.css" media="screen" rel="stylesheet" type="text/css" />
-
-
-
- <script src="https://a248.e.akamai.net/assets.github.com/assets/frameworks-eee761b9d5e06efb064aaaf528c44ef8e1601e71.js" type="text/javascript"></script>
- <script src="https://a248.e.akamai.net/assets.github.com/assets/github-69e35ef6c3d5b779e39f65bd04a4e43ff670991e.js" type="text/javascript"></script>
-
-
- <link rel='permalink' href='/hyves-org/openstack-overlay/blob/271137305359f85d0f21a85e5387fba068b26e88/sys-cluster/swift/files/swift-proxy-server.initd'>
- <meta property="og:title" content="openstack-overlay"/>
- <meta property="og:type" content="githubog:gitrepository"/>
- <meta property="og:url" content="https://github.com/hyves-org/openstack-overlay"/>
- <meta property="og:image" content="https://secure.gravatar.com/avatar/c5cfe5b5d4533c3637cd4315ff18e834?s=420&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png"/>
- <meta property="og:site_name" content="GitHub"/>
- <meta property="og:description" content="openstack-overlay - An overlay with the required ebuilds to install and run Openstack on Gentoo Linux"/>
-
- <meta name="description" content="openstack-overlay - An overlay with the required ebuilds to install and run Openstack on Gentoo Linux" />
-
- <link href="https://github.com/hyves-org/openstack-overlay/commits/master.atom" rel="alternate" title="Recent Commits to openstack-overlay:master" type="application/atom+xml" />
-
- </head>
-
-
- <body class="logged_out page-blob vis-public env-production ">
- <div id="wrapper">
-
-
-
-
-
-
-
-
- <div class="header header-logged-out">
- <div class="container clearfix">
-
- <a class="header-logo-wordmark" href="https://github.com/">
- <img alt="GitHub" class="github-logo-4x" height="30" src="https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png?1340659530" />
- <img alt="GitHub" class="github-logo-4x-hover" height="30" src="https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x-hover.png?1340659530" />
- </a>
-
-
-<ul class="top-nav">
- <li class="explore"><a href="https://github.com/explore">Explore GitHub</a></li>
- <li class="search"><a href="https://github.com/search">Search</a></li>
- <li class="features"><a href="https://github.com/features">Features</a></li>
- <li class="blog"><a href="https://github.com/blog">Blog</a></li>
-</ul>
-
-
- <div class="header-actions">
- <a class="button primary classy" href="https://github.com/signup">Sign up for free</a>
- <a class="button classy" href="https://github.com/login?return_to=%2Fhyves-org%2Fopenstack-overlay%2Fblob%2Fmaster%2Fsys-cluster%2Fswift%2Ffiles%2Fswift-proxy-server.initd">Sign in</a>
- </div>
-
- </div>
- </div>
-
-
-
-
-
-
-
- <div class="site hfeed" itemscope itemtype="http://schema.org/WebPage">
- <div class="hentry">
-
- <div class="pagehead repohead instapaper_ignore readability-menu">
- <div class="container">
- <div class="title-actions-bar">
-
-
-
- <ul class="pagehead-actions">
-
-
- <li>
- <span class="star-button"><a href="/login?return_to=%2Fhyves-org%2Fopenstack-overlay" class="minibutton js-toggler-target entice tooltipped leftwards" title="You must be signed in to use this feature" rel="nofollow"><span class="mini-icon mini-icon-star"></span>Star</a><a class="social-count js-social-count" href="/hyves-org/openstack-overlay/stargazers">13</a></span>
- </li>
- <li>
- <a href="/login?return_to=%2Fhyves-org%2Fopenstack-overlay" class="minibutton js-toggler-target fork-button entice tooltipped leftwards" title="You must be signed in to fork a repository" rel="nofollow"><span class="mini-icon mini-icon-fork"></span>Fork</a><a href="/hyves-org/openstack-overlay/network" class="social-count">8</a>
- </li>
- </ul>
-
- <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
- <span class="repo-label"><span>public</span></span>
- <span class="mega-icon mega-icon-public-repo"></span>
- <span class="author vcard">
- <a href="/hyves-org" class="url fn" itemprop="url" rel="author">
- <span itemprop="title">hyves-org</span>
- </a></span> /
- <strong><a href="/hyves-org/openstack-overlay" class="js-current-repository">openstack-overlay</a></strong>
- </h1>
- </div>
-
-
-
- <ul class="tabs">
- <li><a href="/hyves-org/openstack-overlay" class="selected" highlight="repo_sourcerepo_downloadsrepo_commitsrepo_tagsrepo_branches">Code</a></li>
- <li><a href="/hyves-org/openstack-overlay/network" highlight="repo_network">Network</a></li>
- <li><a href="/hyves-org/openstack-overlay/pulls" highlight="repo_pulls">Pull Requests <span class='counter'>0</span></a></li>
-
- <li><a href="/hyves-org/openstack-overlay/issues" highlight="repo_issues">Issues <span class='counter'>4</span></a></li>
-
-
-
- <li><a href="/hyves-org/openstack-overlay/graphs" highlight="repo_graphsrepo_contributors">Graphs</a></li>
-
-
- </ul>
-
-<div class="tabnav">
-
- <span class="tabnav-right">
- <ul class="tabnav-tabs">
- <li><a href="/hyves-org/openstack-overlay/tags" class="tabnav-tab" highlight="repo_tags">Tags <span class="counter blank">0</span></a></li>
- </ul>
-
- </span>
-
- <div class="tabnav-widget scope">
-
-
- <div class="context-menu-container js-menu-container js-context-menu">
- <a href="#"
- class="minibutton bigger switcher js-menu-target js-commitish-button btn-branch repo-tree"
- data-hotkey="w"
- data-ref="master">
- <span><em class="mini-icon mini-icon-branch"></em><i>branch:</i> master</span>
- </a>
-
- <div class="context-pane commitish-context js-menu-content">
- <a href="#" class="close js-menu-close"><span class="mini-icon mini-icon-remove-close"></span></a>
- <div class="context-title">Switch branches/tags</div>
- <div class="context-body pane-selector commitish-selector js-navigation-container">
- <div class="filterbar">
- <input type="text" id="context-commitish-filter-field" class="js-navigation-enable js-filterable-field js-ref-filter-field" placeholder="Filter branches/tags">
- <ul class="tabs">
- <li><a href="#" data-filter="branches" class="selected">Branches</a></li>
- <li><a href="#" data-filter="tags">Tags</a></li>
- </ul>
- </div>
-
- <div class="js-filter-tab js-filter-branches">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type=substring>
- <div class="commitish-item branch-commitish selector-item js-navigation-item js-navigation-target selected">
- <span class="mini-icon mini-icon-confirm"></span>
- <h4>
- <a href="/hyves-org/openstack-overlay/blob/master/sys-cluster/swift/files/swift-proxy-server.initd" class="js-navigation-open" data-name="master" rel="nofollow">master</a>
- </h4>
- </div>
- </div>
- <div class="no-results">Nothing to show</div>
-
-
- </div>
-
- <div class="js-filter-tab js-filter-tags filter-tab-empty" style="display:none">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type=substring>
- </div>
- <div class="no-results">Nothing to show</div>
- </div>
-
- </div>
- </div><!-- /.commitish-context-context -->
- </div>
- </div> <!-- /.scope -->
-
- <ul class="tabnav-tabs">
- <li><a href="/hyves-org/openstack-overlay" class="selected tabnav-tab" highlight="repo_source">Files</a></li>
- <li><a href="/hyves-org/openstack-overlay/commits/master" class="tabnav-tab" highlight="repo_commits">Commits</a></li>
- <li><a href="/hyves-org/openstack-overlay/branches" class="tabnav-tab" highlight="repo_branches" rel="nofollow">Branches <span class="counter ">1</span></a></li>
- </ul>
-
-</div>
-
-
-
-
-
-
-
- </div>
- </div><!-- /.repohead -->
-
- <div id="js-repo-pjax-container" class="container context-loader-container" data-pjax-container>
-
-
-
-<!-- blob contrib key: blob_contributors:v21:e884cf14b8a3f7a8f7641b174c8aa33f -->
-<!-- blob contrib frag key: views10/v8/blob_contributors:v21:e884cf14b8a3f7a8f7641b174c8aa33f -->
-
-<div id="slider">
-
-
- <div class="frame-meta">
-
- <p title="This is a placeholder element" class="js-history-link-replace hidden"></p>
- <div class="breadcrumb">
- <span class='bold'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">openstack-overlay</span></a></span></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">sys-cluster</span></a></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster/swift" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">swift</span></a></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster/swift/files" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">files</span></a></span> / <strong class="final-path">swift-proxy-server.initd</strong> <span class="js-clippy mini-icon mini-icon-clippy " data-clipboard-text="sys-cluster/swift/files/swift-proxy-server.initd" data-copied-hint="copied!" data-copy-hint="copy to clipboard"></span>
- </div>
-
- <a href="/hyves-org/openstack-overlay/find/master" class="js-slide-to" data-hotkey="t" style="display:none">Show File Finder</a>
-
-
- <div class="commit file-history-tease">
- <img class="main-avatar" height="24" src="https://secure.gravatar.com/avatar/5e727048d87e750a1b21c6670acea0c3?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
- <span class="author"><a href="/lensen" rel="author">lensen</a></span>
- <time class="js-relative-date" datetime="2012-09-11T01:39:08-07:00" title="2012-09-11 01:39:08">September 11, 2012</time>
- <div class="commit-title">
- <a href="/hyves-org/openstack-overlay/commit/1caf08757b6494004c1f01939765ac4202000b12" class="message">Added reload, restart and status opts to init script</a>
- </div>
-
- <div class="participation">
- <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>1</strong> contributor</a></p>
-
- </div>
- <div id="blob_contributors_box" style="display:none">
- <h2>Users on GitHub who have contributed to this file</h2>
- <ul class="facebox-user-list">
- <li>
- <img height="24" src="https://secure.gravatar.com/avatar/5e727048d87e750a1b21c6670acea0c3?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
- <a href="/lensen">lensen</a>
- </li>
- </ul>
- </div>
- </div>
-
-
- </div><!-- ./.frame-meta -->
-
- <div class="frames">
- <div class="frame" data-permalink-url="/hyves-org/openstack-overlay/blob/271137305359f85d0f21a85e5387fba068b26e88/sys-cluster/swift/files/swift-proxy-server.initd" data-title="openstack-overlay/sys-cluster/swift/files/swift-proxy-server.initd at master · hyves-org/openstack-overlay · GitHub" data-type="blob">
-
- <div id="files" class="bubble">
- <div class="file">
- <div class="meta">
- <div class="info">
- <span class="icon"><b class="mini-icon mini-icon-text-file"></b></span>
- <span class="mode" title="File Mode">executable file</span>
- <span>65 lines (49 sloc)</span>
- <span>1.491 kb</span>
- </div>
- <ul class="button-group actions">
- <li>
- <a class="grouped-button minibutton bigger lighter js-entice" href=""
- data-entice="You must be signed in and on a branch to make or propose changes">Edit</a>
- </li>
- <li><a href="/hyves-org/openstack-overlay/raw/master/sys-cluster/swift/files/swift-proxy-server.initd" class="minibutton grouped-button bigger lighter" id="raw-url">Raw</a></li>
- <li><a href="/hyves-org/openstack-overlay/blame/master/sys-cluster/swift/files/swift-proxy-server.initd" class="minibutton grouped-button bigger lighter">Blame</a></li>
- <li><a href="/hyves-org/openstack-overlay/commits/master/sys-cluster/swift/files/swift-proxy-server.initd" class="minibutton grouped-button bigger lighter" rel="nofollow">History</a></li>
- </ul>
- </div>
- <div class="data type-text">
- <table cellpadding="0" cellspacing="0" class="lines">
- <tr>
- <td>
- <pre class="line_numbers"><span id="L1" rel="#L1">1</span>
-<span id="L2" rel="#L2">2</span>
-<span id="L3" rel="#L3">3</span>
-<span id="L4" rel="#L4">4</span>
-<span id="L5" rel="#L5">5</span>
-<span id="L6" rel="#L6">6</span>
-<span id="L7" rel="#L7">7</span>
-<span id="L8" rel="#L8">8</span>
-<span id="L9" rel="#L9">9</span>
-<span id="L10" rel="#L10">10</span>
-<span id="L11" rel="#L11">11</span>
-<span id="L12" rel="#L12">12</span>
-<span id="L13" rel="#L13">13</span>
-<span id="L14" rel="#L14">14</span>
-<span id="L15" rel="#L15">15</span>
-<span id="L16" rel="#L16">16</span>
-<span id="L17" rel="#L17">17</span>
-<span id="L18" rel="#L18">18</span>
-<span id="L19" rel="#L19">19</span>
-<span id="L20" rel="#L20">20</span>
-<span id="L21" rel="#L21">21</span>
-<span id="L22" rel="#L22">22</span>
-<span id="L23" rel="#L23">23</span>
-<span id="L24" rel="#L24">24</span>
-<span id="L25" rel="#L25">25</span>
-<span id="L26" rel="#L26">26</span>
-<span id="L27" rel="#L27">27</span>
-<span id="L28" rel="#L28">28</span>
-<span id="L29" rel="#L29">29</span>
-<span id="L30" rel="#L30">30</span>
-<span id="L31" rel="#L31">31</span>
-<span id="L32" rel="#L32">32</span>
-<span id="L33" rel="#L33">33</span>
-<span id="L34" rel="#L34">34</span>
-<span id="L35" rel="#L35">35</span>
-<span id="L36" rel="#L36">36</span>
-<span id="L37" rel="#L37">37</span>
-<span id="L38" rel="#L38">38</span>
-<span id="L39" rel="#L39">39</span>
-<span id="L40" rel="#L40">40</span>
-<span id="L41" rel="#L41">41</span>
-<span id="L42" rel="#L42">42</span>
-<span id="L43" rel="#L43">43</span>
-<span id="L44" rel="#L44">44</span>
-<span id="L45" rel="#L45">45</span>
-<span id="L46" rel="#L46">46</span>
-<span id="L47" rel="#L47">47</span>
-<span id="L48" rel="#L48">48</span>
-<span id="L49" rel="#L49">49</span>
-<span id="L50" rel="#L50">50</span>
-<span id="L51" rel="#L51">51</span>
-<span id="L52" rel="#L52">52</span>
-<span id="L53" rel="#L53">53</span>
-<span id="L54" rel="#L54">54</span>
-<span id="L55" rel="#L55">55</span>
-<span id="L56" rel="#L56">56</span>
-<span id="L57" rel="#L57">57</span>
-<span id="L58" rel="#L58">58</span>
-<span id="L59" rel="#L59">59</span>
-<span id="L60" rel="#L60">60</span>
-<span id="L61" rel="#L61">61</span>
-<span id="L62" rel="#L62">62</span>
-<span id="L63" rel="#L63">63</span>
-<span id="L64" rel="#L64">64</span>
-</pre>
- </td>
- <td width="100%">
- <div class="highlight"><pre><div class='line' id='LC1'>#!/sbin/runscript</div><div class='line' id='LC2'># Copyright 1999-2011 Gentoo Foundation</div><div class='line' id='LC3'># Distributed under the terms of the GNU General Public License v2</div><div class='line' id='LC4'># $Header: $</div><div class='line' id='LC5'>#</div><div class='line' id='LC6'># Author: Cor Cornelisse &lt;corcornelisse@gmail.com&gt;</div><div class='line' id='LC7'><br/></div><div class='line' id='LC8'>depend() {</div><div class='line' id='LC9'> need net</div><div class='line' id='LC10'>}</div><div class='line' id='LC11'><br/></div><div class='line' id='LC12'>opts=&quot;reload&quot;</div><div class='line' id='LC13'><br/></div><div class='line' id='LC14'>BASENAME=$(echo $SVCNAME | cut -d &#39;-&#39; -f 1)</div><div class='line' id='LC15'>SERVERNAME=$(echo $SVCNAME | cut -c 7-)</div><div class='line' id='LC16'><br/></div><div class='line' id='LC17'>checkconfig() {</div><div class='line' id='LC18'> if [ ! -r /etc/${BASENAME}/${SERVICENAME} ]; then</div><div class='line' id='LC19'> eerror &quot;No config file found: /etc/${BASENAME}/${SERVICENAME}&quot;</div><div class='line' id='LC20'> return 1</div><div class='line' id='LC21'> fi</div><div class='line' id='LC22'> return 0</div><div class='line' id='LC23'>}</div><div class='line' id='LC24'><br/></div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>start() {</div><div class='line' id='LC27'> checkconfig || return $?</div><div class='line' id='LC28'><br/></div><div class='line' id='LC29'> ebegin &quot;Starting ${SVCNAME}&quot;</div><div class='line' id='LC30'> start-stop-daemon --start --pidfile &quot;/var/run/${BASENAME}/${SERVERNAME}.pid&quot; \</div><div class='line' id='LC31'> --exec /usr/bin/${BASENAME}-init -- ${SERVERNAME} start</div><div class='line' id='LC32'> eend $? &quot;Failed to start ${SVCNAME}&quot;</div><div class='line' id='LC33'>}</div><div class='line' id='LC34'><br/></div><div class='line' id='LC35'>stop() {</div><div class='line' id='LC36'> checkconfig || return $?</div><div class='line' id='LC37'><br/></div><div class='line' id='LC38'> ebegin &quot;Stopping ${SVCNAME}&quot;</div><div class='line' id='LC39'> start-stop-daemon --stop --pidfile &quot;/var/run/${BASENAME}/${SERVERNAME}.pid&quot; \</div><div class='line' id='LC40'> --exec /usr/bin/${BASENAME}-init -- ${SERVERNAME} stop </div><div class='line' id='LC41'> eend $? &quot;Failed to stop ${SVCNAME}&quot;</div><div class='line' id='LC42'>}</div><div class='line' id='LC43'><br/></div><div class='line' id='LC44'>reload() {</div><div class='line' id='LC45'> checkconfig || return $?</div><div class='line' id='LC46'><br/></div><div class='line' id='LC47'> ebegin &quot;Reloading ${SVCNAME}&quot;</div><div class='line' id='LC48'> start-stop-daemon --exec /usr/bin/${BASENAME}-init -- ${SERVERNAME} reload</div><div class='line' id='LC49'> eend $? &quot;Failed to reload ${SVCNAME}&quot;</div><div class='line' id='LC50'>}</div><div class='line' id='LC51'><br/></div><div class='line' id='LC52'>restart() {</div><div class='line' id='LC53'> checkconfig || return $?</div><div class='line' id='LC54'><br/></div><div class='line' id='LC55'> ebegin &quot;Restarting ${SVCNAME}&quot;</div><div class='line' id='LC56'> start-stop-daemon --exec /usr/bin/${BASENAME}-init -- ${SERVERNAME} restart</div><div class='line' id='LC57'> eend $? &quot;Failed to restart ${SVCNAME}&quot;</div><div class='line' id='LC58'>}</div><div class='line' id='LC59'><br/></div><div class='line' id='LC60'>status() {</div><div class='line' id='LC61'> start-stop-daemon --exec /usr/bin/${BASENAME}-init -- ${SERVERNAME} status</div><div class='line' id='LC62'> eend $? &quot;Failed to get status for ${SVCNAME}&quot;</div><div class='line' id='LC63'>}</div><div class='line' id='LC64'><br/></div></pre></div>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
- </div>
- </div>
-
- <a href="#jump-to-line" rel="facebox" data-hotkey="l" class="js-jump-to-line" style="display:none">Jump to Line</a>
- <div id="jump-to-line" style="display:none">
- <h2>Jump to Line</h2>
- <form accept-charset="UTF-8" class="js-jump-to-line-form">
- <input class="textfield js-jump-to-line-field" type="text">
- <div class="full-button">
- <button type="submit" class="classy">
- Go
- </button>
- </div>
- </form>
- </div>
-
- </div>
-</div>
-
-<div id="js-frame-loading-template" class="frame frame-loading large-loading-area" style="display:none;">
- <img class="js-frame-loading-spinner" src="https://a248.e.akamai.net/assets.github.com/images/spinners/octocat-spinner-128.gif?1347543525" height="64" width="64">
-</div>
-
-
- </div>
- </div>
- <div class="context-overlay"></div>
- </div>
-
- <div id="footer-push"></div><!-- hack for sticky footer -->
- </div><!-- end of wrapper - hack for sticky footer -->
-
- <!-- footer -->
- <div id="footer">
- <div class="container clearfix">
-
- <dl class="footer_nav">
- <dt>GitHub</dt>
- <dd><a href="https://github.com/about">About us</a></dd>
- <dd><a href="https://github.com/blog">Blog</a></dd>
- <dd><a href="https://github.com/contact">Contact &amp; support</a></dd>
- <dd><a href="http://enterprise.github.com/">GitHub Enterprise</a></dd>
- <dd><a href="http://status.github.com/">Site status</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Applications</dt>
- <dd><a href="http://mac.github.com/">GitHub for Mac</a></dd>
- <dd><a href="http://windows.github.com/">GitHub for Windows</a></dd>
- <dd><a href="http://eclipse.github.com/">GitHub for Eclipse</a></dd>
- <dd><a href="http://mobile.github.com/">GitHub mobile apps</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Services</dt>
- <dd><a href="http://get.gaug.es/">Gauges: Web analytics</a></dd>
- <dd><a href="http://speakerdeck.com">Speaker Deck: Presentations</a></dd>
- <dd><a href="https://gist.github.com">Gist: Code snippets</a></dd>
- <dd><a href="http://jobs.github.com/">Job board</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Documentation</dt>
- <dd><a href="http://help.github.com/">GitHub Help</a></dd>
- <dd><a href="http://developer.github.com/">Developer API</a></dd>
- <dd><a href="http://github.github.com/github-flavored-markdown/">GitHub Flavored Markdown</a></dd>
- <dd><a href="http://pages.github.com/">GitHub Pages</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>More</dt>
- <dd><a href="http://training.github.com/">Training</a></dd>
- <dd><a href="https://github.com/edu">Students &amp; teachers</a></dd>
- <dd><a href="http://shop.github.com">The Shop</a></dd>
- <dd><a href="/plans">Plans &amp; pricing</a></dd>
- <dd><a href="http://octodex.github.com/">The Octodex</a></dd>
- </dl>
-
- <hr class="footer-divider">
-
-
- <p class="right">&copy; 2012 <span title="0.04159s from fe17.rs.github.com">GitHub</span> Inc. All rights reserved.</p>
- <a class="left" href="https://github.com/">
- <span class="mega-icon mega-icon-invertocat"></span>
- </a>
- <ul id="legal">
- <li><a href="https://github.com/site/terms">Terms of Service</a></li>
- <li><a href="https://github.com/site/privacy">Privacy</a></li>
- <li><a href="https://github.com/security">Security</a></li>
- </ul>
-
- </div><!-- /.container -->
-
-</div><!-- /.#footer -->
-
-
-
-
-<div id="keyboard_shortcuts_pane" class="instapaper_ignore readability-extra" style="display:none">
- <h2>Keyboard Shortcuts <small><a href="#" class="js-see-all-keyboard-shortcuts">(see all)</a></small></h2>
-
- <div class="columns threecols">
- <div class="column first">
- <h3>Site wide shortcuts</h3>
- <dl class="keyboard-mappings">
- <dt>s</dt>
- <dd>Focus command bar</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>?</dt>
- <dd>Bring up this help dialog</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column middle" style='display:none'>
- <h3>Commit list</h3>
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>c <em>or</em> o <em>or</em> enter</dt>
- <dd>Open commit</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>y</dt>
- <dd>Expand URL to its canonical form</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column last js-hidden-pane" style='display:none'>
- <h3>Pull request list</h3>
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> shift p</dt>
- <dd>Preview comment</dd>
- </dl>
- </div><!-- /.columns.last -->
-
- </div><!-- /.columns.equacols -->
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Issues</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>x</dt>
- <dd>Toggle selection</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> shift p</dt>
- <dd>Preview comment</dd>
- </dl>
- </div><!-- /.column.first -->
- <div class="column last">
- <dl class="keyboard-mappings">
- <dt>c</dt>
- <dd>Create issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>l</dt>
- <dd>Create label</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>i</dt>
- <dd>Back to inbox</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>u</dt>
- <dd>Back to issues</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>/</dt>
- <dd>Focus issues search</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Issues Dashboard</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- </div><!-- /.column.first -->
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Network Graph</h3>
- <div class="columns equacols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt><span class="badmono">←</span> <em>or</em> h</dt>
- <dd>Scroll left</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">→</span> <em>or</em> l</dt>
- <dd>Scroll right</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">↑</span> <em>or</em> k</dt>
- <dd>Scroll up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">↓</span> <em>or</em> j</dt>
- <dd>Scroll down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>t</dt>
- <dd>Toggle visibility of head labels</dd>
- </dl>
- </div><!-- /.column.first -->
- <div class="column last">
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">←</span> <em>or</em> shift h</dt>
- <dd>Scroll all the way left</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">→</span> <em>or</em> shift l</dt>
- <dd>Scroll all the way right</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">↑</span> <em>or</em> shift k</dt>
- <dd>Scroll all the way up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">↓</span> <em>or</em> shift j</dt>
- <dd>Scroll all the way down</dd>
- </dl>
- </div><!-- /.column.last -->
- </div>
- </div>
-
- <div class="js-hidden-pane" >
- <div class="rule"></div>
- <div class="columns threecols">
- <div class="column first js-hidden-pane" >
- <h3>Source Code Browsing</h3>
- <dl class="keyboard-mappings">
- <dt>t</dt>
- <dd>Activates the file finder</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>l</dt>
- <dd>Jump to line</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>w</dt>
- <dd>Switch branch/tag</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>y</dt>
- <dd>Expand URL to its canonical form</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
- <div class="columns threecols">
- <div class="column first">
- <h3>Browsing Commits</h3>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>escape</dt>
- <dd>Close form</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>p</dt>
- <dd>Parent commit</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o</dt>
- <dd>Other parent commit</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
- <h3>Notifications</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open notification</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column second">
- <dl class="keyboard-mappings">
- <dt>e <em>or</em> shift i <em>or</em> y</dt>
- <dd>Mark as read</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift m</dt>
- <dd>Mute thread</dd>
- </dl>
- </div><!-- /.column.first -->
- </div>
- </div>
-
-</div>
-
- <div id="markdown-help" class="instapaper_ignore readability-extra">
- <h2>Markdown Cheat Sheet</h2>
-
- <div class="cheatsheet-content">
-
- <div class="mod">
- <div class="col">
- <h3>Format Text</h3>
- <p>Headers</p>
- <pre>
-# This is an &lt;h1&gt; tag
-## This is an &lt;h2&gt; tag
-###### This is an &lt;h6&gt; tag</pre>
- <p>Text styles</p>
- <pre>
-*This text will be italic*
-_This will also be italic_
-**This text will be bold**
-__This will also be bold__
-
-*You **can** combine them*
-</pre>
- </div>
- <div class="col">
- <h3>Lists</h3>
- <p>Unordered</p>
- <pre>
-* Item 1
-* Item 2
- * Item 2a
- * Item 2b</pre>
- <p>Ordered</p>
- <pre>
-1. Item 1
-2. Item 2
-3. Item 3
- * Item 3a
- * Item 3b</pre>
- </div>
- <div class="col">
- <h3>Miscellaneous</h3>
- <p>Images</p>
- <pre>
-![GitHub Logo](/images/logo.png)
-Format: ![Alt Text](url)
-</pre>
- <p>Links</p>
- <pre>
-http://github.com - automatic!
-[GitHub](http://github.com)</pre>
-<p>Blockquotes</p>
- <pre>
-As Kanye West said:
-
-> We're living the future so
-> the present is our past.
-</pre>
- </div>
- </div>
- <div class="rule"></div>
-
- <h3>Code Examples in Markdown</h3>
- <div class="col">
- <p>Syntax highlighting with <a href="http://github.github.com/github-flavored-markdown/" title="GitHub Flavored Markdown" target="_blank">GFM</a></p>
- <pre>
-```javascript
-function fancyAlert(arg) {
- if(arg) {
- $.facebox({div:'#foo'})
- }
-}
-```</pre>
- </div>
- <div class="col">
- <p>Or, indent your code 4 spaces</p>
- <pre>
-Here is a Python code example
-without syntax highlighting:
-
- def foo:
- if not bar:
- return true</pre>
- </div>
- <div class="col">
- <p>Inline code for comments</p>
- <pre>
-I think you should use an
-`&lt;addr&gt;` element here instead.</pre>
- </div>
- </div>
-
- </div>
-</div>
-
-
- <div id="ajax-error-message" class="flash flash-error">
- <span class="mini-icon mini-icon-exclamation"></span>
- Something went wrong with that request. Please try again.
- <a href="#" class="mini-icon mini-icon-remove-close ajax-error-dismiss"></a>
- </div>
-
-
-
- <span id='server_response_time' data-time='0.04280' data-host='fe17'></span>
-
- </body>
-</html>
-
diff --git a/sys-cluster/swift/files/swift-proxy.initd b/sys-cluster/swift/files/swift-proxy.initd
new file mode 100644
index 0000000..3dea8a0
--- /dev/null
+++ b/sys-cluster/swift/files/swift-proxy.initd
@@ -0,0 +1,57 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+COMMAND=/usr/bin/swift-init
+PIDFILE=/var/run/swift/swift-proxy.pid
+
+depend() {
+ need net
+}
+
+opts="reload"
+
+checkconfig() {
+ if [ ! -r /etc/swift/swift.conf ]; then
+ eerror "Missing required config file: /etc/swift/swift.conf"
+ return 1
+ fi
+ if [ ! -r /etc/swift/proxy-server.conf ]; then
+ eerror "Missing required config file: /etc/swift/proxy-server.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy stop
+ eend $?
+}
+
+reload() {
+ checkconfig || return $?
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --quiet -i ${COMMAND} -- proxy reload
+ eend $? "Failed to reload ${SVCNAME}"
+}
+
+restart() {
+ checkconfig || return $?
+ ebegin "Restarting ${SVCNAME}"
+ start-stop-daemon --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy restart
+ eend $? "Failed to restart ${SVCNAME}"
+}
+
+status() {
+ start-stop-daemon --quiet -i ${COMMAND} -- proxy status
+ eend $? "Failed to get status for ${SVCNAME}"
+}
diff --git a/sys-cluster/swift/files/swift-storage-server.confd b/sys-cluster/swift/files/swift-storage-server.confd
deleted file mode 100644
index 625dcf5..0000000
--- a/sys-cluster/swift/files/swift-storage-server.confd
+++ /dev/null
@@ -1,775 +0,0 @@
-
-
-
-<!DOCTYPE html>
-<html>
- <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>openstack-overlay/sys-cluster/swift/files/swift-storage-server.confd at master · hyves-org/openstack-overlay · GitHub</title>
- <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub" />
- <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub" />
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-114.png" />
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114.png" />
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-144.png" />
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144.png" />
- <meta name="msapplication-TileImage" content="/windows-tile.png">
- <meta name="msapplication-TileColor" content="#ffffff">
-
-
-
- <link rel="icon" type="image/x-icon" href="/favicon.ico" />
-
- <meta content="authenticity_token" name="csrf-param" />
-<meta content="fQoN9Jn8nUuaW90HFyXJkgpgx+vwTvDigQm9nw2jNss=" name="csrf-token" />
-
- <link href="https://a248.e.akamai.net/assets.github.com/assets/github-136f905f03a0a6ce0292d2e017a31c4fe548e2d0.css" media="screen" rel="stylesheet" type="text/css" />
- <link href="https://a248.e.akamai.net/assets.github.com/assets/github2-2326d6d1fbc034bffa9b37cad622815f40671037.css" media="screen" rel="stylesheet" type="text/css" />
-
-
-
- <script src="https://a248.e.akamai.net/assets.github.com/assets/frameworks-eee761b9d5e06efb064aaaf528c44ef8e1601e71.js" type="text/javascript"></script>
- <script src="https://a248.e.akamai.net/assets.github.com/assets/github-69e35ef6c3d5b779e39f65bd04a4e43ff670991e.js" type="text/javascript"></script>
-
-
- <link rel='permalink' href='/hyves-org/openstack-overlay/blob/271137305359f85d0f21a85e5387fba068b26e88/sys-cluster/swift/files/swift-storage-server.confd'>
- <meta property="og:title" content="openstack-overlay"/>
- <meta property="og:type" content="githubog:gitrepository"/>
- <meta property="og:url" content="https://github.com/hyves-org/openstack-overlay"/>
- <meta property="og:image" content="https://secure.gravatar.com/avatar/c5cfe5b5d4533c3637cd4315ff18e834?s=420&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png"/>
- <meta property="og:site_name" content="GitHub"/>
- <meta property="og:description" content="openstack-overlay - An overlay with the required ebuilds to install and run Openstack on Gentoo Linux"/>
-
- <meta name="description" content="openstack-overlay - An overlay with the required ebuilds to install and run Openstack on Gentoo Linux" />
-
- <link href="https://github.com/hyves-org/openstack-overlay/commits/master.atom" rel="alternate" title="Recent Commits to openstack-overlay:master" type="application/atom+xml" />
-
- </head>
-
-
- <body class="logged_out page-blob vis-public env-production ">
- <div id="wrapper">
-
-
-
-
-
-
-
-
- <div class="header header-logged-out">
- <div class="container clearfix">
-
- <a class="header-logo-wordmark" href="https://github.com/">
- <img alt="GitHub" class="github-logo-4x" height="30" src="https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png?1338945075" />
- <img alt="GitHub" class="github-logo-4x-hover" height="30" src="https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x-hover.png?1338945075" />
- </a>
-
-
-<ul class="top-nav">
- <li class="explore"><a href="https://github.com/explore">Explore GitHub</a></li>
- <li class="search"><a href="https://github.com/search">Search</a></li>
- <li class="features"><a href="https://github.com/features">Features</a></li>
- <li class="blog"><a href="https://github.com/blog">Blog</a></li>
-</ul>
-
-
- <div class="header-actions">
- <a class="button primary classy" href="https://github.com/signup">Sign up for free</a>
- <a class="button classy" href="https://github.com/login?return_to=%2Fhyves-org%2Fopenstack-overlay%2Fblob%2Fmaster%2Fsys-cluster%2Fswift%2Ffiles%2Fswift-storage-server.confd">Sign in</a>
- </div>
-
- </div>
- </div>
-
-
-
-
-
-
-
- <div class="site hfeed" itemscope itemtype="http://schema.org/WebPage">
- <div class="hentry">
-
- <div class="pagehead repohead instapaper_ignore readability-menu">
- <div class="container">
- <div class="title-actions-bar">
-
-
-
- <ul class="pagehead-actions">
-
-
- <li>
- <span class="star-button"><a href="/login?return_to=%2Fhyves-org%2Fopenstack-overlay" class="minibutton js-toggler-target entice tooltipped leftwards" title="You must be signed in to use this feature" rel="nofollow"><span class="mini-icon mini-icon-star"></span>Star</a><a class="social-count js-social-count" href="/hyves-org/openstack-overlay/stargazers">13</a></span>
- </li>
- <li>
- <a href="/login?return_to=%2Fhyves-org%2Fopenstack-overlay" class="minibutton js-toggler-target fork-button entice tooltipped leftwards" title="You must be signed in to fork a repository" rel="nofollow"><span class="mini-icon mini-icon-fork"></span>Fork</a><a href="/hyves-org/openstack-overlay/network" class="social-count">8</a>
- </li>
- </ul>
-
- <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
- <span class="repo-label"><span>public</span></span>
- <span class="mega-icon mega-icon-public-repo"></span>
- <span class="author vcard">
- <a href="/hyves-org" class="url fn" itemprop="url" rel="author">
- <span itemprop="title">hyves-org</span>
- </a></span> /
- <strong><a href="/hyves-org/openstack-overlay" class="js-current-repository">openstack-overlay</a></strong>
- </h1>
- </div>
-
-
-
- <ul class="tabs">
- <li><a href="/hyves-org/openstack-overlay" class="selected" highlight="repo_sourcerepo_downloadsrepo_commitsrepo_tagsrepo_branches">Code</a></li>
- <li><a href="/hyves-org/openstack-overlay/network" highlight="repo_network">Network</a></li>
- <li><a href="/hyves-org/openstack-overlay/pulls" highlight="repo_pulls">Pull Requests <span class='counter'>0</span></a></li>
-
- <li><a href="/hyves-org/openstack-overlay/issues" highlight="repo_issues">Issues <span class='counter'>4</span></a></li>
-
-
-
- <li><a href="/hyves-org/openstack-overlay/graphs" highlight="repo_graphsrepo_contributors">Graphs</a></li>
-
-
- </ul>
-
-<div class="tabnav">
-
- <span class="tabnav-right">
- <ul class="tabnav-tabs">
- <li><a href="/hyves-org/openstack-overlay/tags" class="tabnav-tab" highlight="repo_tags">Tags <span class="counter blank">0</span></a></li>
- </ul>
-
- </span>
-
- <div class="tabnav-widget scope">
-
-
- <div class="context-menu-container js-menu-container js-context-menu">
- <a href="#"
- class="minibutton bigger switcher js-menu-target js-commitish-button btn-branch repo-tree"
- data-hotkey="w"
- data-ref="master">
- <span><em class="mini-icon mini-icon-branch"></em><i>branch:</i> master</span>
- </a>
-
- <div class="context-pane commitish-context js-menu-content">
- <a href="#" class="close js-menu-close"><span class="mini-icon mini-icon-remove-close"></span></a>
- <div class="context-title">Switch branches/tags</div>
- <div class="context-body pane-selector commitish-selector js-navigation-container">
- <div class="filterbar">
- <input type="text" id="context-commitish-filter-field" class="js-navigation-enable js-filterable-field js-ref-filter-field" placeholder="Filter branches/tags">
- <ul class="tabs">
- <li><a href="#" data-filter="branches" class="selected">Branches</a></li>
- <li><a href="#" data-filter="tags">Tags</a></li>
- </ul>
- </div>
-
- <div class="js-filter-tab js-filter-branches">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type=substring>
- <div class="commitish-item branch-commitish selector-item js-navigation-item js-navigation-target selected">
- <span class="mini-icon mini-icon-confirm"></span>
- <h4>
- <a href="/hyves-org/openstack-overlay/blob/master/sys-cluster/swift/files/swift-storage-server.confd" class="js-navigation-open" data-name="master" rel="nofollow">master</a>
- </h4>
- </div>
- </div>
- <div class="no-results">Nothing to show</div>
-
-
- </div>
-
- <div class="js-filter-tab js-filter-tags filter-tab-empty" style="display:none">
- <div data-filterable-for="context-commitish-filter-field" data-filterable-type=substring>
- </div>
- <div class="no-results">Nothing to show</div>
- </div>
-
- </div>
- </div><!-- /.commitish-context-context -->
- </div>
- </div> <!-- /.scope -->
-
- <ul class="tabnav-tabs">
- <li><a href="/hyves-org/openstack-overlay" class="selected tabnav-tab" highlight="repo_source">Files</a></li>
- <li><a href="/hyves-org/openstack-overlay/commits/master" class="tabnav-tab" highlight="repo_commits">Commits</a></li>
- <li><a href="/hyves-org/openstack-overlay/branches" class="tabnav-tab" highlight="repo_branches" rel="nofollow">Branches <span class="counter ">1</span></a></li>
- </ul>
-
-</div>
-
-
-
-
-
-
-
- </div>
- </div><!-- /.repohead -->
-
- <div id="js-repo-pjax-container" class="container context-loader-container" data-pjax-container>
-
-
-
-<!-- blob contrib key: blob_contributors:v21:b1fb44a60bb3ba0465708ef3f966ab67 -->
-<!-- blob contrib frag key: views10/v8/blob_contributors:v21:b1fb44a60bb3ba0465708ef3f966ab67 -->
-
-<div id="slider">
-
-
- <div class="frame-meta">
-
- <p title="This is a placeholder element" class="js-history-link-replace hidden"></p>
- <div class="breadcrumb">
- <span class='bold'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">openstack-overlay</span></a></span></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">sys-cluster</span></a></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster/swift" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">swift</span></a></span> / <span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/hyves-org/openstack-overlay/tree/master/sys-cluster/swift/files" class="js-slide-to" data-direction="back" itemscope="url"><span itemprop="title">files</span></a></span> / <strong class="final-path">swift-storage-server.confd</strong> <span class="js-clippy mini-icon mini-icon-clippy " data-clipboard-text="sys-cluster/swift/files/swift-storage-server.confd" data-copied-hint="copied!" data-copy-hint="copy to clipboard"></span>
- </div>
-
- <a href="/hyves-org/openstack-overlay/find/master" class="js-slide-to" data-hotkey="t" style="display:none">Show File Finder</a>
-
-
- <div class="commit file-history-tease">
- <img class="main-avatar" height="24" src="https://secure.gravatar.com/avatar/2f42c07abd5729c33aa6ddedf4f8a8c2?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
- <span class="author"><span rel="author">Cor Cornelisse</span></span>
- <time class="js-relative-date" datetime="2012-01-31T05:40:20-08:00" title="2012-01-31 05:40:20">January 31, 2012</time>
- <div class="commit-title">
- <a href="/hyves-org/openstack-overlay/commit/adbc5d42f4ae86954257ee9050e882295b5a8cb5" class="message">New ebuild for swift version 1.4.5, includes init scripting, dependin…</a>
- </div>
-
- <div class="participation">
- <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>0</strong> contributors</a></p>
-
- </div>
- <div id="blob_contributors_box" style="display:none">
- <h2>Users on GitHub who have contributed to this file</h2>
- <ul class="facebox-user-list">
- </ul>
- </div>
- </div>
-
-
- </div><!-- ./.frame-meta -->
-
- <div class="frames">
- <div class="frame" data-permalink-url="/hyves-org/openstack-overlay/blob/271137305359f85d0f21a85e5387fba068b26e88/sys-cluster/swift/files/swift-storage-server.confd" data-title="openstack-overlay/sys-cluster/swift/files/swift-storage-server.confd at master · hyves-org/openstack-overlay · GitHub" data-type="blob">
-
- <div id="files" class="bubble">
- <div class="file">
- <div class="meta">
- <div class="info">
- <span class="icon"><b class="mini-icon mini-icon-text-file"></b></span>
- <span class="mode" title="File Mode">file</span>
- <span>6 lines (4 sloc)</span>
- <span>0.182 kb</span>
- </div>
- <ul class="button-group actions">
- <li>
- <a class="grouped-button minibutton bigger lighter js-entice" href=""
- data-entice="You must be signed in and on a branch to make or propose changes">Edit</a>
- </li>
- <li><a href="/hyves-org/openstack-overlay/raw/master/sys-cluster/swift/files/swift-storage-server.confd" class="minibutton grouped-button bigger lighter" id="raw-url">Raw</a></li>
- <li><a href="/hyves-org/openstack-overlay/blame/master/sys-cluster/swift/files/swift-storage-server.confd" class="minibutton grouped-button bigger lighter">Blame</a></li>
- <li><a href="/hyves-org/openstack-overlay/commits/master/sys-cluster/swift/files/swift-storage-server.confd" class="minibutton grouped-button bigger lighter" rel="nofollow">History</a></li>
- </ul>
- </div>
- <div class="data type-text">
- <table cellpadding="0" cellspacing="0" class="lines">
- <tr>
- <td>
- <pre class="line_numbers"><span id="L1" rel="#L1">1</span>
-<span id="L2" rel="#L2">2</span>
-<span id="L3" rel="#L3">3</span>
-<span id="L4" rel="#L4">4</span>
-<span id="L5" rel="#L5">5</span>
-</pre>
- </td>
- <td width="100%">
- <div class="highlight"><pre><div class='line' id='LC1'>SERVERS=&quot;account container object&quot;</div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'>ACCOUNTSERVICE=&quot;server replicator auditor&quot;</div><div class='line' id='LC4'>CONTAINERSERVICE=&quot;server replicator updater auditor&quot;</div><div class='line' id='LC5'>OBJECTSERVICE=&quot;server replicator updater auditor&quot;</div></pre></div>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
- </div>
- </div>
-
- <a href="#jump-to-line" rel="facebox" data-hotkey="l" class="js-jump-to-line" style="display:none">Jump to Line</a>
- <div id="jump-to-line" style="display:none">
- <h2>Jump to Line</h2>
- <form accept-charset="UTF-8" class="js-jump-to-line-form">
- <input class="textfield js-jump-to-line-field" type="text">
- <div class="full-button">
- <button type="submit" class="classy">
- Go
- </button>
- </div>
- </form>
- </div>
-
- </div>
-</div>
-
-<div id="js-frame-loading-template" class="frame frame-loading large-loading-area" style="display:none;">
- <img class="js-frame-loading-spinner" src="https://a248.e.akamai.net/assets.github.com/images/spinners/octocat-spinner-128.gif?1347543527" height="64" width="64">
-</div>
-
-
- </div>
- </div>
- <div class="context-overlay"></div>
- </div>
-
- <div id="footer-push"></div><!-- hack for sticky footer -->
- </div><!-- end of wrapper - hack for sticky footer -->
-
- <!-- footer -->
- <div id="footer">
- <div class="container clearfix">
-
- <dl class="footer_nav">
- <dt>GitHub</dt>
- <dd><a href="https://github.com/about">About us</a></dd>
- <dd><a href="https://github.com/blog">Blog</a></dd>
- <dd><a href="https://github.com/contact">Contact &amp; support</a></dd>
- <dd><a href="http://enterprise.github.com/">GitHub Enterprise</a></dd>
- <dd><a href="http://status.github.com/">Site status</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Applications</dt>
- <dd><a href="http://mac.github.com/">GitHub for Mac</a></dd>
- <dd><a href="http://windows.github.com/">GitHub for Windows</a></dd>
- <dd><a href="http://eclipse.github.com/">GitHub for Eclipse</a></dd>
- <dd><a href="http://mobile.github.com/">GitHub mobile apps</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Services</dt>
- <dd><a href="http://get.gaug.es/">Gauges: Web analytics</a></dd>
- <dd><a href="http://speakerdeck.com">Speaker Deck: Presentations</a></dd>
- <dd><a href="https://gist.github.com">Gist: Code snippets</a></dd>
- <dd><a href="http://jobs.github.com/">Job board</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>Documentation</dt>
- <dd><a href="http://help.github.com/">GitHub Help</a></dd>
- <dd><a href="http://developer.github.com/">Developer API</a></dd>
- <dd><a href="http://github.github.com/github-flavored-markdown/">GitHub Flavored Markdown</a></dd>
- <dd><a href="http://pages.github.com/">GitHub Pages</a></dd>
- </dl>
-
- <dl class="footer_nav">
- <dt>More</dt>
- <dd><a href="http://training.github.com/">Training</a></dd>
- <dd><a href="https://github.com/edu">Students &amp; teachers</a></dd>
- <dd><a href="http://shop.github.com">The Shop</a></dd>
- <dd><a href="/plans">Plans &amp; pricing</a></dd>
- <dd><a href="http://octodex.github.com/">The Octodex</a></dd>
- </dl>
-
- <hr class="footer-divider">
-
-
- <p class="right">&copy; 2012 <span title="0.04317s from fe2.rs.github.com">GitHub</span> Inc. All rights reserved.</p>
- <a class="left" href="https://github.com/">
- <span class="mega-icon mega-icon-invertocat"></span>
- </a>
- <ul id="legal">
- <li><a href="https://github.com/site/terms">Terms of Service</a></li>
- <li><a href="https://github.com/site/privacy">Privacy</a></li>
- <li><a href="https://github.com/security">Security</a></li>
- </ul>
-
- </div><!-- /.container -->
-
-</div><!-- /.#footer -->
-
-
-
-
-<div id="keyboard_shortcuts_pane" class="instapaper_ignore readability-extra" style="display:none">
- <h2>Keyboard Shortcuts <small><a href="#" class="js-see-all-keyboard-shortcuts">(see all)</a></small></h2>
-
- <div class="columns threecols">
- <div class="column first">
- <h3>Site wide shortcuts</h3>
- <dl class="keyboard-mappings">
- <dt>s</dt>
- <dd>Focus command bar</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>?</dt>
- <dd>Bring up this help dialog</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column middle" style='display:none'>
- <h3>Commit list</h3>
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>c <em>or</em> o <em>or</em> enter</dt>
- <dd>Open commit</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>y</dt>
- <dd>Expand URL to its canonical form</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column last js-hidden-pane" style='display:none'>
- <h3>Pull request list</h3>
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> shift p</dt>
- <dd>Preview comment</dd>
- </dl>
- </div><!-- /.columns.last -->
-
- </div><!-- /.columns.equacols -->
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Issues</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>x</dt>
- <dd>Toggle selection</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> shift p</dt>
- <dd>Preview comment</dd>
- </dl>
- </div><!-- /.column.first -->
- <div class="column last">
- <dl class="keyboard-mappings">
- <dt>c</dt>
- <dd>Create issue</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>l</dt>
- <dd>Create label</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>i</dt>
- <dd>Back to inbox</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>u</dt>
- <dd>Back to issues</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>/</dt>
- <dd>Focus issues search</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Issues Dashboard</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open issue</dd>
- </dl>
- </div><!-- /.column.first -->
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
-
- <h3>Network Graph</h3>
- <div class="columns equacols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt><span class="badmono">←</span> <em>or</em> h</dt>
- <dd>Scroll left</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">→</span> <em>or</em> l</dt>
- <dd>Scroll right</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">↑</span> <em>or</em> k</dt>
- <dd>Scroll up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt><span class="badmono">↓</span> <em>or</em> j</dt>
- <dd>Scroll down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>t</dt>
- <dd>Toggle visibility of head labels</dd>
- </dl>
- </div><!-- /.column.first -->
- <div class="column last">
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">←</span> <em>or</em> shift h</dt>
- <dd>Scroll all the way left</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">→</span> <em>or</em> shift l</dt>
- <dd>Scroll all the way right</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">↑</span> <em>or</em> shift k</dt>
- <dd>Scroll all the way up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift <span class="badmono">↓</span> <em>or</em> shift j</dt>
- <dd>Scroll all the way down</dd>
- </dl>
- </div><!-- /.column.last -->
- </div>
- </div>
-
- <div class="js-hidden-pane" >
- <div class="rule"></div>
- <div class="columns threecols">
- <div class="column first js-hidden-pane" >
- <h3>Source Code Browsing</h3>
- <dl class="keyboard-mappings">
- <dt>t</dt>
- <dd>Activates the file finder</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>l</dt>
- <dd>Jump to line</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>w</dt>
- <dd>Switch branch/tag</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>y</dt>
- <dd>Expand URL to its canonical form</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
- <div class="columns threecols">
- <div class="column first">
- <h3>Browsing Commits</h3>
- <dl class="keyboard-mappings">
- <dt><span class="platform-mac">⌘</span><span class="platform-other">ctrl</span> <em>+</em> enter</dt>
- <dd>Submit comment</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>escape</dt>
- <dd>Close form</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>p</dt>
- <dd>Parent commit</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o</dt>
- <dd>Other parent commit</dd>
- </dl>
- </div>
- </div>
- </div>
-
- <div class="js-hidden-pane" style='display:none'>
- <div class="rule"></div>
- <h3>Notifications</h3>
-
- <div class="columns threecols">
- <div class="column first">
- <dl class="keyboard-mappings">
- <dt>j</dt>
- <dd>Move selection down</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>k</dt>
- <dd>Move selection up</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>o <em>or</em> enter</dt>
- <dd>Open notification</dd>
- </dl>
- </div><!-- /.column.first -->
-
- <div class="column second">
- <dl class="keyboard-mappings">
- <dt>e <em>or</em> shift i <em>or</em> y</dt>
- <dd>Mark as read</dd>
- </dl>
- <dl class="keyboard-mappings">
- <dt>shift m</dt>
- <dd>Mute thread</dd>
- </dl>
- </div><!-- /.column.first -->
- </div>
- </div>
-
-</div>
-
- <div id="markdown-help" class="instapaper_ignore readability-extra">
- <h2>Markdown Cheat Sheet</h2>
-
- <div class="cheatsheet-content">
-
- <div class="mod">
- <div class="col">
- <h3>Format Text</h3>
- <p>Headers</p>
- <pre>
-# This is an &lt;h1&gt; tag
-## This is an &lt;h2&gt; tag
-###### This is an &lt;h6&gt; tag</pre>
- <p>Text styles</p>
- <pre>
-*This text will be italic*
-_This will also be italic_
-**This text will be bold**
-__This will also be bold__
-
-*You **can** combine them*
-</pre>
- </div>
- <div class="col">
- <h3>Lists</h3>
- <p>Unordered</p>
- <pre>
-* Item 1
-* Item 2
- * Item 2a
- * Item 2b</pre>
- <p>Ordered</p>
- <pre>
-1. Item 1
-2. Item 2
-3. Item 3
- * Item 3a
- * Item 3b</pre>
- </div>
- <div class="col">
- <h3>Miscellaneous</h3>
- <p>Images</p>
- <pre>
-![GitHub Logo](/images/logo.png)
-Format: ![Alt Text](url)
-</pre>
- <p>Links</p>
- <pre>
-http://github.com - automatic!
-[GitHub](http://github.com)</pre>
-<p>Blockquotes</p>
- <pre>
-As Kanye West said:
-
-> We're living the future so
-> the present is our past.
-</pre>
- </div>
- </div>
- <div class="rule"></div>
-
- <h3>Code Examples in Markdown</h3>
- <div class="col">
- <p>Syntax highlighting with <a href="http://github.github.com/github-flavored-markdown/" title="GitHub Flavored Markdown" target="_blank">GFM</a></p>
- <pre>
-```javascript
-function fancyAlert(arg) {
- if(arg) {
- $.facebox({div:'#foo'})
- }
-}
-```</pre>
- </div>
- <div class="col">
- <p>Or, indent your code 4 spaces</p>
- <pre>
-Here is a Python code example
-without syntax highlighting:
-
- def foo:
- if not bar:
- return true</pre>
- </div>
- <div class="col">
- <p>Inline code for comments</p>
- <pre>
-I think you should use an
-`&lt;addr&gt;` element here instead.</pre>
- </div>
- </div>
-
- </div>
-</div>
-
-
- <div id="ajax-error-message" class="flash flash-error">
- <span class="mini-icon mini-icon-exclamation"></span>
- Something went wrong with that request. Please try again.
- <a href="#" class="mini-icon mini-icon-remove-close ajax-error-dismiss"></a>
- </div>
-
-
-
- <span id='server_response_time' data-time='0.04438' data-host='fe2'></span>
-
- </body>
-</html>
-
diff --git a/sys-cluster/swift/files/swift-storage-server.initd b/sys-cluster/swift/files/swift-storage-server.initd
deleted file mode 100644
index 58d1251..0000000
--- a/sys-cluster/swift/files/swift-storage-server.initd
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-#
-# Author: Cor Cornelisse <corcornelisse@gmail.com>
-
-depend() {
- need net
-}
-
-BASENAME=$(echo $SVCNAME | cut -d '-' -f 1)
-
-checkconfig() {
- if [ ! -r /etc/${BASENAME}/${BASENAME}.conf ]; then
- eerror "Missing required config file: /etc/${BASENAME}/${BASENAME}.conf"
- return 1
- fi
- for server in ${SERVERS}; do
- if [ ! -r /etc/${BASENAME}/${server}-server.conf ]; then
- eerror "Missing required config file: /etc/${BASENAME}/${SERVER}-server.conf"
- return 1
- fi
- done
- return 0
-}
-
-start() {
- checkconfig || return $?
-
- einfo "Starting all ${BASENAME} services:"
-
- for server in ${SERVERS}; do
- for service in $(eval "echo \$${server^^}SERVICE"); do
- ebegin "Starting $server-$service"
- start-stop-daemon --start --pidfile \
- "/var/run/${BASENAME}/$server-$service.pid" \
- --exec /usr/bin/${BASENAME}-init \
- -- $server-$service start
- eend $? "Failed to start $server-$service"
- done
- done
-}
-
-stop() {
- checkconfig || return $?
-
- einfo "Stopping all ${BASENAME} services:"
-
- for server in ${SERVERS}; do
- for service in $(eval "echo \$${server^^}SERVICE"); do
- ebegin "Stopping $server-$service"
- start-stop-daemon --stop --pidfile \
- "/var/run/${BASENAME}/$server-$service.pid" \
- --exec /usr/bin/${BASENAME}-init \
- -- $server-$service stop
- eend $? "Failed to stop $server-$service"
- done
- done
-}
diff --git a/sys-cluster/swift/swift-1.7.4.ebuild b/sys-cluster/swift/swift-1.7.4.ebuild
index 73a6131..78c98b0 100644
--- a/sys-cluster/swift/swift-1.7.4.ebuild
+++ b/sys-cluster/swift/swift-1.7.4.ebuild
@@ -2,13 +2,11 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=4
+EAPI=5
+RESTRICT="test"
+PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.*"
-
-inherit distutils eutils linux-info
+inherit distutils-r1 eutils linux-info
DESCRIPTION="Swift is a highly available, distributed, eventually consistent
object/blob store"
@@ -46,14 +44,12 @@ CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
~ZFS"
pkg_setup() {
- python_pkg_setup
enewuser swift
enewgroup swift
}
-src_install() {
- distutils_src_install
-
+python_install() {
+ distutils-r1_python_install
keepdir /etc/swift
insinto /etc/swift
@@ -67,11 +63,10 @@ src_install() {
if use proxy; then
newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
-
newins "etc/proxy-server.conf-sample" "proxy-server.conf"
fi
if use account; then
- newinitd "${FILESDIR}/swift-container.initd" "swift-account"
+ newinitd "${FILESDIR}/swift-account.initd" "swift-account"
newins "etc/account-server.conf-sample" "account-server.conf"
fi
if use container; then
@@ -81,7 +76,7 @@ src_install() {
if use object; then
newinitd "${FILESDIR}/swift-object.initd" "swift-obect"
newins "etc/object-server.conf-sample" "object-server.conf"
- newins "object-expirer.conf-sample" "object-expirer.conf"
+ newins "etc/object-expirer.conf-sample" "object-expirer.conf"
fi
fowners swift:swift "/etc/swift" || die "fowners failed"
@@ -93,45 +88,6 @@ pkg_postinst() {
elog "in /etc/swift/cert.key. These can be created with the following:"
elog " * cd /etc/swift"
elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
-
- if use proxy; then
- elog ""
- elog "The storage rings must be created with the following three"
- elog "commands:"
- elog " * cd /etc/swift"
- elog " * swift-ring-builder account.builder create SIZE REPLICAS HOURS"
- elog " * swift-ring-builder container.builder create SIZE REPLICAS HOURS"
- elog " * swift-ring-builder object.builder create SIZE REPLICAS HOURS"
- elog ""
- elog "The ring building commands take three arguments: SIZE, REPLICAS,"
- elog "HOURS. Where SIZE is used to determine the total storage you"
- elog "expect your swift cluster to use (e.g. 2^SIZE); REPLICAS is the"
- elog "number of replicas to keep in the cluster of any piece of data;"
- elog "and HOURS is the number of hours to restrict moving a partition"
- elog "more than once."
- elog ""
- elog "Add zones to the rings with the following commands:"
- elog " * swift-ring-builder account.builder add zZONE-IP:6002/DEV WEIGHT"
- elog " * swift-ring-builder container.builder add zZONE-IP:6001/DEV WEIGHT"
- elog " * swift-ring-builder object.builder add zZONE-IP:6000/DEV WEIGHT"
- elog ""
- elog "The zone parameters (ZONE, IP, DEV, and WEIGHT) dictate how the"
- elog "zone is utilized in the cluster. ZONE is a unique number for the"
- elog "zone being created. Every grouping of three commands run must"
- elog "increment ZONE. IP is the IP of this proxy node. DEV is the"
- elog "device to use for storage (e.g. sdb1, sda4, etc). WEIGHT is the"
- elog "preference to utilize this device over others. Higher numbers"
- elog "are higher preference and should be reserved for bigger or faster"
- elog "disks."
- elog ""
- elog "Once this has all been done, the rings must be rebalanced:"
- elog " * swift-ring-builder account.builder rebalance"
- elog " * swift-ring-builder container.builder rebalance"
- elog " * swift-ring-builder object.builder rebalance"
- elog ""
- elog "Copy the account.ring.gz, container.ring.gz, and object.ring.gz"
- elog "files to all the proxy and swift nodes"
- fi
}
#src_install()