diff options
Diffstat (limited to 'config/nrpe2/nrpe2.inc')
-rw-r--r-- | config/nrpe2/nrpe2.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/nrpe2/nrpe2.inc b/config/nrpe2/nrpe2.inc index b4948799..e9b72a8a 100644 --- a/config/nrpe2/nrpe2.inc +++ b/config/nrpe2/nrpe2.inc @@ -78,8 +78,8 @@ function nrpe2_custom_php_install_command() 'critical' => '200' ) ); - - $fd = fopen('/usr/local/etc/rc.d/nrpe2', 'w'); + unlink_if_exists('/usr/local/etc/rc.d/nrpe2'); + $fd = fopen('/usr/local/etc/rc.d/nrpe2.sh', 'w'); $rc_file = <<<EOD #!/bin/sh # @@ -177,11 +177,11 @@ function nrpe2_custom_php_service() if ($config['installedpackages']['nrpe2']['config'][0]['enabled'] == "on") { - exec("/usr/local/etc/rc.d/nrpe2 restart"); + exec("/usr/local/etc/rc.d/nrpe2.sh restart"); } else { - exec("/usr/local/etc/rc.d/nrpe2 stop"); + exec("/usr/local/etc/rc.d/nrpe2.sh stop"); } } |