Bug 66147 - ports/mail/spamass-milter startup script is wrong
Summary: ports/mail/spamass-milter startup script is wrong
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2004-05-01 15:30 UTC by Helge Oldach
Modified: 2004-05-24 23:46 UTC (History)
1 user (show)

See Also:

file.diff (849 bytes, patch)
2004-05-01 15:30 UTC, Helge Oldach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2004-05-01 15:30:14 UTC
/usr/local/etc/rc.d/spamass-milter.sh is wrong:

                "${DAEMON}" -p "${SOCKET}" -f &
                echo $! > "${PIDFILE}"

$! is the PID of the last command that /bin/sh put into background. But
since spamass-milter forks itself (-f option) this is *not* the PID of
the running spamass-milter process. Hence the PID file contains the PID
of a nonexistant process and cannot be used to stop spamass-milter.

Fix: Use the ./spamass-milter.sh script that is included already in the

Alternatively, apply the following patch, which will not create a PID
Comment 1 Pav Lucistnik freebsd_committer 2004-05-24 23:46:45 UTC
State Changed
From-To: open->closed

Committed, thanks!