#!/bin/sh # $FreeBSD: head/audio/pianod2/files/pianod.in 500282 2019-04-28 06:25:50Z jhixson $ # # PROVIDE: pianod # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable this service: # # pianod_enable (bool): Set to NO by default. # Set it to YES to enable pianod. # pianod_args (string): Additional arguments to pianod # . /etc/rc.subr name=pianod rcvar=pianod_enable : ${pianod_enable:="NO"} : ${pianod_args:=""} pidfile=/var/run/pianod.pid procname="%%PREFIX%%/bin/pianod" command="/usr/sbin/daemon" command_args="-f -p ${pidfile} ${procname} ${pianod_args}" load_rc_config ${name} run_rc_command "$1"