gmid/contrib/gmid
la-ninpre caf4e5fb22 add an example rc(8) script for openbsd
copy it to `/etc/rc.d`, write your config in `/etc/gmid.conf` and launch
using `rcctl enable gmid && rcctl start gmid`.
2021-07-13 11:09:13 +02:00

15 lines
236 B
Bash

#!/bin/ksh
#
daemon="/usr/local/bin/gmid"
daemon_flags="-c /etc/gmid.conf"
. /etc/rc.d/rc.subr
rc_pre() {
# use rcexec here since daemon_flags may contain arguments with spaces
${rcexec} "${daemon} -n ${daemon_flags}"
}
rc_cmd $1