mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
[Radicale] upstream to Radicale 1.1
* upstream to Radicale 1.1 * new "boot_delay" option (default 10 seconds) to wait for interfaces to come up before hotplug restarts are enabled. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -163,7 +163,22 @@ _set_permission() {
|
||||
}
|
||||
|
||||
boot() {
|
||||
return 0 # will be started by "iface" hotplug events
|
||||
# wait a given time (default 10 seconds) before startup
|
||||
# to wait for interfaces to come up / not using hotplug events during boot
|
||||
_start() {
|
||||
[ $1 -gt 0 ] && sleep $1
|
||||
start
|
||||
}
|
||||
|
||||
local _DELAY
|
||||
_DELAY=$(uci_get "radicale" "system" "boot_delay" "10")
|
||||
_start $_DELAY &
|
||||
return 0
|
||||
}
|
||||
|
||||
shutdown() {
|
||||
rm -f /tmp/radicale.hotplug
|
||||
stop
|
||||
}
|
||||
|
||||
start() {
|
||||
@@ -184,6 +199,7 @@ start() {
|
||||
_set_permission
|
||||
|
||||
radicale --daemon --config=$SYSCFG
|
||||
touch /tmp/radicale.hotplug
|
||||
|
||||
_running & # check if running and syslog
|
||||
|
||||
|
||||
Reference in New Issue
Block a user