Merge branch 'master' of builder:git/watchman-services
This commit is contained in:
commit
d259153d55
|
@ -20,10 +20,6 @@ reload() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
|
||||||
stop && start
|
|
||||||
}
|
|
||||||
|
|
||||||
upgrade() {
|
upgrade() {
|
||||||
watchman.msg "This script has no zero-downtime upgrade support for nginx."
|
watchman.msg "This script has no zero-downtime upgrade support for nginx."
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,9 @@ service_tmpfiles=( '/run/vdev:dir' '/run/udev:symlink:/dev/metadata/udev' )
|
||||||
|
|
||||||
pre_start() {
|
pre_start() {
|
||||||
# Ensure that hotplug is empty
|
# Ensure that hotplug is empty
|
||||||
true > /proc/sys/kernel/hotplug
|
if [[ -f /proc/sys/kernel/hotplug ]]; then
|
||||||
|
true > /proc/sys/kernel/hotplug
|
||||||
|
fi
|
||||||
|
|
||||||
|
"$service_command" -1 -f /dev &>"$service_logfile"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_type='oneshot'
|
service_type='oneshot'
|
||||||
service_command='/usr/local/sbin/znet'
|
service_command='/usr/bin/znet'
|
||||||
service_args=( -d )
|
service_args=( -d )
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user