File: swift-proxy.swift-proxy.init.in

package info (click to toggle)
swift 2.35.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,760 kB
  • sloc: python: 281,901; javascript: 1,059; sh: 619; pascal: 295; makefile: 81; xml: 32
file content (29 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh
### BEGIN INIT INFO
# Provides:          swift-proxy
# Required-Start:    $network $local_fs $remote_fs $syslog
# Required-Stop:     $remote_fs
# Should-Start:      ntp
# Should-Stop:       ntp
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Swift proxy server
# Description:       Proxy server for Swift.
### END INIT INFO

DESC="OpenStack Swift proxy server (swift-proxy)"
PROJECT_NAME=swift
NAME="${PROJECT_NAME}-proxy-server"
CONFIG_FILE=/etc/${PROJECT_NAME}/proxy-server.conf
UWSGI_PORT=8080
UWSGI_INI_PATH=/etc/swift/swift-proxy-server-uwsgi.ini
UWSGI_INI_APP=/usr/bin/swift-proxy-server-uwsgi
UWSGI_BIND_CONFIG_FILE=/etc/${PROJECT_NAME}/proxy-server.conf
UWSGI_BIND_CONFIG_SECTION=DEFAULT
UWSGI_BIND_CONFIG_IP_DIRECTIVE=bind_ip
UWSGI_BIND_CONFIG_PORT_DIRECTIVE=bind_port
UWSGI_BIND_CONFIG_WORKERS_DIRECTIVE=workers
CUSTOM_SYSTEMD_UNIT="ConditionFileNotEmpty=/etc/swift/proxy-server.conf
AssertFileNotEmpty=/etc/swift/account.ring.gz
AssertFileNotEmpty=/etc/swift/container.ring.gz
AssertPathExistsGlob=/etc/swift/object*.ring.gz"