#!/bin/sh # $Freebsd$ # PROVIDE: monetdbd # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable MonetDB: # # monetdbd_enable="YES" # # This scripts takes one of the following commands: # # start stop restart status # . etc/rc.subr name=monetdbd rcvar=monetdbd_enable command=%%PREFIX%%/bin/monetdbd required_dirs=%%PREFIX%%/monetdb5/dbfarm pidfile=/var/run/monetdb/merovingian.pid start_cmd='su -l monetdb -c "exec %%PREFIX%%/bin/monetdbd start %%PREFIX%%/monetdb5/dbfarm"' start_postcmd="%%PREFIX%%/bin/monetdb start -a" load_rc_config $name run_rc_command "$1"