ports/x11/lightdm/files/lightdm.in
2021-04-06 16:31:13 +02:00

28 lines
541 B
Bash

#!/bin/sh
# PROVIDE: lightdm
# REQUIRE: LOGIN cleanvar moused syscons dbus
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable the LightDM:
#
# lightdm_enable="YES"
#
. /etc/rc.subr
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
name="lightdm"
rcvar=lightdm_enable
load_rc_config ${name}
: ${lightdm_enable:="NO"}
command="/usr/sbin/daemon"
procname="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
command_args="-f ${procname} --pid-file=${pidfile}"
run_rc_command "$1"