Commit f2a12f1a authored by Heinz N. Gies's avatar Heinz N. Gies

Make startup file

parent 793e6c11
deploy
deploy/usr/local/sbin/vmadm
......@@ -8,9 +8,7 @@ include pkgng.mk
.PHONY: prepare
prepare:
-rm -r $(STAGE_DIR)
mkdir -p $(STAGE_DIR)/$(INSTALL_DIR)
mkdir -p $(STAGE_DIR)/usr/local/etc
mkdir -p $(STAGE_DIR)/usr/local/vmadm
mkdir -p $(STAGE_DIR)/var/imgadm/images
cp -r ../../target/release/vmadm $(STAGE_DIR)/$(INSTALL_DIR)
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: vmadm
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="vmadm"
rcvar=vmadm_enable
load_rc_config $name
: ${vmadm_enable="NO"}
start_cmd="${name}_start"
stop_cmd="${name}_stop"
vmadm_start()
{
if checkyesno ${rcvar}; then
echo "* starting fifo vmadm... "
/usr/local/sbin/vmadm --startup
fi
}
vmadm_stop()
{
if checkyesno ${rcvar}; then
echo "* stoping fifo vmadm... "
fi
}
run_rc_command "$1"
pool = "zroot/jails"
repo = "http://bsd.project-fifo.net/images"
[networks]
admin = "bridge0"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment