Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread DK

On 7/26/06, DK [EMAIL PROTECTED] wrote:

On 7/26/06, DK [EMAIL PROTECTED] wrote:
 On 7/26/06, wiz [EMAIL PROTECTED] wrote:
  On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
 
   apt-get clean
   apt-get update
   apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
  
   should do the trick.

 I got this:


I fixed the init.d links. The problem seams to be this line now:
/etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or directory



I am stuck.
I installed 'lsb-base', I don't know why it wasn't installed at the
first place and how dbmail could have worked with out it up till now.
But installing lsb-base fixed the /etc/init.d/dbmail: line 46:
/lib/lsb/init-functions: No such file or directory error.
Now I have an error with log_daemon_msg.
I don't understand this. What could I have done wrong?


# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
5 not fully installed or removed.
Need to get 0B/104kB of archives.
After unpacking 0B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 60971 files and directories currently installed.)
Preparing to replace dbmail 2.1.7-1 (using .../dbmail_2.1.7-1_i386.deb) ...
/etc/init.d/dbmail: line 157: log_daemon_msg: command not found
invoke-rc.d: initscript dbmail, action stop failed.
dpkg: warning - old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/etc/init.d/dbmail: line 157: log_daemon_msg: command not found
invoke-rc.d: initscript dbmail, action stop failed.
dpkg: error processing /var/cache/apt/archives/dbmail_2.1.7-1_i386.deb
(--unpack):
subprocess new pre-removal script returned error exit status 127
/etc/init.d/dbmail: line 146: log_daemon_msg: command not found
invoke-rc.d: initscript dbmail, action start failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/dbmail_2.1.7-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
safe:/etc/init.d#

--

Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread DK

On 7/26/06, DK [EMAIL PROTECTED] wrote:

On 7/26/06, DK [EMAIL PROTECTED] wrote:
 On 7/26/06, DK [EMAIL PROTECTED] wrote:
  On 7/26/06, wiz [EMAIL PROTECTED] wrote:
   On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
  
apt-get clean
apt-get update
apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
   
should do the trick.
 
  I got this:
 

 I fixed the init.d links. The problem seams to be this line now:
 /etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or 
directory


I am stuck.
I installed 'lsb-base', I don't know why it wasn't installed at the
first place and how dbmail could have worked with out it up till now.
But installing lsb-base fixed the /etc/init.d/dbmail: line 46:
/lib/lsb/init-functions: No such file or directory error.
Now I have an error with log_daemon_msg.
I don't understand this. What could I have done wrong?



OK got another step forward.
I commented out set -e on line 46 in the dbmail init.d script and
then did the apt-get -f install and it worked.
Now, how do I fix the log_daemon? I let you know if I figure this one
out too but meantime if you know something I don't please let me
know..
--

Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread Paul J Stevens
DK wrote:
 On 7/26/06, DK [EMAIL PROTECTED] wrote:
 On 7/26/06, DK [EMAIL PROTECTED] wrote:
  On 7/26/06, wiz [EMAIL PROTECTED] wrote:
   On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
  
apt-get clean
apt-get update
apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
   
should do the trick.
 
  I got this:
 

 I fixed the init.d links. The problem seams to be this line now:
 /etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or
 directory

 
 I am stuck.
 I installed 'lsb-base', I don't know why it wasn't installed at the
 first place and how dbmail could have worked with out it up till now.
 But installing lsb-base fixed the /etc/init.d/dbmail: line 46:
 /lib/lsb/init-functions: No such file or directory error.
 Now I have an error with log_daemon_msg.
 I don't understand this. What could I have done wrong?

You didn't do anything wrong. I did a quick backport to sarge of
dbmail-2.1.7 packages for debian/etch. The lsb stuff was added  only
today, like 10 minutes before doing the sarge backport. I didn't
actually test those packages. Just use the init script from 2.1.6 if you
don't mind.

 
 
 # apt-get -f install
 Reading Package Lists... Done
 Building Dependency Tree... Done
 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
 5 not fully installed or removed.
 Need to get 0B/104kB of archives.
 After unpacking 0B of additional disk space will be used.
 Preconfiguring packages ...
 (Reading database ... 60971 files and directories currently installed.)
 Preparing to replace dbmail 2.1.7-1 (using .../dbmail_2.1.7-1_i386.deb) ...
 /etc/init.d/dbmail: line 157: log_daemon_msg: command not found
 invoke-rc.d: initscript dbmail, action stop failed.
 dpkg: warning - old pre-removal script returned error exit status 127
 dpkg - trying script from the new package instead ...
 /etc/init.d/dbmail: line 157: log_daemon_msg: command not found
 invoke-rc.d: initscript dbmail, action stop failed.
 dpkg: error processing /var/cache/apt/archives/dbmail_2.1.7-1_i386.deb
 (--unpack):
 subprocess new pre-removal script returned error exit status 127
 /etc/init.d/dbmail: line 146: log_daemon_msg: command not found
 invoke-rc.d: initscript dbmail, action start failed.
 dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 127
 Errors were encountered while processing:
 /var/cache/apt/archives/dbmail_2.1.7-1_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 safe:/etc/init.d#
 


