1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-26 10:23:48 +01:00

Run runit as /etc/runit/2

This commit is contained in:
Frank Denis 2019-09-22 17:31:17 +02:00
parent cbf9f7c4cc
commit 82b3ae360c

@ -86,9 +86,12 @@ ensure_initialized() {
start() { start() {
ensure_initialized ensure_initialized
echo "Starting DNSCrypt service for provider: " cat "${KEYS_DIR}/provider-info.txt"
cat "${KEYS_DIR}/provider_name" exec /etc/runit/2
exec /sbin/start_runit }
shell() {
exec /bin/bash
} }
usage() { usage() {
@ -105,6 +108,8 @@ Ports 443/udp and 443/tcp have to be publicly exposed.
* provider-info: prints the provider name and provider public key. * provider-info: prints the provider name and provider public key.
* shell: run a shell
This container has a single volume that you might want to securely keep a This container has a single volume that you might want to securely keep a
backup of: /opt/encrypted-dns/etc/keys backup of: /opt/encrypted-dns/etc/keys
EOT EOT
@ -118,5 +123,6 @@ init)
init $* init $*
;; ;;
provider-info) provider_info ;; provider-info) provider_info ;;
shell) shell ;;
*) usage ;; *) usage ;;
esac esac