#!/bin/sh # # PROVIDE: ntfy # REQUIRE: networking # KEYWORD: . /etc/rc.subr name="ntfy" rcvar="ntfy_enable" ntfy_user="ntfy" ntfy_command="/usr/local/bin/ntfy serve --config /usr/local/etc/ntfy/server.yml" pidfile="/var/run/ntfy/${name}.pid" command="/usr/sbin/daemon" command_args="-P ${pidfile} -r -f ${ntfy_command}" load_rc_config $name : ${ntfy_enable:=no} run_rc_command "$1"