summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-20 22:52:30 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-20 22:52:30 +0900
commite76e59c18b6dc68d16629e96cbb456f10425398b (patch)
treea8b51fa824a8e606717927919d749bdd569c590f /app-i18n/freewnn
parentapp-emacs/yc: new upstream release (diff)
downloadgentoo-e76e59c18b6dc68d16629e96cbb456f10425398b.tar.gz
gentoo-e76e59c18b6dc68d16629e96cbb456f10425398b.tar.bz2
gentoo-e76e59c18b6dc68d16629e96cbb456f10425398b.zip
app-i18n/freewnn: add init script
Gentoo-Bug: 625568 Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/freewnn')
-rw-r--r--app-i18n/freewnn/files/freewnn.confd-r11
-rw-r--r--app-i18n/freewnn/files/freewnn.initd-r117
2 files changed, 18 insertions, 0 deletions
diff --git a/app-i18n/freewnn/files/freewnn.confd-r1 b/app-i18n/freewnn/files/freewnn.confd-r1
new file mode 100644
index 000000000000..c64e27196d50
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.confd-r1
@@ -0,0 +1 @@
+FREEWNN_OPTS=""
diff --git a/app-i18n/freewnn/files/freewnn.initd-r1 b/app-i18n/freewnn/files/freewnn.initd-r1
new file mode 100644
index 000000000000..57fd448f801c
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.initd-r1
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/jserver"
+command_args="${FREEWNN_OPTS}"
+
+depend() {
+ use logger
+ need net
+}
+
+stop() {
+ ebegin "Stopping ${name:-${RC_SVCNAME}}"
+ /usr/sbin/wnnkill
+ eend ${?}
+}