Thu, 02 Aug 2012 22:07:29 +0200
Correct and update smf(5) logic to accommodate latest vendor version.
Support older and newer platforms by condtionally installing the
manifest to either /var/svc or cacnonical /lib/svc, and avoid usage of
svccfg(1) delete now considered risky. Leverage create_default_instance
smf macro to specify default instance instead of using instance element.
Provide a refresh execution method along with start and stop. Neither
change permissions of manifest nor call the redundant svcadm(1) disable.
1 #!@l_prefix@/bin/openpkg rc
2 ##
3 ## rc.webalizer -- Run-Commands
4 ##
6 %config
7 webalizer_enable="$openpkg_rc_def"
9 %common
10 webalizer_etcdir="@l_prefix@/etc/webalizer"
11 webalizer_webdir="@l_prefix@/web/webalizer"
13 %daily -u @l_musr@
14 rcService webalizer enable yes || exit 0
16 for cfgfile in $webalizer_etcdir/*.conf; do
17 [ ".`grep '^disable' $cfgfile`" != . ] && continue
18 @l_prefix@/bin/webalizer \
19 -Q -c $cfgfile || exit $?
20 done