Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cron - Nuke obsolete stuff #14

Merged
merged 1 commit into from
Dec 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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