blob: 8a780d3bb82458dc47f9290fa69aa212b14866fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
# 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"
|