mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 03:42:37 +01:00
22 lines
389 B
Bash
22 lines
389 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="otf agent"
|
|
|
|
: ${command_user:="otf:otf"}
|
|
|
|
command="/usr/bin/otf-agent"
|
|
command_args="--token '$(cat $token_file)' $command_args"
|
|
command_background="yes"
|
|
error_log="/var/log/otf-agent.log"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -f --owner "$command_user" --mode 0644 \
|
|
$error_log
|
|
}
|