From: Tobias Brunner Date: Mon, 24 Aug 2020 14:01:27 +0000 (+0200) Subject: testing: Use pkill to reload rsyslogd config/recreate log files X-Git-Tag: 5.9.1dr1~21^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d1e2c56df24c48c87f72f55ac5bf9c0368bc8a6;p=thirdparty%2Fstrongswan.git testing: Use pkill to reload rsyslogd config/recreate log files The PID location changes with newer Debian releases so it's more portable this way. --- diff --git a/testing/scripts/load-testconfig b/testing/scripts/load-testconfig index 220107ed4a..7deaa1e85f 100755 --- a/testing/scripts/load-testconfig +++ b/testing/scripts/load-testconfig @@ -154,7 +154,7 @@ for host in $IPSECHOSTS do eval HOSTLOGIN=root@\$ipv4_${host} ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/auth.log /var/log/daemon.log; \ - kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1 + pkill -SIGHUP rsyslogd' > /dev/null 2>&1 done @@ -166,5 +166,5 @@ for host in $RADIUSHOSTS do eval HOSTLOGIN=root@\$ipv4_${host} ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/daemon.log /var/log/freeradius/radius.log; \ - kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1 + pkill -SIGHUP rsyslogd' > /dev/null 2>&1 done