blob: 0a7d427b6b195780db2ed26e9651088efb80d3e9 (
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
32
33
34
|
#!/sbin/openrc-run
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="0x.Tools xcapture"
SAMPLEINTERVAL="1"
LOGDIRPATH="/var/log/xcapture"
ADDITIONALOPTIONS="syscall,wchan,exe,cmdline"
MINUTES="59520"
config_file="/etc/default/xcapture"
if [ -f "${config_file}" ] ; then
. "${config_file}"
fi
command="/usr/bin/xcapture"
command_args="-d ${SAMPLEINTERVAL} -c ${ADDITIONALOPTIONS} -o ${LOGDIRPATH}"
command_background="true"
pidfile="/run/xcapture.pid"
command_user="root"
depend() {
config "${config_file}"
after bootmisc
}
start_pre() {
checkpath -q -d "${LOGDIRPATH}"
}
|