mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 03:16:28 -04:00
- submitter becomes maintainer - A huge list of changes since April 2013 can be found here: https://github.com/ZoneMinder/ZoneMinder/releases/ PR: 210007 Submitted by: bsd@abinet.ru
38 lines
656 B
Bash
38 lines
656 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: zoneminder
|
|
# REQUIRE: LOGIN mysql
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# zoneminder_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable zoneminder.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=zoneminder
|
|
rcvar=zoneminder_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${zoneminder_enable="NO"}
|
|
|
|
command=%%PREFIX%%/bin/zmpkg.pl
|
|
pidfile=/var/run/zm/zm.pid
|
|
extra_commands="logrot version"
|
|
|
|
start_cmd="zm_cmd"
|
|
stop_cmd="zm_cmd"
|
|
status_cmd="zm_cmd"
|
|
logrot_cmd="zm_cmd"
|
|
version_cmd="zm_cmd"
|
|
|
|
zm_cmd() {
|
|
${command} ${rc_arg}
|
|
}
|
|
|
|
run_rc_command "$1"
|