wok-current diff nagios-nrpe/stuff/nrpe @ rev 18073
Up: cookutils, cookutils-daemon (738): fix SF_MIRROR.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 21 17:44:08 2015 +0300 (2015-05-21) |
parents | f898e6080f92 |
children | 7f188676b59c |
line diff
1.1 --- a/nagios-nrpe/stuff/nrpe Wed Feb 02 01:17:51 2011 +0100 1.2 +++ b/nagios-nrpe/stuff/nrpe Thu May 21 17:44:08 2015 +0300 1.3 @@ -15,6 +15,10 @@ 1.4 OPTIONS="-n -c $CONFIG_FILE -d" 1.5 PIDFILE=/var/run/nagios/nrpe.pid 1.6 1.7 +if [ ! -d /var/run/nagios ]; then 1.8 + mkdir -p /var/run/nagios 1.9 + chown nagios.nagios /var/run/nagios 1.10 +fi 1.11 case "$1" in 1.12 start) 1.13 if active_pidfile $PIDFILE nrpe ; then