. /etc/systemtap-params.conf
-# From here, we can access /var/run (or rather what it will link to),
+# From here, we can access /run (or rather what it will link to),
# but because $STAT_PATH is user-configurable, we're not guaranteed that
-# it will be /var/run. Regardless, we can't have access to the final
-# root so we make do and write to /var/run/systemtap anyway. The init
+# it will be /run. Regardless, we can't have access to the final
+# root so we make do and write to /run/systemtap anyway. The init
# script will take care of moving the PID files to the real directory if
# necessary.
PIDDIR=/run/systemtap
# Start these scripts by default. If omitted, all scripts are started.
# DEFAULT_START=
-# Log boot-time staprun stderr to /var/run/systemtap/$script.log
+# Log boot-time staprun stderr to /run/systemtap/$script.log
# LOG_BOOT_ERR=no
# Allow cache only scripts
ALLOW_CACHEONLY=no
-# Log boot-time staprun stderr to /var/run/systemtap/$script.log
+# Log boot-time staprun stderr to /run/systemtap/$script.log
LOG_BOOT_ERR=no
# Optional settings
@sysconfdir@/stap\-server/conf.d/*.conf
Konfigurační soubory pro výchozí stap\-server služby.
.TP
-/var/run/stap\-server/
+/run/stap\-server/
Umístění "status" souborů pro běžící stap\-server služby.
.TP
/var/log/stap\-server/log
.B LOG_BOOT_ERR
Protože "boot-time" skripty se spouštějí dříve než je namountován kořenový
souborový systém, nelze chybový výstup programy staprun posílat do LOG_FILE
-jak je obvyklé. Nicméně log lze přesměrovat do /var/run/systemtap/$script.log
+jak je obvyklé. Nicméně log lze přesměrovat do /run/systemtap/$script.log
nastavením LOG_BOOT_ERR na \fByes\fR. Pokud STAT_PATH je odlišná od výchozí
hodnoty, budou logovací soubory přesunuty na požadované místo dříve, než se
spustí jakýkoliv příkaz služby. Výchozí hodnota je \fBno\fR.
.B LOG_BOOT_ERR
Because boot-time scripts are run before the root filesystem is mounted,
staprun's stderr cannot be logged to the LOG_FILE as usual. However, the log
-can instead be output to /var/run/systemtap/$script.log by setting LOG_BOOT_ERR
+can instead be output to /run/systemtap/$script.log by setting LOG_BOOT_ERR
to \fByes\fR. If STAT_PATH is different from the default, the log files will be
moved there upon executing any of the initscript commands. The default is
\fBno\fR.
-D /var/run/stap-server 0755 stap-server stap-server -
\ No newline at end of file
+D /run/stap-server 0755 stap-server stap-server -
exit 1
fi
-STAPSH_PID=/var/run/stapsh.$(basename $1).pid
-STAPSHD_PID=/var/run/stapshd.$(basename $1).pid
+STAPSH_PID=/run/stapsh.$(basename $1).pid
+STAPSHD_PID=/run/stapshd.$(basename $1).pid
# Make sure the port exists
if [ ! -c "$1" ]; then
count_missing() {
missing=0
for port in $(ports); do
- if [ ! -f "/var/run/stapshd.$(basename $port).pid" ]; then
+ if [ ! -f "/run/stapshd.$(basename $port).pid" ]; then
missing=$(expr $missing + 1)
fi
done
return 0
fi
for port in $prts; do
- pidfile="/var/run/stapshd.$(basename $port).pid"
+ pidfile="/run/stapshd.$(basename $port).pid"
if [ ! -f "$pidfile" ]; then
$STAPSHD "$port" &>/dev/null &
echo $! > $pidfile
# First stops stapshd instances and then the stapsh instances
stop() {
- for pidfile in /var/run/stapshd.$(basename $PORT_BASENAME).*.pid; do
+ for pidfile in /run/stapshd.$(basename $PORT_BASENAME).*.pid; do
if [ -f "$pidfile" ]; then
killproc -p $pidfile stapshd
fi
rm $pidfile
fi
done
- for pidfile in /var/run/stapsh.$(basename $PORT_BASENAME).*.pid; do
+ for pidfile in /run/stapsh.$(basename $PORT_BASENAME).*.pid; do
if [ -f "$pidfile" ]; then
killproc -p $pidfile stapsh
fi
# Only restart if we're running
condrestart() {
- if [ -f "/var/run/stapshd.$(basename $PORT_BASENAME).*.pid" ]; then
+ if [ -f "/run/stapshd.$(basename $PORT_BASENAME).*.pid" ]; then
stop
start
fi
# Stops any stapshd instances that are still running for a non-existent port
# and starts stapshd instances for any port that doesn't have one
reload() {
- for pidfile in /var/run/stapshd.$(basename $PORT_BASENAME).*.pid; do
- chardev=$(basename $pidfile .pid) # trim /var/run and .pid
+ for pidfile in /run/stapshd.$(basename $PORT_BASENAME).*.pid; do
+ chardev=$(basename $pidfile .pid) # trim /run and .pid
chardev=${chardev#stapshd.} # trim leading 'stapshd.'
if [ -f "$pidfile" -a ! -c "/dev/virtio-ports/$chardev" ]; then
killproc -p $pidfile stapshd
fi
fi
done
- for pidfile in /var/run/stapsh.$(basename $PORT_BASENAME).*.pid; do
- chardev=$(basename $pidfile .pid) # trim /var/run and .pid
+ for pidfile in /run/stapsh.$(basename $PORT_BASENAME).*.pid; do
+ chardev=$(basename $pidfile .pid) # trim /run and .pid
chardev=${chardev#stapsh.} # trim leading 'stapsh.'
if [ -f "$pidfile" -a ! -c "/dev/virtio-ports/$chardev" ]; then
killproc -p $pidfile stapsh