# The hosts file to which an entry for the new vserver should be added. Can be
# left empty to not record the new vserver anywhere.
HOSTS_FILE=$VSERVERS_CONF/$HOSTS_VSERVER/vdir/etc/hosts
+# Any extra commands to execute after creating the vserver
+POST_EXEC="sudo vserver $HOSTS_VSERVER exec /usr/bin/killall -HUP dnsmasq"
function usage()
{
exit 1
fi
-HOST="$NAME/`hostname --fqdn`"
+HOST="$NAME.`hostname --fqdn`"
# Set the IP var
if ! find_ip; then
if [ -n "$HOSTS_FILE" ]; then
sudo sh -c "echo '$IP $NAME' >> '$HOSTS_FILE'"
fi
+
+if [ -n "$POST_EXEC" ]; then
+ $POST_EXEC
+fi