Skip to content

Commit

Permalink
cron - Nuke obsolete stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
doktornotor committed Dec 8, 2015
1 parent 680991e commit c4e524a
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 c4e524a

Please sign in to comment.