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
9c88e641
Commit
9c88e641
authored
May 09, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: always use reload except for deferred startup
PR:
https://forum.opnsense.org/index.php?topic=5140.0
parent
32a8adb7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
plist
plist
+1
-0
system.inc
src/etc/inc/system.inc
+5
-3
rc
src/etc/rc
+0
-4
rc.bootup
src/etc/rc.bootup
+1
-1
90-cron.start
src/etc/rc.syshook.d/90-cron.start
+3
-0
index.volt
src/opnsense/mvc/app/views/OPNsense/Cron/index.volt
+1
-1
No files found.
plist
View file @
9c88e641
...
...
@@ -135,6 +135,7 @@
/usr/local/etc/rc.syshook.d/20-freebsd.start
/usr/local/etc/rc.syshook.d/20-freebsd.stop
/usr/local/etc/rc.syshook.d/90-carp.start
/usr/local/etc/rc.syshook.d/90-cron.start
/usr/local/etc/rc.syshook.d/95-beep.start
/usr/local/etc/rc.update_alias_url_data
/usr/local/etc/rc.update_bogons
...
...
src/etc/inc/system.inc
View file @
9c88e641
...
...
@@ -1165,7 +1165,7 @@ function system_devd_configure($verbose = false)
}
}
function
system_cron_configure
(
$verbose
=
false
)
function
system_cron_configure
(
$verbose
=
false
,
$defer
=
false
)
{
global
$config
;
...
...
@@ -1251,7 +1251,6 @@ function system_cron_configure($verbose = false)
}
$crontab_contents
=
"# DO NOT EDIT THIS FILE -- OPNsense auto-generated file
\n
"
;
$crontab_contents
.=
"# Please use /etc/crontab for your overrides instead.
\n
"
;
$crontab_contents
.=
"SHELL=/bin/sh
\n
"
;
$crontab_contents
.=
"PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
\n
"
;
$crontab_contents
.=
"#minute
\t
hour
\t
mday
\t
month
\t
wday
\t
command
\n
"
;
...
...
@@ -1266,7 +1265,10 @@ function system_cron_configure($verbose = false)
}
file_put_contents
(
'/var/cron/tabs/root'
,
$crontab_contents
);
killbypid
(
'/var/run/cron.pid'
,
'HUP'
);
if
(
!
$defer
)
{
configd_run
(
'cron restart'
);
}
if
(
$verbose
)
{
echo
"done.
\n
"
;
...
...
src/etc/rc
View file @
9c88e641
...
...
@@ -255,10 +255,6 @@ rm /var/run/booting
# Execute the normal syshook / plugin commands
/usr/local/etc/rc.syshook start
echo
-n
"Starting CRON..."
cd
/tmp
&&
/usr/sbin/cron
-s
2> /dev/null
echo
"done."
/usr/local/etc/rc.initial.banner
exit
0
src/etc/rc.bootup
View file @
9c88e641
...
...
@@ -100,7 +100,7 @@ filter_configure_sync(true);
filter_pflog_start
(
true
);
setup_gateways_monitor
(
true
);
plugins_configure
(
'earlybootup'
,
true
);
system_cron_configure
(
true
);
system_cron_configure
(
true
,
true
);
system_routing_configure
(
''
,
true
);
plugins_configure
(
'dns'
,
true
);
...
...
src/etc/rc.syshook.d/90-cron.start
0 → 100755
View file @
9c88e641
#!/bin/sh
echo
-n
"Starting Cron: "
configctl cron restart
src/opnsense/mvc/app/views/OPNsense/Cron/index.volt
View file @
9c88e641
...
...
@@ -149,7 +149,7 @@ POSSIBILITY OF SUCH DAMAGE.
</div>
<div class="col-md-12">
<hr/>
<button class="btn btn-primary" id="reconfigureAct" type="button"><b>{{ lang._('Apply') }}</b><i id="reconfigureAct_progress" class=""></i></button>
<button class="btn btn-primary" id="reconfigureAct" type="button"><b>{{ lang._('Apply') }}</b>
<i id="reconfigureAct_progress" class=""></i></button>
<br/><br/>
</div>
</div>
...
...
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