summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
987bd2e)
svn path=/trunk/packages/invirt-console-server/; revision=1747
+invirt-console-server (0.1.2) unstable; urgency=low
+
+ * Use gen-files.sh instead of rolling out own
+
+ -- Evan Broder <broder@mit.edu> Sat, 22 Nov 2008 05:45:25 -0500
+
invirt-console-server (0.1.1) unstable; urgency=low
* Clean up the init script with some ideas from debathena-pyhesiodfs.
invirt-console-server (0.1.1) unstable; urgency=low
* Clean up the init script with some ideas from debathena-pyhesiodfs.
DAEMON_ARGS="-f $MOUNTPOINT"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
DAEMON_ARGS="-f $MOUNTPOINT"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
+GEN_FILES=(/etc/conserver/invirt-hosts.cf
+ /etc/remctl/acl/invirt-console-server
+ /etc/issue.net.no_tkt
+ /etc/nss-pgsql.conf)
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
+. /lib/init/gen-files.sh
-gen_config()
-{
- for i in /etc/conserver/invirt-hosts.cf \
- /etc/remctl/acl/invirt-console-server \
- /etc/issue.net.no_tkt \
- /etc/nss-pgsql.conf \
- ; do
- mako-render $i.mako > $i
- done
-}
-
#
# Function that starts the daemon/service
#
#
# Function that starts the daemon/service
#
daemon -r -O daemon.info -E daemon.err -n $NAME -- $DAEMON $DAEMON_ARGS || return 2
}
daemon -r -O daemon.info -E daemon.err -n $NAME -- $DAEMON $DAEMON_ARGS || return 2
}