Files
4fury-c3440d8 4e5a883d49 spamassassin.
2021-10-14 06:12:46 +03:00

28 lines
734 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/python
# -*- coding: utf-8 -*-
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "Spam detection daemon",
"tr": "Spam algılama servisi"})
serviceDefault="on"
serviceConf = "spamd"
@synchronized
def start():
startService(command="/usr/bin/spamd",
args="-d -r %s %s %s" % (config.get("PIDFILE", "/run/spamd.pid"), config.get("PARAMS", ""), config.get("EXTRA", "")),
nice = int(config.get("NICELEVEL", "-0")),
donotify=True)
@synchronized
def stop():
stopService(config.get("PIDFILE", "/run/spamd.pid"),
donotify=True)
def status():
return isServiceRunning(config.get("PIDFILE", "/run/spamd.pid"))