clamav-0.105.1.

This commit is contained in:
4fury-c3440d8
2022-11-16 10:23:14 +03:00
parent 4236f604cc
commit 0b0c2848c8
9 changed files with 171 additions and 1023 deletions
+2 -2
View File
@@ -4,5 +4,5 @@ import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/bin/chown clamav:clamav /var/lib/clamav -R")
os.system("/bin/chown clamav:clamav /run/clamav -R")
os.system("/bin/chown clamav:clamav /var/log/clamav -R")
#os.system("/bin/chown clamav:clamav /run/clamav -R")
#os.system("/bin/chown clamav:clamav /var/log/clamav -R")
+9 -13
View File
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import os
from comar.service import *
@@ -8,19 +9,16 @@ serviceDesc = _({"en": "Clam Anti-Virus Daemon",
@synchronized
def start():
#if config.get("DAZUKO_SUPPORT", "no") == "yes":
# call("System.Service.start", "dazuko")
startService(command="/usr/sbin/clamd",
chuid="clamav",
pidfile="/run/clamav/clamd.pid",
donotify=False)
#chuid="clamav",
pidfile="/run/clamd.pid",
donotify=False)
time.sleep(3)
startService(command="/usr/bin/freshclam",
args="-d -p /run/clamav/freshclam.pid",
chuid="clamav",
pidfile="/run/clamav/freshclam.pid",
donotify=True)
args="-d -p /run/freshclam.pid",
#chuid="clamav",
pidfile="/run/freshclam.pid",
donotify=True)
@synchronized
def stop():
@@ -29,8 +27,6 @@ def stop():
time.sleep(4)
stopService(command="/usr/bin/freshclam",
donotify=True)
#if config.get("DAZUKO_SUPPORT", "no") == "yes":
# call("System.Service.stop", "dazuko")
def status():
return isServiceRunning("/run/clamav/clamd.pid") and isServiceRunning("/run/clamav/freshclam.pid")
return isServiceRunning("/run/clamd.pid") and isServiceRunning("/run/freshclam.pid")