Skip to content

Commit

Permalink
Merge pull request #14 from doktornotor/patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Dec 9, 2015
2 parents e56b6a9 + c4e524a commit bb10daf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sysutils/pfSense-pkg-Cron/files/usr/local/pkg/cron.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ require_once("util.inc");

function cron_sync_package() {
configure_cron();
// Previous package versions were "helpfully" killing cron on uninstall.
// Also, need to make sure cron is running, otherwise the package is useless.
// configure_cron() function in services.inc already does this check on pfSense >=2.2.5
$pfs_version = str_replace(".", "", substr(trim(file_get_contents("/etc/version")), 0, 5));
if ($pfs_version < 225) {
if (!is_process_running("cron")) {
exec("cd /tmp && /usr/sbin/cron -s 2>/dev/null");
}
}
}

function cron_install_command() {
Expand Down

0 comments on commit bb10daf

Please sign in to comment.