summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ${?}
}