Bug 3402 - spamd cannot be shutdown manually
Summary: spamd cannot be shutdown manually
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Remco Rijnders
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 2120
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-21 04:09 CET by Thomas Spuhler
Modified: 2012-03-06 10:30 CET (History)
4 users (show)

See Also:
Source RPM: spamassassin
CVE:
Status comment:


Attachments

Description Thomas Spuhler 2011-11-21 04:09:07 CET
Description of problem:
spamd cannot be shutdown manually

Version-Release number of selected component (if applicable):
cuurent cauldron

How reproducible:
everytime

Steps to Reproduce:
1.use drakxservices and stop spamd
2.spamd doesn't stop.
3.
Comment 1 Marja Van Waes 2011-11-21 06:43:40 CET
assiging to remmy at his wish

CC: (none) => marja11
Assignee: bugsquad => remco

Comment 2 Marja Van Waes 2011-11-21 06:44:49 CET
(In reply to comment #1)
> assiging to remmy at his wish

and now cc'ing stormi, because that couldn't be done in one move

CC: (none) => stormi

Comment 3 diego w 2011-12-24 13:29:40 CET
this is also valid for other services like i.e. cups.

in general it seems drakxservices is not in sync with systemd (neither the list of available services nor the status of the services)

CC: (none) => smiling.diego

Comment 4 Manuel Hiebel 2011-12-24 14:26:25 CET
and it's work with systemctl or /etc/ini.d/** stop/restart ?
Comment 5 diego w 2011-12-24 14:46:25 CET
cups definitely works, spamd is not installed on my system:

[root@localhost diego]# systemctl status cups.service 
cups.service - CUPS Printing Service
          Loaded: loaded (/lib/systemd/system/cups.service; enabled)
          Active: active (running) since Sat, 24 Dec 2011 12:58:11 +0100; 1h 43min ago
        Main PID: 11446 (cupsd)
          CGroup: name=systemd:/system/cups.service
                  â 11446 /usr/sbin/cupsd -f
[root@localhost diego]# /etc/init.d/cups stop
Stopping cups (via systemctl):                                                                                                       [  OK  ]
[root@localhost diego]# systemctl status cups.service 
cups.service - CUPS Printing Service
          Loaded: loaded (/lib/systemd/system/cups.service; enabled)
          Active: inactive (dead) since Sat, 24 Dec 2011 14:41:24 +0100; 3s ago
        Main PID: 11446 (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/cups.service
Comment 6 diego w 2011-12-24 14:55:36 CET
please disregard my post above.

I just crosschecked again, and now drakxservices works for cups.

I'm definitely updating my system faster than I can think :)
awesome work!

There are still discrepancies between available initscripts and listed entries.

I just checked and spamassassin is installed on my system but I couldnt find any trace of initscrips (sysV nor systemd).

P.S. my version is: Source RPM  : drakxtools-13.74-1.mga2.src.rpm
Comment 7 Manuel Hiebel 2011-12-24 15:08:06 CET
ok.

Thomas, ok for you too ?

Keywords: (none) => NEEDINFO

Comment 8 Thomas Spuhler 2011-12-30 18:56:14 CET
I never has a problem (as far as I know) with cups but the spamd problem is still there
Comment 9 Manuel Hiebel 2011-12-30 19:40:00 CET
perfect thanks :)

Keywords: NEEDINFO => (none)

Remco Rijnders 2012-01-16 17:17:04 CET

Status: NEW => ASSIGNED

Manuel Hiebel 2012-02-07 23:16:57 CET

Depends on: (none) => 2120

Comment 10 Colin Guthrie 2012-02-28 21:24:03 CET
@diego: There should be an initscript (not sure about systemd service) for spamd in the spamassassin-spamd package. Do you perhaps not have it installed?

CC: (none) => mageia

Comment 11 diego w 2012-02-28 22:06:50 CET
OK got it...
I have installed spamassassin, but not spamassassin-spamd, no point in worrying over non present bootscripts.

sorry for keeping you busy :)

the spamassassin-spamd 3.3.2-2.mga2 RPM provides the following scripts:  â

*   /etc/rc.d/init.d/spamd
*   /etc/sysconfig/spamd

do you have any need for testing? I would be happy to install and try what you need.
Comment 12 Colin Guthrie 2012-02-29 00:36:13 CET
Should be OK actually. I made some tweaks to the initscript to properly kill the main process which didn't seem to work properly anymore. This works fine with systemd, although a native unit would be trivial to write too.

Remco was able to test that the changes worked OK, so will commit shortly.
Comment 13 Remco Rijnders 2012-02-29 04:34:19 CET
Thanks to Colin, the init script is now fixed so it properly works with systemd enabled as well. Thanks Colin! 

As soon as the package is built on Cauldron, we should be able to close this bugreport. Left to do is to provide a systemd native init file, I'll have a look at that later.
Comment 14 Thomas Spuhler 2012-02-29 15:00:35 CET
Thanks both of you for doing this.I'll check it out tonight.
Comment 15 Remco Rijnders 2012-03-06 10:30:31 CET
I believe this to be fixed. Feel free to reopen in case you disagree.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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