Commit eaabe7f4 authored by Franco Fichtner's avatar Franco Fichtner

cron: reshuffle; closes #969

Lookie, privilege separation.  ;)
parent e2174e89
...@@ -3,6 +3,7 @@ command:/usr/local/etc/rc.interfaces_wan_configure ...@@ -3,6 +3,7 @@ command:/usr/local/etc/rc.interfaces_wan_configure
parameters:%s parameters:%s
type:script type:script
message:Configuring interface %s message:Configuring interface %s
description:Periodic interface reset
[reload] [reload]
command:/usr/local/etc/rc.reload_interfaces command:/usr/local/etc/rc.reload_interfaces
......
user.cron:/var/cron/tabs/root empty.cron:/var/cron/tabs/root
user.cron:/var/cron/tabs/nobody
# DO NOT EDIT THIS FILE -- OPNsense auto-generated file
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
# This file is empty on purpose, use /etc/crontab for overrides
...@@ -6,7 +6,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ...@@ -6,7 +6,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
{% for job in helpers.toList('OPNsense.cron.jobs.job') %} {% for job in helpers.toList('OPNsense.cron.jobs.job') %}
{% if job.enabled|default('0') == '1' %} {% if job.enabled|default('0') == '1' %}
# Origin/Description: {{job.origin}}/{{job.description}} # Origin/Description: {{job.origin}}/{{job.description}}
{{job.minutes}} {{job.hours}} {{job.days}} {{job.months}} {{job.weekdays}} /usr/local/sbin/configctl {{job.command}} {{job.parameter}} {{job.minutes}} {{job.hours}} {{job.days}} {{job.months}} {{job.weekdays}} /usr/local/sbin/configctl {{job.command}} {{job.parameters}}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment