#! /bin/sh # PROVIDE: formulate # REQUIRE: networking # KEYWORD: shutdown # # Move built executable to /usr/local/bin, # copy _this_ file to /usr/local/etc/rc.d/, # copy a filled out Rocket.toml to /usr/local/etc/, then # add the following lines to /etc/rc.conf to enable formulate: # #formulate_enable="YES" #formulate_env="ROCKET_CONFIG=/usr/local/etc/Rocket.toml" . /etc/rc.subr name="formulate" rcvar="${name}_enable" config_directory="/usr/local/etc" daemoned_command="/usr/local/bin/formulate" pidfile="/var/run/${name}.pid" command="/usr/sbin/daemon" command_args="-P ${pidfile} -r -S ${daemoned_command}" load_rc_config $name : ${formulate_enable:=NO} #: ${formulate_user:=git_daemon} run_rc_command "$1"