mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 06:30:29 -04:00
28 lines
541 B
Bash
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"
|