blob: d8f727ba034c1ca6ad3686b1e9d8fd9c9a6e868c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
config="/etc/${RC_SVCNAME}.conf"
name="IGMPproxy"
pidfile="/run/${RC_SVCNAME}.pid"
command="igmpproxy"
command_args="${IGMPPROXY_OPTS} ${config}"
procname="${RC_SVCNAME}"
start_pre() {
if [ ! -f "${config}" ]; then
eerror "Please create ${config} before starting ${name}!"
return 1
else
return 0
fi
}
|