gkrellm build and check ported from pisi 1.2

This commit is contained in:
groni
2015-10-22 15:15:25 +02:00
parent 8af0764a70
commit 9714517dc6
9 changed files with 277 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from comar.service import *
import os
serviceType = "server"
serviceDesc = _({"en": "GNU Krell Monitor Daemon",
"tr": "GNU Krell Sistem Takip Servisi"})
PIDFILE = "/run/gkrellmd.pid"
@synchronized
def start():
startService(command="/usr/bin/gkrellmd",
pidfile=PIDFILE,
makepid=True,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
if os.path.exists(PIDFILE):
os.unlink(PIDFILE)
def status():
return isServiceRunning(PIDFILE)