Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 24923
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Nick Hadaway <nick@capital-internet.net>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: sergey ivanov <seriv@parkheights.dyndns.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
xmail.initd.patch patch for xmail start script to eliminate xargs calls patch sergey ivanov 2003-07-22 09:34 0000 878 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 24923 depends on: Show dependency tree
Bug 24923 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-07-20 15:38 0000
The same thing as in bug 24620: since lines end with <CR>/<LF> I got "bad
interpreter" 
trying to start XMail.

------- Comment #1 From sergey ivanov 2003-07-20 16:40:38 0000 -------
The same about file files/xmail.confd. Should I enter this as a separate bug?
     Sergey

------- Comment #2 From sergey ivanov 2003-07-20 16:43:54 0000 -------
I am sorry, but file files/15xmail also has line ending <CR><LF> and this
prevents XMail server from starting.
    Sergey Ivanov

------- Comment #3 From Nick Hadaway 2003-07-21 00:17:59 0000 -------
xmail-1.16 is now in portage.  files/* have the cr-lf stuff removed.  Also
xmailwizard is now executable.  Please test.

------- Comment #4 From sergey ivanov 2003-07-22 09:34:53 0000 -------
Created an attachment (id=14872) [details]
patch for xmail start script to eliminate xargs calls

------- Comment #5 From sergey ivanov 2003-07-22 09:36:05 0000 -------
Thank you, I have synced to xmail-1.16 and tested. 
/etc/init.d/xmail does not start. It says:
===
# /etc/init.d/xmail start
 * Starting XMail...
xargs: environment is too large for exec
===
I have not managed with xargs, so I propose patch for files/xmail.initd eliminating xargs call

------- Comment #6 From sergey ivanov 2003-07-22 09:43:59 0000 -------
(From update of attachment 14872 [details])
>--- /usr/portage/net-mail/xmail/files/xmail.initd	2003-07-21 03:40:20.000000000 -0400
>+++ /usr/local/portage/net-mail/xmail/files/xmail.initd	2003-07-22 07:52:56.000000000 -0400
>@@ -60,19 +60,17 @@
> 	
> 	if [ ! -c ${CHROOT}/dev/null ]
> 	then
>+		mknod ${CHROOT}/dev/null c `\
> 		ls -Ll /dev/null |\
>-		awk '{print sub(",","",$5) " " $6}' |\
>-		xargs mknod ${CHROOT}/dev/null c
>+		awk '{print sub(",","",$5) " " $6}'`
> 	fi
> 		
> 	chown -R xmail.xmail ${CHROOT}
> 
> 	cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT}
> 
>-	cd ${CHROOT}
>-	ldd var/MailRoot/bin/XMail |\
>-		sed -n 's/[[:blank:]][^>]\+>[[:blank:]]\([[:graph:]]\+\).*/\1 lib\/ /p'\
>-		|xargs -n 2 cp -u
>+	cp `ldd ${CHROOT}${MAIL_ROOT}/bin/XMail |\
>+	sed -n 's/[[:blank:]]*[^=]*=>\([^(]*\).*/\1/p'` ${CHROOT}/lib/
> 	start-stop-daemon --start -c xmail -r ${CHROOT} \
> 		--startas ${MAIL_EXEC} --pidfile=${MAIL_PID} -- \
> 		${MAIL_CMD_LINE} 

------- Comment #7 From sergey ivanov 2003-07-22 12:14:23 0000 -------
Also, please, change order of lines 
	chown -R xmail.xmail ${CHROOT}
and
 	cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT}
in files/xmail.initd, otherwise it takes two or three attempts to chown all necessary for XMail files.

   Sergey

------- Comment #8 From sergey ivanov 2003-07-22 12:20:57 0000 -------
And the last correction from bug 15931, XMail SMTP needs /tmp in it's chrooted
jail, so line 
===
   for subdir in dev lib var/run var/MailRoot
=== 
should be changed to
===
   for subdir in dev lib var/run var/MailRoot tmp
===

      Sergey

------- Comment #9 From sergey ivanov 2003-07-23 15:36:27 0000 -------
Hi, 
this bug has status "resolved" and resolution "fixed" but this is not the real status! /etc/init.d/xmail as it is in portage can not be used! It "runs" but does not "works". It does not start XMail server! 
What should I do? Should I open new bug? 

   Sergey


------- Comment #10 From Nick Hadaway 2003-07-23 15:49:42 0000 -------
reopening bug

------- Comment #11 From Nick Hadaway 2003-07-23 20:09:09 0000 -------
I have updated the initd file with your changes.  I haven't changed the CTRL
port though as there shouldn't be a problem with that port.  Please test.

I also added a warning in postinst so that users are sure to have iptables
enabled in their kernels before they expect things to work.

------- Comment #12 From Nick Hadaway 2003-07-23 20:18:33 0000 -------
xmail-1.16 appears to work good :)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug