diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-08-24 19:44:27 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-08-27 21:26:07 +0100 |
commit | 7faab7e99e67e1b8b704a58289024c2ece455b49 (patch) | |
tree | 347dfc11c0edb976fd6a1f44320941dea623e7f3 | |
parent | eclass/linux-build: ignore empty lines (diff) | |
download | portage-7faab7e99e67e1b8b704a58289024c2ece455b49.tar.xz |
flx/wdd: manuall track status since wdd does not create pidfile
Package-Manager: Portage-2.3.69, Repoman-2.3.16
-rwxr-xr-x | flx/wdd/files/wdd.initd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flx/wdd/files/wdd.initd b/flx/wdd/files/wdd.initd index c0c3e2e4..4ef32d00 100755 --- a/flx/wdd/files/wdd.initd +++ b/flx/wdd/files/wdd.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -8,6 +8,13 @@ depend() { use dev } +status() { + ebegin "Check ${RC_SVCNAME} status" + start-stop-daemon --quiet --signal 0 \ + --exec "/sbin/${RC_SVCNAME}" + eend $? +} + start() { ebegin "Starting ${RC_SVCNAME}" start-stop-daemon --start --quiet --nicelevel "${NICE:-10}" \ |