-- 
  
  Paul Stevens  paul at nfg.nl
  NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
  The Netherlandshttp://www.nfg.nl


Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread DK

On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:

DK wrote:
 On 7/26/06, DK [EMAIL PROTECTED] wrote:
 On 7/26/06, DK [EMAIL PROTECTED] wrote:
  On 7/26/06, wiz [EMAIL PROTECTED] wrote:
   On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
  
apt-get clean
apt-get update
apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
   
should do the trick.
 
  I got this:
 

 I fixed the init.d links. The problem seams to be this line now:
 /etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or
 directory


 I am stuck.
 I installed 'lsb-base', I don't know why it wasn't installed at the
 first place and how dbmail could have worked with out it up till now.
 But installing lsb-base fixed the /etc/init.d/dbmail: line 46:
 /lib/lsb/init-functions: No such file or directory error.
 Now I have an error with log_daemon_msg.
 I don't understand this. What could I have done wrong?

You didn't do anything wrong. I did a quick backport to sarge of
dbmail-2.1.7 packages for debian/etch. The lsb stuff was added  only
today, like 10 minutes before doing the sarge backport. I didn't
actually test those packages. Just use the init script from 2.1.6 if you
don't mind.



Well I don't mind at all. The old script works. Thank you.
--

Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread DK

On 7/26/06, DK [EMAIL PROTECTED] wrote:

On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
 DK wrote:
  On 7/26/06, DK [EMAIL PROTECTED] wrote:
  On 7/26/06, DK [EMAIL PROTECTED] wrote:
   On 7/26/06, wiz [EMAIL PROTECTED] wrote:
On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:
   
 apt-get clean
 apt-get update
 apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve

 should do the trick.
  
   I got this:
  
 
  I fixed the init.d links. The problem seams to be this line now:
  /etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or
  directory
 
 
  I am stuck.
  I installed 'lsb-base', I don't know why it wasn't installed at the
  first place and how dbmail could have worked with out it up till now.
  But installing lsb-base fixed the /etc/init.d/dbmail: line 46:
  /lib/lsb/init-functions: No such file or directory error.
  Now I have an error with log_daemon_msg.
  I don't understand this. What could I have done wrong?

 You didn't do anything wrong. I did a quick backport to sarge of
 dbmail-2.1.7 packages for debian/etch. The lsb stuff was added  only
 today, like 10 minutes before doing the sarge backport. I didn't
 actually test those packages. Just use the init script from 2.1.6 if you
 don't mind.


Well I don't mind at all. The old script works. Thank you.


One more thing while I was trying to fix all this I remove all the rc
links init.d for dbmail. Then I recreated them with default values but
I am not so sure about those default values. I think 25 is wrong, I
remember something in the 90s. Could someone check for me please?

/etc/rc0.d/K25dbmail - ../init.d/dbmail
/etc/rc1.d/K25dbmail - ../init.d/dbmail
/etc/rc2.d/S25dbmail - ../init.d/dbmail
/etc/rc3.d/S25dbmail - ../init.d/dbmail
/etc/rc4.d/S25dbmail - ../init.d/dbmail
/etc/rc5.d/S25dbmail - ../init.d/dbmail
/etc/rc6.d/K25dbmail - ../init.d/dbmail

-
Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread Leif Jackson
DK,

I have them at 95 with a chkconfig version of the dbmail init scripts on
CentOS 4.3 64bit But as long as they are after your network and if sql is
on the same machine your mysql startup it should be fine at any init
number.

-leif

On Wed, July 26, 2006 7:37 pm, DK wrote:

 One more thing while I was trying to fix all this I remove all the rc
 links init.d for dbmail. Then I recreated them with default values but I am
 not so sure about those default values. I think 25 is wrong, I remember
 something in the 90s. Could someone check for me please?

 /etc/rc0.d/K25dbmail - ../init.d/dbmail
 /etc/rc1.d/K25dbmail - ../init.d/dbmail
 /etc/rc2.d/S25dbmail - ../init.d/dbmail
 /etc/rc3.d/S25dbmail - ../init.d/dbmail
 /etc/rc4.d/S25dbmail - ../init.d/dbmail
 /etc/rc5.d/S25dbmail - ../init.d/dbmail
 /etc/rc6.d/K25dbmail - ../init.d/dbmail


 -
 Demi
 ___
 Dbmail mailing list
 Dbmail@dbmail.org
 https://mailman.fastxs.nl/mailman/listinfo/dbmail






Re: [Dbmail] init.d script not starting dbmail

