summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-18 22:43:55 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-18 22:52:58 +0900
commitc7a4fb466f5fa92b8f9c6f1be52621a847702e31 (patch)
tree3817bf87e57a8293f4d607db44499ee5f150014d /app-i18n/freewnn
parentapp-i18n/freewnn: update to EAPI 6 (diff)
downloadgentoo-c7a4fb466f5fa92b8f9c6f1be52621a847702e31.tar.gz
gentoo-c7a4fb466f5fa92b8f9c6f1be52621a847702e31.tar.bz2
gentoo-c7a4fb466f5fa92b8f9c6f1be52621a847702e31.zip
app-i18n/freewnn: update init script
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/freewnn')
-rw-r--r--app-i18n/freewnn/files/freewnn.initd24
1 files changed, 9 insertions, 15 deletions
diff --git a/app-i18n/freewnn/files/freewnn.initd b/app-i18n/freewnn/files/freewnn.initd
index fda9184a5078..ef4e20cf37c8 100644
--- a/app-i18n/freewnn/files/freewnn.initd
+++ b/app-i18n/freewnn/files/freewnn.initd
@@ -1,22 +1,16 @@
#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
-depend() {
- use net
-}
+command="/usr/bin/Wnn4/jserver"
-start() {
- ebegin "Starting up ${SERVICE}"
- /usr/bin/Wnn4/jserver &>/dev/null
- if [ $? -eq 15 ]; then
- true;
- else
- false;
- fi
- eend 0
+depend() {
+ use logger
+ need net
}
stop() {
- ebegin "Stopping ${SERVICE}"
- /usr/bin/Wnn4/wnnkill &> /dev/null
- eend $? "Failed to stop ${SERVICE}"
+ ebegin "Stopping ${name:-${RC_SVCNAME}}"
+ /usr/bin/Wnn4/wnnkill
+ eend ${?}
}