File: octavia-agent.octavia-agent-netns.init

package info (click to toggle)
octavia 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,252 kB
  • sloc: python: 99,849; sh: 2,458; pascal: 450; makefile: 116; ruby: 18
file content (40 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
### BEGIN INIT INFO
# Provides:          octavia-agent-netns
# Required-Start:    $remote_fs $syslog $network cloud-config
# Required-Stop:     $remote_fs $syslog $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Creates an encrypted ramfs for Octavia certs
# Description:       Creates an encrypted ramfs for Octavia TLS
#                    certificates and key storage.
### END INIT INFO

# Using the lsb functions to perform the operations.
. /lib/lsb/init-functions
# Process name ( For display )
NAME=octavia-agent-certs-netns

PATH=/sbin:/usr/sbin:/bin:/usr/bin

case $1 in
start)
	log_daemon_msg "Starting Octavia Agent netns (octavia-agent-netns-start)" "$NAME"
	octavia-agent-netns-start
	log_end_msg $?
;;
stop)
	log_daemon_msg "Stopping Octavia Agent netns (octavia-agent-netns-stop)" "$NAME"
	octavia-agent-netns-stop
	log_end_msg $?
;;
restart|force-reload)
	# Restart the daemon.
	$0 stop && sleep 2 && $0 start
;;
*)
	# For invalid arguments, print the usage message.
	echo "Usage: $0 {start|stop|restart|reload|status}"
	exit 2
;;
esac