1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-25 08:47:48 +02:00

finish service script wrapper

Build this branch on push?

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-07-12 16:40:04 +01:00
parent c82c33b5a3
commit 13c45454dd
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173
2 changed files with 3 additions and 7 deletions

View File

@ -5,6 +5,7 @@ on:
push:
branches:
- dev
- massive-refactor
pull_request:
release:
types: [published]

View File

@ -7,9 +7,7 @@ start() {
}
stop() {
#s6-svc -wD -d -T2500 /var/run/s6/services/$service
# /command/s6-svc -wD -d -T2500 /run/service/$service
/command/s6-rc -d change $service
/command/s6-svc -wD -d -T2500 /run/service/$service
}
restart() {
@ -35,16 +33,13 @@ restart() {
# Only attempt to start the service if it is not already running
if [ -z "$pid" ]; then
# s6-svc -wu -u -T2500 /var/run/s6/services/$service
# /command/s6-svc -wu -u -T2500 /run/service/$service
/command/s6-rc -u change $service
/command/s6-svc -wu -u -T2500 /run/service/$service
fi
}
status() {
/command/s6-svstat /run/service/$service
#/var/run/s6/services/$service
}
service="$1"