mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 06:12:14 +01:00
The pounce initscript has been configured for creating multiple instances of pounce because a single instance of pounce can connect to only one IRC network. The calico initscript and conf.d file is needed if pounce creates UNIX domain sockets.
22 lines
596 B
Bash
22 lines
596 B
Bash
#!/sbin/openrc-run
|
|
|
|
: "${calico_user:=pounce}"
|
|
: "${calico_group:=pounce}"
|
|
: "${calico_hostname:=localhost}"
|
|
: "${calico_dir:=/run/$calico_user}"
|
|
|
|
name="calico"
|
|
description="dispatch incoming TLS connections to pounce by SNI"
|
|
command=/usr/bin/calico
|
|
command_args="-H $calico_hostname $calico_dir"
|
|
[ -n "$calico_port" ] && command_args="$command_args -P $calico_port"
|
|
[ -n "$calico_timeout" ] && command_args="$command_args -t $calico_timeout"
|
|
command_background=true
|
|
command_user="${calico_user}:${calico_group}"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
|
|
depend() {
|
|
need localmount net
|
|
use dns
|
|
}
|