blob: 2bf3e62b45f5999ccd7fb8dd3db099b2424b7786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/sbin/openrc-run
# Copyright 1999-2026 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
VINYLNCSA_PID=${VINYLNCSA_PID:-/run/${SVCNAME}.pid}
command="${VINYLNCSA:-/usr/bin/vinylncsa}"
command_args="-D -P ${VINYLNCSA_PID} ${VINYLNCSA_OPTS}"
pidfile="${VINYLNCSA_PID}"
extra_started_commands="reload rotate flush"
description_rotate="Rotate the log file"
description_flush="Flush any outstanding transactions"
rotate() {
ebegin "Rotating log file"
start-stop-daemon -p ${VINYLNCSA_PID} -s SIGHUP
eend $?
}
flush() {
ebegin "Flushing any outstanding transactions"
start-stop-daemon -p ${VINYLNCSA_PID} -s SIGUSR1
eend $?
}
reload() {
flush
rotate
}
|