mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-14 07:01:17 +02:00
caf4e5fb22
copy it to `/etc/rc.d`, write your config in `/etc/gmid.conf` and launch using `rcctl enable gmid && rcctl start gmid`.
15 lines
236 B
Bash
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
|