mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-07-01 13:40:54 +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:
parent
c82c33b5a3
commit
13c45454dd
1
.github/workflows/test-and-build.yaml
vendored
1
.github/workflows/test-and-build.yaml
vendored
|
@ -5,6 +5,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
- massive-refactor
|
||||||
pull_request:
|
pull_request:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
|
@ -7,9 +7,7 @@ start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
#s6-svc -wD -d -T2500 /var/run/s6/services/$service
|
/command/s6-svc -wD -d -T2500 /run/service/$service
|
||||||
# /command/s6-svc -wD -d -T2500 /run/service/$service
|
|
||||||
/command/s6-rc -d change $service
|
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
|
@ -35,16 +33,13 @@ restart() {
|
||||||
|
|
||||||
# Only attempt to start the service if it is not already running
|
# Only attempt to start the service if it is not already running
|
||||||
if [ -z "$pid" ]; then
|
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-svc -wu -u -T2500 /run/service/$service
|
|
||||||
/command/s6-rc -u change $service
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
/command/s6-svstat /run/service/$service
|
/command/s6-svstat /run/service/$service
|
||||||
#/var/run/s6/services/$service
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service="$1"
|
service="$1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user