Thu, 04 Oct 2012 20:08:55 +0200
Back out changes in 2.17.3:rateup.c disabling unit abbreviation.
Even when properly specifying 'kMG', the weekly, monthly, and yearly
graphs would not include abbreviated (with kMG postfix) values but
instead a very long figure such as '12000000.0 k' in the short legend.
The daily graphs don't suffer this problem, more research is needed.
1 #!@l_prefix@/bin/openpkg rc
2 ##
3 ## rc.davical -- Run-Commands
4 ##
6 %config
7 davical_enable="$openpkg_rc_def"
9 %status -u @l_susr@ -o
10 davical_usable="no"
11 davical_active="no"
12 @l_prefix@/sbin/apache -t \
13 -f @l_prefix@/etc/davical/davical-apache.conf 2>/dev/null && \
14 davical_usable="yes"
15 [ -f @l_prefix@/var/davical/run/apache.pid ] && \
16 kill -0 `cat @l_prefix@/var/davical/run/apache.pid` && \
17 davical_active="yes"
18 echo "davical_enable=\"$davical_enable\""
19 echo "davical_usable=\"$davical_usable\""
20 echo "davical_active=\"$davical_active\""
22 %start -u @l_susr@
23 rcService davical enable yes || exit 0
24 rcService davical active yes && exit 0
25 @l_prefix@/sbin/apache @with_ssl@ \
26 -f @l_prefix@/etc/davical/davical-apache.conf
28 %stop -u @l_susr@
29 rcService davical enable yes || exit 0
30 rcService davical active no && exit 0
31 [ -f @l_prefix@/var/davical/run/apache.pid ] && \
32 kill -TERM `cat @l_prefix@/var/davical/run/apache.pid`
33 sleep 2
35 %restart -u @l_susr@
36 rcService davical enable yes || exit 0
37 rcService davical active no && exit 0
38 rc davical stop start