ports/devel/libvirt/files/libvirtd.in
Jason Helfman 763dd97ec9 - update libvirt,py-libvirt,libvirt-glib to 0.1.9
- shift var from ${PREFIX} to /var
- bump shared libs of dep. port

PR:		192441 (based on)
Submitted by:	olevole@olevole.ru
2014-10-29 22:17:55 +00:00

31 lines
537 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: libvirtd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable libvirtd.
#
# libvirtd_enable (bool): Set to 'YES' to enable
# Default: NO
#
. /etc/rc.subr
name=libvirtd
rcvar=libvirtd_enable
load_rc_config $name
command=%%PREFIX%%/sbin/libvirtd
pidfile=/var/run/${name}.pid
command_args="--daemon --pid-file=${pidfile}"
: ${libvirtd_enable:="NO"}
PATH="${PATH}:/usr/local/sbin:/usr/local/bin"
run_rc_command "$1"