mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
18 lines
442 B
Bash
18 lines
442 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="addrwatch-mysql"
|
|
description="addrwatch mysql output module"
|
|
|
|
: ${command_user:="addrwatch"}
|
|
: ${error_logger="logger -t addrwatch-mysql -p daemon.err >/dev/null 2>&1"}
|
|
|
|
command="/usr/bin/addrwatch_mysql"
|
|
command_args="--foreground ${cfgfile:+"--config=$cfgfile"} ${table_prefix:+"--prefix=$table_prefix"}"
|
|
command_background="yes"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need addrwatch
|
|
use mariadb mysql net
|
|
}
|