mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 17:15:44 +00:00
Simpler test for +w access to --log.
This commit is contained in:
@@ -1114,13 +1114,7 @@ if [ "$(basename "$0")" = "pt-stalk" ] \
|
||||
|
||||
if [ "$OPT_DAEMONIZE" ]; then
|
||||
# Check access to the --log file.
|
||||
(
|
||||
set -e
|
||||
touch "$OPT_LOG"
|
||||
)
|
||||
if [ $? -ne 0 ]; then
|
||||
die "Cannot write to --log $OPT_LOG"
|
||||
fi
|
||||
touch "$OPT_LOG" || die "Cannot write to --log $OPT_LOG"
|
||||
|
||||
# The PID file will at first have our (parent) PID.
|
||||
# This is fine for ensuring that only one of us is
|
||||
|
Reference in New Issue
Block a user