Ignore:
Timestamp:
Nov 22, 2008, 5:45:43 AM (16 years ago)
Author:
broder
Message:

Use gen-files.sh in invirt-console-server instead of rolling our own

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-console-server/debian/invirt-console-server.init

    r1742 r1747  
    2323PIDFILE=/var/run/$NAME.pid
    2424SCRIPTNAME=/etc/init.d/$NAME
     25GEN_FILES=(/etc/conserver/invirt-hosts.cf
     26    /etc/remctl/acl/invirt-console-server
     27    /etc/issue.net.no_tkt
     28    /etc/nss-pgsql.conf)
    2529
    2630# Exit if the package is not installed
    2731[ -x "$DAEMON" ] || exit 0
    2832
     33. /lib/init/gen-files.sh
    2934. /lib/init/std-init.sh
    30 
    31 gen_config()
    32 {
    33     for i in /etc/conserver/invirt-hosts.cf \
    34              /etc/remctl/acl/invirt-console-server \
    35              /etc/issue.net.no_tkt \
    36              /etc/nss-pgsql.conf \
    37              ; do
    38         mako-render $i.mako > $i
    39     done
    40 }
    4135
    4236#
     
    5751    fi
    5852   
    59     gen_config
     53    gen_files
    6054   
    6155    daemon -r -O daemon.info -E daemon.err -n $NAME -- $DAEMON $DAEMON_ARGS || return 2
Note: See TracChangeset for help on using the changeset viewer.