Browse Source

Merge pull request #1298 from chris5560/master

radicale: fixed hotplug and init script
lilik-openwrt-22.03
Steven Barth 10 years ago
parent
commit
d2670b43f2
4 changed files with 4 additions and 6 deletions
  1. +2
    -2
      net/radicale/Makefile
  2. +0
    -2
      net/radicale/files/radicale.config
  3. +1
    -1
      net/radicale/files/radicale.hotplug
  4. +1
    -1
      net/radicale/files/radicale.init

+ 2
- 2
net/radicale/Makefile View File

@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=radicale PKG_NAME:=radicale
PKG_VERSION:=0.10 PKG_VERSION:=0.10
PKG_RELEASE:=1
PKG_MAINTAINER:=Christian Schoenebeck <chris5560@web.de>
PKG_RELEASE:=2
PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>
PKG_LICENSE:=GPL-3.0 PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING


+ 0
- 2
net/radicale/files/radicale.config View File

@ -71,7 +71,6 @@ config setting 'auth'
# Value: None | htpasswd | IMAP | LDAP | PAM | courier | http | remote_user | custom # Value: None | htpasswd | IMAP | LDAP | PAM | courier | http | remote_user | custom
# Default: None # Default: None
# if setting 'htpasswd' the file /etc/radicale/users is used (hardcoded) # if setting 'htpasswd' the file /etc/radicale/users is used (hardcoded)
# option type 'htpasswd'
# Htpasswd encryption method # Htpasswd encryption method
# Value: plain | sha1 | ssha | crypt # Value: plain | sha1 | ssha | crypt
@ -98,7 +97,6 @@ config setting 'rights'
# Value: None | authenticated | owner_only | owner_write | from_file | custom # Value: None | authenticated | owner_only | owner_write | from_file | custom
# Default: None # Default: None
# if setting 'from_file' the file /etc/radicale/rights is used (hardcoded) # if setting 'from_file' the file /etc/radicale/rights is used (hardcoded)
# option type 'from_file'
# Custom rights handler # Custom rights handler
# option custom_handler '' # option custom_handler ''


+ 1
- 1
net/radicale/files/radicale.hotplug View File

@ -3,7 +3,7 @@
# only (re-)start on ifup # only (re-)start on ifup
[ "$ACTION" = "ifup" ] || exit 0 [ "$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 kill -1 $_PID 2>/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# only restart if already running # only restart if already running


+ 1
- 1
net/radicale/files/radicale.init View File

@ -208,7 +208,7 @@ stop() {
local _PID=$(eval "$PGREP") local _PID=$(eval "$PGREP")
[ -z "$_PID" ] && return 0 # not running [ -z "$_PID" ] && return 0 # not running
kill -15 $_PID 2>/dev/null kill -15 $_PID 2>/dev/null
sleep 1 # give time to shutdown
sleep 3 # give time to shutdown
local _tmp=$(eval "$PGREP") local _tmp=$(eval "$PGREP")
if [ -z "$_tmp" ]; then if [ -z "$_tmp" ]; then
logger -p user.notice -t "radicale[$_PID]" "Service shutdown successfully" logger -p user.notice -t "radicale[$_PID]" "Service shutdown successfully"


Loading…
Cancel
Save