25 lines
581 B
Python
25 lines
581 B
Python
# -*- coding: utf-8 -*-
|
|
from comar.service import *
|
|
|
|
serviceType = "local"
|
|
serviceDesc = _({"en": "System Message Logger",
|
|
"tr": "Sistem Günlükleme Hizmeti"})
|
|
serviceDefault = "on"
|
|
|
|
PIDFILE = "/var/run/rsyslogd.pid"
|
|
|
|
@synchronized
|
|
def start():
|
|
startService(command="/usr/bin/rsyslogd",
|
|
args=config.get("SYSLOGD_OPTIONS", ""),
|
|
pidfile=PIDFILE,
|
|
detach=True)
|
|
|
|
@synchronized
|
|
def stop():
|
|
stopService(pidfile=PIDFILE,
|
|
donotify=True)
|
|
|
|
def status():
|
|
return isServiceRunning(pidfile=PIDFILE)
|