--- /dev/null
+#!/bin/sh
+
+# PROVIDE: trinketd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable trinketd:
+#
+# trinketd_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=trinketd
+rcvar=trinketd_enable
+
+logfile="/var/log/${name}.log"
+pidfile="/var/run/${name}.pid"
+dbdir="/var/db/trinket"
+procname="/usr/local/sbin/trinketd"
+
+command="${procname}"
+command_args=" -d -p ${pidfile} -P 300 -D ${dbdir} -l ${logfile} -w"
+
+load_rc_config $name
+
+trinketd_enable=${trinketd_enable:-"NO"}
+
+run_rc_command "$1"
+