new packages: nfs-utils, libgssglue, rpcbind

This commit is contained in:
suvari
2022-03-11 20:43:46 +03:00
parent 15237f87a2
commit 7050abfeea
26 changed files with 3434 additions and 967 deletions
+33
View File
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
import os
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "RPCbind Daemon",
"tr": "RPCbind Servisi"})
serviceConf = "rpcbind"
PIDFILE = "/var/run/rpcbind.pid"
@synchronized
def start():
startService(command="/sbin/rpcbind",
args="-f %s" % config.get("RPCBIND_OPTS"),
makepid=True,
detach=True,
pidfile=PIDFILE,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except OSError:
pass
def status():
return isServiceRunning(PIDFILE)