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>
This commit is contained in:
parent
7f256e257c
commit
1970c21e3b
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@
|
||||||
local fs = require "nixio.fs"
|
local fs = require "nixio.fs"
|
||||||
local cronfile = "/etc/crontabs/root"
|
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 = f:field(TextValue, "crons")
|
||||||
t.rmempty = true
|
t.rmempty = true
|
||||||
|
|
Loading…
Reference in a new issue