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:
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:
|
||||
branches:
|
||||
- dev
|
||||
- massive-refactor
|
||||
pull_request:
|
||||
release:
|
||||
types: [published]
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user