blob: 211196bcb4e0d5476f09cada1b618f84d51658dd (
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
|
#!/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"
|