blob: 94baa2d87b945df311632ccfcc47bac954674975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need clamd
}
start() {
ebegin "Starting ClamSMTPd"
start-stop-daemon --start --quiet \
--exec /usr/sbin/clamsmtpd -- -p /var/run/clamav/clamsmtpd.pid -f /etc/clamsmtpd.conf
eend $?
}
stop() {
ebegin "Stopping ClamSMTPd"
start-stop-daemon --stop --quiet --pidfile /var/run/clamav/clamsmtpd.pid
eend $?
}
|