Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ae7f0008
Commit
ae7f0008
authored
Jun 06, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cron: migrate away from minicron usage
parent
9f7e1b89
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
Makefile
Makefile
+0
-1
services.inc
src/etc/inc/services.inc
+13
-5
rc
src/etc/rc
+0
-9
No files found.
Makefile
View file @
ae7f0008
...
...
@@ -85,7 +85,6 @@ CORE_DEPENDS?= apinger \
isc-dhcp43-relay
\
isc-dhcp43-server
\
lighttpd
\
minicron
\
miniupnpd
\
mpd5
\
ngattach
\
...
...
src/etc/inc/services.inc
View file @
ae7f0008
...
...
@@ -2371,11 +2371,19 @@ function configure_cron()
$autocron
=
array
();
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 webConfiguratorlockout'
,
'*/60'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 sshlockout'
,
'*/60'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 virusprot'
,
'*/60'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.update_urltables'
,
'30'
,
'12'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.dyndns.update'
,
'1'
,
'1'
);
/* hourly */
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 webConfiguratorlockout'
,
'1'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 sshlockout'
,
'2'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/expiretable -v -t 3600 virusprot'
,
'3'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.expireaccounts'
,
'5'
);
/* daily */
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.update_alias_url_data'
,
'1'
,
'1'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.update_urltables'
,
'5'
,
'1'
);
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.dyndns.update'
,
'11'
,
'1'
);
/* every now and then */
$autocron
[]
=
generate_cron_job
(
'/usr/local/sbin/ping_hosts.sh'
,
'*/4'
);
if
(
!
empty
(
$config
[
'system'
][
'rrdbackup'
]))
{
$autocron
[]
=
generate_cron_job
(
'/usr/local/etc/rc.backup_rrd'
,
'0'
,
'*/'
.
$config
[
'system'
][
'rrdbackup'
]);
...
...
src/etc/rc
View file @
ae7f0008
...
...
@@ -250,15 +250,6 @@ echo "done."
# starting standard rc scripts
/usr/local/etc/rc.opnsense start
# Start ping handler every 240 seconds
/usr/local/bin/minicron 240 /var/run/ping_hosts.pid /usr/local/sbin/ping_hosts.sh
# Start account expire handler every hour
/usr/local/bin/minicron 3600 /var/run/expire_accounts.pid /usr/local/etc/rc.expireaccounts
# Start alias url updater every 24 hours
/usr/local/bin/minicron 86400 /var/run/update_alias_url_data.pid /usr/local/etc/rc.update_alias_url_data
/usr/local/sbin/beep.sh start
/usr/local/etc/rc.initial.banner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment