aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-08-20 09:45:05 -0400
committerjim-p <jim@pingle.org>2009-08-20 09:45:05 -0400
commit28e2c3e9cb60ccd8d0ae5ae5a49e2fdf65058d07 (patch)
tree96ea033102b716bace75262a8aa4dfd4904b6314
parent707d22c25e523b1b87fb0066c876e93a13e57f6c (diff)
downloadpfsense-packages-28e2c3e9cb60ccd8d0ae5ae5a49e2fdf65058d07.tar.gz
pfsense-packages-28e2c3e9cb60ccd8d0ae5ae5a49e2fdf65058d07.tar.bz2
pfsense-packages-28e2c3e9cb60ccd8d0ae5ae5a49e2fdf65058d07.zip
Rename /usr/local/etc/rc.d/nrpe to nrpe.sh, as it wasn't starting at boot.
Reported by a user on IRC
-rw-r--r--config/nrpe2/nrpe2.inc8
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");
}
}