postfix added and ver. bump to 3.1.0

This commit is contained in:
suvari
2016-02-27 16:45:47 +02:00
parent 5c2daff4c0
commit 07b1c657e3
20 changed files with 1420 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "Postfix Mail Server",
"tr": "Postfix E-Posta Sunucusu"})
@synchronized
def start():
startService(command="/usr/sbin/postfix",
args="start",
donotify=True)
@synchronized
def stop():
stopService(command="/usr/sbin/postfix",
args="stop",
donotify=True)
def reload():
stopService(command="/usr/sbin/postfix",
args="reload")
def status():
return isServiceRunning(command="/usr/lib/postfix/master")