Bug 7895 - broken M2.4 update
: broken M2.4 update
Status: CLOSED WONTFIX
: ALT Linux 2.4
(All bugs in ALT Linux 2.4/spamassassin-spamd)
: 2.4
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2005-09-07 16:08 by
Modified: 2005-10-28 14:14 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-09-07 16:08:41
9: spamassassin-spamd          
###################################################################################################
[ 90%]
Stopping spamd service: [ DONE ]
Starting spamd service: Could not create INET socket on 127.0.0.1:783: Address
already in use (IO::Socket::INET: Address already in use)
[FAILED]
10: spamassassin-spamc          
###################################################################################################
[100%]
------- Comment #1 From 2005-09-07 16:10:01 -------
# service spamd restart
Service spamd is not running.                                                  
                                                    [PASSED]
Starting spamd service: Could not create INET socket on 127.0.0.1:783: Address
already in use (IO::Socket::INET: Address already in use)
                                                                               
                                                    [FAILED]
------- Comment #2 From 2005-09-07 16:11:25 -------
# killall spamd
# service spamd start
Starting spamd service:                                                        
                                                    [ DONE ]
------- Comment #3 From 2005-09-14 11:26:00 -------
есть предложение запускать spamd от пользователя spamd. я по крайней мере так
сделал и думаю - это помимо убирания некоторого мусора из логов который у меня
был при запуске от root увеличит безопасность использования демона. изменения
следующие:
1) /etc/rc.d/init.d/spamd

# diff spamd.rpmorig spamd |more
18,21d17
< RUNAS=root
< PIDFILE=/var/run/spamd.pid
< LOCKFILE=/var/lock/subsys/spamd
<
24a21,22
> PIDFILE=/var/run/spamd/spamd.pid
> LOCKFILE=/var/lock/spamd/spamd
29c27
<       start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user
"$RUNAS" -- \
---
>       start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user
spamd -- \
37c35
<       stop_daemon --name spamd --pidfile "$PIDFILE" --lockfile "$LOCKFILE"
--expect-user "$RUNAS" spamd
---
>       stop_daemon --name spamd --pidfile "$PIDFILE" --lockfile "$LOCKFILE"
--expect-user spamd spamd
51c49
<       stop_daemon --name spamd --pidfile "$PIDFILE" --expect-user "$RUNAS"
-HUP -- spamd
---
>       stop_daemon --name spamd --pidfile "$PIDFILE" --expect-user spamd -HUP
-- spamd
71c69
<       status --name spamd --pidfile "$PIDFILE" --expect-user "$RUNAS" --
spamd
---
>       status --name spamd --pidfile "$PIDFILE" --expect-user spamd -- spamd


2) меняется /var/run/spamd.pid на /var/run/spamd/spamd.pid

# ll /var/run|grep spamd
drwxrws--T   2 root spamd    4096 Sep  9 15:48 spamd/

ll /var/run/spamd/spamd.pid
-rw-r--r--  1 spamd spamd 6 Sep  9 15:48 /var/run/spamd/spamd.pid

3) меняется /var/lock/subsys/spamd на /var/lock/spamd/spamd

ll /var/lock/|grep spamd
drwxrwx---   2 root spamd 4096 Sep  9 15:48 spamd/

ll /var/lock/spamd/spamd
-rw-r--r--  1 root root 0 Sep  9 15:48 /var/lock/spamd/spamd

PS: все работает без проблем гдето с весны сего года.
------- Comment #4 From 2005-10-28 14:14:06 -------
Зароем.