#!/bin/sh # # $FreeBSD: head/sysutils/seatd/files/seatd.in 544555 2020-08-09 09:35:20Z jbeich $ # # PROVIDE: seatd # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable this service: # # seatd_enable (bool): Set it to YES to run seatd on startup. # Default: NO # seatd_args (string): Options to pass to seatd. # Default: -g video . /etc/rc.subr name="seatd" rcvar="${name}_enable" load_rc_config "$name" : ${seatd_enable="NO"} : ${seatd_args="-g video"} command="/usr/sbin/daemon" procname="%%PREFIX%%/bin/${name}" pidfile="/var/run/${name}.pid" command_args="-s err -T ${name} -p ${pidfile} ${procname} ${seatd_args}" run_rc_command "$1"