2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # T2 SDE: package/*/spamassassin/spamassassin.init
4 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: The spamassassin mail filter server
19 block_begin(start, `Starting spamd')
20 check(`D_bindir/spamd -d --pidfile /var/run/spamd.pid')
23 block_begin(stop, `Stopping spamd')
24 check(`kill $(cat /var/run/spamd.pid)')
27 block_begin(restart, `Restarting spamd')
28 check(`kill -1 $(cat /var/run/spamd.pid)')