Files
main/server/database/firebird/comar/service.py
T
2015-06-19 13:39:29 +03:00

27 lines
664 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/python
# -*- coding: utf-8 -*-
serviceType="server"
serviceDesc = _({"en": "Firebird Database Server",
"tr": "Firebird Veritabanı Sunucusu"})
from comar.service import *
pid_file = "/run/firebird/firebird.pid"
@synchronized
def start():
startService(command="/opt/firebird/bin/fbguard",
args="-pidfile %s -start -forever -daemon" % pid_file,
pidfile="/run/firebird/firebird.pid",
donotify=True)
# chuid="firebird",
@synchronized
def stop():
stopService(pidfile=pid_file,
donotify=True)
def status():
return isServiceRunning(pid_file)