clamav-1.0.0.

This commit is contained in:
4fury-c3440d8
2022-12-29 01:44:39 +03:00
parent 56eb91c18e
commit 57a40e0a8d
7 changed files with 99 additions and 44 deletions
+23
View File
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "ClamAV database updater service"})
@synchronized
def start():
startService(command="/usr/bin/freshclam",
args="-d -p /run/freshclam.pid",
pidfile="/run/freshclam.pid",
donotify=True)
@synchronized
def stop():
stopService(command="/usr/bin/freshclam",
donotify=True)
def status():
return isServiceRunning("/run/freshclam.pid")