]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Use pkill to reload rsyslogd config/recreate log files
authorTobias Brunner <tobias@strongswan.org>
Mon, 24 Aug 2020 14:01:27 +0000 (16:01 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 3 Sep 2020 11:34:19 +0000 (13:34 +0200)
The PID location changes with newer Debian releases so it's more
portable this way.

testing/scripts/load-testconfig

index 220107ed4a3a8334566b3c3640afd5d3fbeb4ad1..7deaa1e85f32761aab05a2bd8716ff2b077f4737 100755 (executable)
@@ -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