diff options
author | jim-p <jim@pingle.org> | 2009-08-20 09:45:05 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-08-20 09:45:05 -0400 |
commit | 28e2c3e9cb60ccd8d0ae5ae5a49e2fdf65058d07 (patch) | |
tree | 96ea033102b716bace75262a8aa4dfd4904b6314 /config/nrpe2 | |
parent | 707d22c25e523b1b87fb0066c876e93a13e57f6c (diff) | |
download | pfsense-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
Diffstat (limited to 'config/nrpe2')
-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"); } } |