blob: 080f5b15a4c6df16a3a0c96da121d459c8fda126 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/sbin/openrc-run
name="Victoria Metrics"
description="Fast, cost-effective and scalable time series database"
command="/usr/bin/victoria-metrics"
command_args="$victoriametrics_opts"
command_user=victoriametrics:victoriametrics
command_background=yes
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net
after firewall
}
start_pre() {
if [ -n "$victoriametrics_home" ]; then
checkpath -d -o $command_user -m755 "$victoriametrics_home"
fi
}
|