dkl-user-services: migrate to supervise-daemon
This commit is contained in:
parent
6099dd399d
commit
354bdce5ab
@ -1,5 +1,5 @@
|
|||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
from mcluseau/golang-builder:1.21.3 as build
|
from mcluseau/golang-builder:1.21.4 as build
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
from alpine:3.18.4
|
from alpine:3.18.4
|
||||||
|
@ -2,29 +2,12 @@
|
|||||||
|
|
||||||
description="Direktil user services."
|
description="Direktil user services."
|
||||||
|
|
||||||
pidfile=/run/direktil/services.pid
|
supervisor=supervise-daemon
|
||||||
|
command="/sbin/dkl init services"
|
||||||
|
|
||||||
|
pidfile=/run/dkl-init-services.pid
|
||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need dkl-default
|
need dkl-default
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
|
||||||
{
|
|
||||||
mkdir -p $(dirname $pidfile)
|
|
||||||
|
|
||||||
einfo "Starting Direktil services manager"
|
|
||||||
start-stop-daemon --start \
|
|
||||||
--pidfile $pidfile \
|
|
||||||
--background \
|
|
||||||
--exec "/sbin/dkl" \
|
|
||||||
-- init services
|
|
||||||
eend $? "Failed to start Direktil services manager"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
einfo "Stopping Direktil services manager"
|
|
||||||
start-stop-daemon --stop --pidfile $pidfile
|
|
||||||
eend $? "Failed to stop Direktil services manager"
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user