Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583342 - net-mail/mailman init script fails to restart service correctly
Summary: net-mail/mailman init script fails to restart service correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-17 21:31 UTC by Brian De Wolf
Modified: 2021-10-17 19:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian De Wolf 2016-05-17 21:31:56 UTC
The current net-mail/mailman RC script does not restart mailman correctly.  This is due to two issues:

1) The stop command doesn't immediately stop mailman.
2) The start command (on the mailman side) checks if mailman is currently running and exits if it is.

This means that openRC's attempt at restarting (stop then start) causes mailman to exit and never come back because it thinks it's still running.

The behavior of #2 is detailed in the mailmanctl -h:

    -s/--stale-lock-cleanup
        If mailmanctl finds an existing master lock, it will normally exit
        with an error message.  With this option, mailmanctl will perform an
        extra level of checking.  If a process matching the host/pid described
        in the lock file is running, mailmanctl will still exit, but if no
        matching process is found, mailmanctl will remove the apparently stale
        lock and make another attempt to claim the master lock.

Also, the RC script contains a svc_restart() function that would work but doesn't appear to be used by anything.  It's unclear to me whether an RC script can override the openRC restart behavior.
Comment 1 Hanno Böck gentoo-dev 2020-11-10 20:46:56 UTC
Affects obsolete mailman2 package.