[PC-BSD Commits] r21651 - pcbsd-projects/PCDM/rc.d

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 09:00:12 PST 2013


Author: kenmoore
Date: 2013-02-26 17:00:12 +0000 (Tue, 26 Feb 2013)
New Revision: 21651

Modified:
   pcbsd-projects/PCDM/rc.d/pcdm
Log:
Fix the new PCDM rc.d script a bit



Modified: pcbsd-projects/PCDM/rc.d/pcdm
===================================================================
--- pcbsd-projects/PCDM/rc.d/pcdm	2013-02-26 16:01:20 UTC (rev 21650)
+++ pcbsd-projects/PCDM/rc.d/pcdm	2013-02-26 17:00:12 UTC (rev 21651)
@@ -53,10 +53,14 @@
 command="/usr/local/bin/PCDM-session"
 pidfile="/var/run/${name}.pid"
 procname="/usr/local/bin/PCDM-session"
-start_cmd="pcdm_start"
+start_cmd="${name}_start"
 
+load_rc_config ${name}
+: ${pcdm_enable:=no}
+
 pcdm_start()
 {
+    echo "Checking whether to start ${name}."
     if ! checkyesno pcdm_enable ; then
 	return 0
     fi
@@ -105,11 +109,9 @@
        setup_firstboot
     fi
 
-    #LANG=${gdm_lang} ${command} ${gdm_flags} 
-    LANG=
+    LANG=${pcdm_lang} ${command} ${pcdm_flags} 
     ) &
 
 }
 
-load_rc_config ${name}
 run_rc_command "$1"



More information about the Commits mailing list