milter/スクリプト
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
**スクリプト [#j41895b3]
#contents
----
***clamav-milter起動スクリプト [#n9c4fac1]
#!/bin/sh
#
# Startup script for the Clamav Milter Daemon
#
# chkconfig: 2345 77 23
# description: clamav-milter is a daemon which hooks int...
# and routes email messages to clamav.
# processname: clamav-milter
# pidfile: /var/run/clamav/clamav-milter.pid
# config: /etc/sysconfig/clamav-milter
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
[ -x /usr/local/sbin/clamav-milter ] || exit 0
# Local clamav-milter config
CLAMAV_FLAGS=
test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig...
# See how we were called.
case "$1" in
start)
echo -n "Starting Clamav Milter Daemon: "
daemon --pidfile=/usr/local/var/run/clamav-milte...
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/clam...
;;
stop)
echo -n "Stopping Clamav Milter Daemon: "
killproc clamav-milter
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/clam...
;;
status)
status clamav-milter
RETVAL=$?
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
condrestart)
[ -e /var/lock/subsys/clamd ] && restart
RETVAL=$?
;;
*)
echo "Usage: clamav-milter {start|stop|status|re...
exit 1
esac
exit $RETVAL
終了行:
**スクリプト [#j41895b3]
#contents
----
***clamav-milter起動スクリプト [#n9c4fac1]
#!/bin/sh
#
# Startup script for the Clamav Milter Daemon
#
# chkconfig: 2345 77 23
# description: clamav-milter is a daemon which hooks int...
# and routes email messages to clamav.
# processname: clamav-milter
# pidfile: /var/run/clamav/clamav-milter.pid
# config: /etc/sysconfig/clamav-milter
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
[ -x /usr/local/sbin/clamav-milter ] || exit 0
# Local clamav-milter config
CLAMAV_FLAGS=
test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig...
# See how we were called.
case "$1" in
start)
echo -n "Starting Clamav Milter Daemon: "
daemon --pidfile=/usr/local/var/run/clamav-milte...
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/clam...
;;
stop)
echo -n "Stopping Clamav Milter Daemon: "
killproc clamav-milter
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/clam...
;;
status)
status clamav-milter
RETVAL=$?
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
condrestart)
[ -e /var/lock/subsys/clamd ] && restart
RETVAL=$?
;;
*)
echo "Usage: clamav-milter {start|stop|status|re...
exit 1
esac
exit $RETVAL
ページ名: