aboutsummaryrefslogtreecommitdiff
path: root/net/radicale/files
diff options
context:
space:
mode:
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-05-24 21:34:34 +0200
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-05-24 21:34:34 +0200
commit65fb23d51589b42d9155bab73b0544b5b182a96c (patch)
treee542e632a349c5d03c6271fd2397a59fc79fe955 /net/radicale/files
parentd8362b6d049a1e64b5294078e1e069697ff80df5 (diff)
radicale: fixed hotplug and init script
* fixed hotplug script (not restarting on "ifup") * fixed init script (not stopping in 1 second) * fixed PKG_MAINTAINER string * removing not needed comments in config file Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'net/radicale/files')
-rw-r--r--net/radicale/files/radicale.config2
-rw-r--r--net/radicale/files/radicale.hotplug2
-rwxr-xr-xnet/radicale/files/radicale.init2
3 files changed, 2 insertions, 4 deletions
diff --git a/net/radicale/files/radicale.config b/net/radicale/files/radicale.config
index ea10bc9f4..58148f823 100644
--- a/net/radicale/files/radicale.config
+++ b/net/radicale/files/radicale.config
@@ -71,7 +71,6 @@ config setting 'auth'
# Value: None | htpasswd | IMAP | LDAP | PAM | courier | http | remote_user | custom
# Default: None
# if setting 'htpasswd' the file /etc/radicale/users is used (hardcoded)
-# option type 'htpasswd'
# Htpasswd encryption method
# Value: plain | sha1 | ssha | crypt
@@ -98,7 +97,6 @@ config setting 'rights'
# Value: None | authenticated | owner_only | owner_write | from_file | custom
# Default: None
# if setting 'from_file' the file /etc/radicale/rights is used (hardcoded)
-# option type 'from_file'
# Custom rights handler
# option custom_handler ''
diff --git a/net/radicale/files/radicale.hotplug b/net/radicale/files/radicale.hotplug
index 634ad2efa..3b9141986 100644
--- a/net/radicale/files/radicale.hotplug
+++ b/net/radicale/files/radicale.hotplug
@@ -3,7 +3,7 @@
# only (re-)start on ifup
[ "$ACTION" = "ifup" ] || exit 0
-_PID=$(ps | grep '[p]ython.*[r]adicale' 2>/dev/null | awk '{print \$1}')
+_PID=$(ps | grep '[p]ython.*[r]adicale' 2>/dev/null | awk '{print $1}')
kill -1 $_PID 2>/dev/null
if [ $? -eq 0 ]; then
# only restart if already running
diff --git a/net/radicale/files/radicale.init b/net/radicale/files/radicale.init
index bb35a18a0..991ca5051 100755
--- a/net/radicale/files/radicale.init
+++ b/net/radicale/files/radicale.init
@@ -208,7 +208,7 @@ stop() {
local _PID=$(eval "$PGREP")
[ -z "$_PID" ] && return 0 # not running
kill -15 $_PID 2>/dev/null
- sleep 1 # give time to shutdown
+ sleep 3 # give time to shutdown
local _tmp=$(eval "$PGREP")
if [ -z "$_tmp" ]; then
logger -p user.notice -t "radicale[$_PID]" "Service shutdown successfully"