HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/@appstore/AntiVirus/engine/scripts/clam.sh
#!/bin/sh
# Copyright (c) 2000-2010 Synology Inc. All rights reserved.
PRIVATE_LOCATION="/var/packages/AntiVirus/target"
ENG_INSTALL_DIR="/usr/syno"

case $1 in
	start)
		echo "Starting ClamAV..."
	;;
	stop)
		echo "Stopping ClamAV..."
		if [ -n 'pidof freshclam' ]; then
			killall -9 freshclam
			sleep 2
		fi
		;;
	restart)
		$0 stop
		sleep 1
		$0 start
		;;
	*)
		echo "Usage: $0 start|stop|restart"
	;;
esac