diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-05-08 15:20:13 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2017-05-08 16:06:06 +0300 |
commit | 97ad2a92863b8333b4c5e71f8d1094272550f677 (patch) | |
tree | 75d9653d458e4878fbb1a0fafc3d50a4d7a43298 | |
parent | 596f47649cbf5b1e6c3c45d20980b7bb545d8fbb (diff) |
luci-mod-admin-full: add advice to restart cron
Cron init script starts the service only if a crontab file
exists. If there is no crontab file at boot and the user
later creates one, he needs to manually restart the service.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 1970c21e3bbd70adc991cf6baf153129a1356c9b)
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/crontab.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/crontab.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/crontab.lua index ea92eb98d..016a6199a 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/crontab.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/crontab.lua @@ -5,7 +5,10 @@ local fs = require "nixio.fs" local cronfile = "/etc/crontabs/root" -f = SimpleForm("crontab", translate("Scheduled Tasks"), translate("This is the system crontab in which scheduled tasks can be defined.")) +f = SimpleForm("crontab", translate("Scheduled Tasks"), + translate("This is the system crontab in which scheduled tasks can be defined.") .. + translate("<br/>Note: you need to manually restart the cron service if the " .. + "crontab file was empty before editing.")) t = f:field(TextValue, "crons") t.rmempty = true |