Project

General

Profile

Download (1.41 KB) Statistics
| Branch: | Tag: | Revision:
1 4bbdd9b0 jim-p
<?php
2
/*
3
 * periodic.inc
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6 8f2f85c3 Luiz Otavio O Souza
 * Copyright (c) 2014-2022 Rubicon Communications, LLC (Netgate)
7 4bbdd9b0 jim-p
 * All rights reserved.
8
 *
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 * http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 */
21
22
require_once("globals.inc");
23
require_once("functions.inc");
24
require_once("pfsense-utils.inc");
25
require_once("notices.inc");
26
27
/* Run daily tasks */
28
function periodic_daily() {
29
30 b5d2d8d8 jim-p
	require_once("certs.inc");
31
	cert_notify_expiring();
32
33 4bbdd9b0 jim-p
	/* Allow packages to define and execute daily tasks */
34
	pkg_call_plugins('plugin_periodic', array('event' => 'daily'));
35
36
}
37
38
/* Run weekly tasks */
39
function periodic_weekly() {
40
41
	/* Allow packages to define and execute weekly tasks */
42
	pkg_call_plugins('plugin_periodic', array('event' => 'weekly'));
43
44
}
45
46
/* Run monthly tasks */
47
function periodic_monthly() {
48
49
	/* Allow packages to define and execute monthly tasks */
50
	pkg_call_plugins('plugin_periodic', array('event' => 'monthly'));
51
52
}
53
54
?>