mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 06:24:34 +02:00
19 lines
382 B
Bash
19 lines
382 B
Bash
#!/sbin/openrc-run
|
|
|
|
name=apt-swarm
|
|
description="apt-swarm p2p daemon"
|
|
command=/usr/bin/apt-swarm
|
|
command_args="p2p $apt_swarm_args"
|
|
command_user="$apt_swarm_user:$apt_swarm_group"
|
|
command_background=true
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need localmount net
|
|
after firewall
|
|
use dns
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner "$command_user" "$APT_SWARM_DATA_PATH"
|
|
}
|