[PC-BSD Commits] r17720 - pcbsd/current/overlays/desktop-overlay/usr/local/etc/rc.d

svn at pcbsd.org svn at pcbsd.org
Fri Jul 13 11:09:52 PDT 2012


Author: kris
Date: 2012-07-13 18:09:52 +0000 (Fri, 13 Jul 2012)
New Revision: 17720

Modified:
   pcbsd/current/overlays/desktop-overlay/usr/local/etc/rc.d/pcbsdinit
Log:

Cleanup cups jobs at boot



Modified: pcbsd/current/overlays/desktop-overlay/usr/local/etc/rc.d/pcbsdinit
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/etc/rc.d/pcbsdinit	2012-07-13 16:28:49 UTC (rev 17719)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/etc/rc.d/pcbsdinit	2012-07-13 18:09:52 UTC (rev 17720)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # PROVIDE: pcbsdinit
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON cups
 # KEYWORD: nojail shutdown
 
 . /etc/rc.subr
@@ -23,6 +23,9 @@
 		(/usr/local/share/pcbsd/scripts/first-boot.sh >/dev/null 2>/dev/null ; rm /var/.pcbsd-firstboot)&
 	fi
 
+	# Cleanup cups print jobs
+	/usr/local/bin/cancel -a 2>/dev/null >/dev/null
+
 	# Change Xorg priority
 	( sleep 40; rtprio 31 -`pgrep Xorg` 2>/dev/null)&
 }



More information about the Commits mailing list