2006-07-27 Thread DK

Thank you Leif

On 7/26/06, Leif Jackson [EMAIL PROTECTED] wrote:

DK,

I have them at 95 with a chkconfig version of the dbmail init scripts on
CentOS 4.3 64bit But as long as they are after your network and if sql is
on the same machine your mysql startup it should be fine at any init
number.

-leif

On Wed, July 26, 2006 7:37 pm, DK wrote:

 One more thing while I was trying to fix all this I remove all the rc
 links init.d for dbmail. Then I recreated them with default values but I am
 not so sure about those default values. I think 25 is wrong, I remember
 something in the 90s. Could someone check for me please?

 /etc/rc0.d/K25dbmail - ../init.d/dbmail
 /etc/rc1.d/K25dbmail - ../init.d/dbmail
 /etc/rc2.d/S25dbmail - ../init.d/dbmail
 /etc/rc3.d/S25dbmail - ../init.d/dbmail
 /etc/rc4.d/S25dbmail - ../init.d/dbmail
 /etc/rc5.d/S25dbmail - ../init.d/dbmail
 /etc/rc6.d/K25dbmail - ../init.d/dbmail


 -
 Demi
 ___
 Dbmail mailing list
 Dbmail@dbmail.org
 https://mailman.fastxs.nl/mailman/listinfo/dbmail




___
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail




--

Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-26 Thread wiz

On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:


apt-get clean
apt-get update
apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve

should do the trick.

Works now. Great.

Btw, dbmail-sieve won't install in ubuntu 6.06:

 libsieve1: Depends: libc6 (= 2.3.6-6) but 2.3.6-0ubuntu20 is to be installed
E: Broken packages


Re: [Dbmail] init.d script not starting dbmail

2006-07-26 Thread DK

On 7/26/06, wiz [EMAIL PROTECTED] wrote:

On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:

 apt-get clean
 apt-get update
 apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve

 should do the trick.


I got this:

# apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 2 not upgraded.
Need to get 146kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://debian.nfgd.net unstable/main dbmail 2.1.7-1 [104kB]
Get:2 http://debian.nfgd.net unstable/main dbmail-mysql 2.1.7-1 [16.4kB]
Get:3 http://debian.nfgd.net unstable/main dbmail-sieve 2.1.7-1 [26.2kB]
Fetched 146kB in 1s (142kB/s)
Preconfiguring packages ...
(Reading database ... 60966 files and directories currently installed.)
Preparing to replace dbmail 2.1.7-1 (using .../dbmail_2.1.7-1_i386.deb) ...
Stopping dbmail servers: dbmail-imapd dbmail-lmtpd dbmail-timsieved done.
Stopping dbmail servers: dbmail-imapd dbmail-lmtpd dbmail-timsieved done.
Unpacking replacement dbmail ...
Preparing to replace dbmail-mysql 2.1.7-1 (using
.../dbmail-mysql_2.1.7-1_i386.deb) ...
Unpacking replacement dbmail-mysql ...
Preparing to replace dbmail-sieve 2.1.7-1 (using
.../dbmail-sieve_2.1.7-1_i386.deb) ...
Unpacking replacement dbmail-sieve ...
Setting up dbmail (2.1.7-1) ...
Installing new version of config file /etc/init.d/dbmail ...
update-rc.d: warning: /etc/rc2.d/S99dbmail is not a link to ../init.d/dbmail
update-rc.d: warning: /etc/rc3.d/S99dbmail is not a link to ../init.d/dbmail
update-rc.d: warning: /etc/rc5.d/S99dbmail is not a link to ../init.d/dbmail
/etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or directory
invoke-rc.d: initscript dbmail, action start failed.
dpkg: error processing dbmail (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of dbmail-mysql:
dbmail-mysql depends on dbmail (= 2.1.7-1); however:
 Package dbmail is not configured yet.
dpkg: error processing dbmail-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dbmail-sieve:
dbmail-sieve depends on dbmail (= 2.1.7-1); however:
 Package dbmail is not configured yet.
dpkg: error processing dbmail-sieve (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
dbmail
dbmail-mysql
dbmail-sieve
E: Sub-process /usr/bin/dpkg returned an error code (1)


--

Demi


Re: [Dbmail] init.d script not starting dbmail

2006-07-26 Thread DK

On 7/26/06, DK [EMAIL PROTECTED] wrote:

On 7/26/06, wiz [EMAIL PROTECTED] wrote:
 On 7/26/06, Paul J Stevens [EMAIL PROTECTED] wrote:

  apt-get clean
  apt-get update
  apt-get install --reinstall dbmail dbmail-mysql dbmail-sieve
 
  should do the trick.

I got this:



I fixed the init.d links. The problem seams to be this line now:
/etc/init.d/dbmail: line 46: /lib/lsb/init-functions: No such file or directory

--

Demi