The attached patch to the rc.uucp startup file allows the uucpd program to
start properly.  The operative change was adding ``--'' before the uucico
in the uucpd startup routine.  Uucpd was failing with an invalid option
``-l'' without that.

The other changes are mainly cosmetic, and an aid to debugging.  I added a
couple of comments to help people editing the rc.conf file, and append the
stderr of startup to the debugging file to make it a bit easier to figure
out what's happening if there are problems.

This patch is from the release 1.3 tree, but should be applicable to
current as well (hopefully).

Bill
--
INTERNET:  [EMAIL PROTECTED]   Bill Campbell; Celestial Software LLC
UUCP:              camco!bill   PO Box 820; 6641 E. Mercer Way
FAX:           (206) 232-9186   Mercer Island, WA 98040-0820; (206) 236-1676
http://www.celestial.com/

"I do not feel obliged to believe that the same God who has endowed us
with sense, reason, and intellect has intended us to forego their use."
                                -- Galileo Galilei
--- rc.uucp.orig        2003-09-03 17:26:07.000000000 -0700
+++ rc.uucp     2003-09-03 17:31:21.000000000 -0700
@@ -6,6 +6,7 @@
 %config
     uucp_enable="$openpkg_rc_def"
     uucp_flags="-l"
+    # set uucp_bind="" in %{l_prefix}/rc.conf to activate
     uucp_bind="127.0.0.1"
     uucp_port="540"
     uucp_log_prolog="true"
@@ -13,6 +14,7 @@
     uucp_log_numfiles="10"
     uucp_log_minsize="1M"
     uucp_log_complevel="9"
+    [EMAIL PROTECTED]@/var/uucp/log/uucp.debug
 
 %common
     uucp_pidfile="@l_prefix@/var/uucp/run/uucpd.pid"
@@ -21,13 +23,14 @@
     }
     uucp_start () {
         ( @l_prefix@/sbin/uucpd ${uucp_bind}${uucp_bind:+:}${uucp_port:-uucp} \
-          @l_prefix@/sbin/uucico ${uucp_flags} \
-          </dev/null >/dev/null 2>&1 &
+          -- @l_prefix@/sbin/uucico ${uucp_flags} \
+          </dev/null >>$uucp_log_debuglog 2>&1 &
           echo "$!" >$uucp_pidfile
-        ) </dev/null >/dev/null 2>&1
+        ) </dev/null >>$uucp_log_debuglog 2>&1
     }
 
 %status -u @l_susr@ -o
+    # set uucp_usable="yes" in %{l_prefix}/etc/rc.conf
     uucp_usable="unknown"
     uucp_active="no"
     rcService uucp enable yes && \

Reply via email to