nginx: new package

This commit is contained in:
suvari
2019-07-25 20:05:24 +03:00
parent 672ecbe8af
commit 5313d98f6a
19 changed files with 6566 additions and 5406 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
serviceType = "server"
serviceDesc = _({"en": "Nginx Web Server",
"tr": "Nginx Web Sunucusu"})
from comar.service import *
@synchronized
def start():
startService(command="/usr/sbin/nginx",
donotify=True)
@synchronized
def stop():
stopService(pidfile="/run/nginx.pid",
donotify=True)
def status():
return isServiceRunning("/run/nginx.pid")