new package and package move

This commit is contained in:
Erkan IŞIK
2026-07-11 23:49:28 +03:00
parent 6083827a02
commit 15982225e9
41 changed files with 113 additions and 33 deletions
+34
View File
@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
from comar.service import *
import os
serviceType = "local"
serviceDesc = _({"en": "Arksigner Daemon",
"tr": "Arksigner Daemon"})
serviceDefault = "on"
PIDFILE="/run/arksignerd.pid"
@synchronized
def start():
# path to executable
# creates a pid file, sets the working directory and calls the jar file
startService(command="/etc/init.d/arksignerd",
args="start",
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except:
pass
def ready():
start()
def status():
return isServiceRunning(pidfile=PIDFILE)