mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 16:50:29 -04:00
- update to 1.3.0 - add fix for CVE-2015-5313 - improve sample file renaming to do that by moving files in post-install rather than patching Makefiles - add an rc script for the new virtlogd daemon. It is required for the qemu driver if you have stdio_handler = "logd" in qemu.conf (default) Security: CVE-2015-5313
31 lines
536 B
Bash
31 lines
536 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: virlogd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following line to /etc/rc.conf[.local] to enable virtlogd.
|
|
#
|
|
# virtlogd_enable (bool): Set to 'YES' to enable
|
|
# Default: NO
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=virtlogd
|
|
rcvar=virtlogd_enable
|
|
|
|
load_rc_config $name
|
|
|
|
command=%%PREFIX%%/sbin/virtlogd
|
|
pidfile=/var/run/${name}.pid
|
|
|
|
command_args="--daemon --pid-file=${pidfile}"
|
|
|
|
: ${virtlogd_enable:="NO"}
|
|
|
|
PATH="${PATH}:/usr/local/sbin:/usr/local/bin"
|
|
|
|
run_rc_command "$1"
|