aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hiawatha/hiawatha.initd
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-12-23 19:23:38 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-12-24 06:03:39 +0000
commit2aae28d0f92ab5e4477edac4fc89a445a3e93570 (patch)
tree5c66504be9bec5f1401a01bc7e1e12cfbc006de3 /testing/hiawatha/hiawatha.initd
parent84f1ba016af9f1cc1b1d23f1af8360a3b60703fd (diff)
downloadaports-2aae28d0f92ab5e4477edac4fc89a445a3e93570.tar.bz2
aports-2aae28d0f92ab5e4477edac4fc89a445a3e93570.tar.xz
testing/hiawatha: update init to new OpenRC style
init script updated to new OpenRC style 'need net' does not work in LXC containers so changed to 'need firewall' CMAKE option ENABLE_SSL was not used so removed. SSL connections still work without it.
Diffstat (limited to 'testing/hiawatha/hiawatha.initd')
-rw-r--r--testing/hiawatha/hiawatha.initd24
1 files changed, 5 insertions, 19 deletions
diff --git a/testing/hiawatha/hiawatha.initd b/testing/hiawatha/hiawatha.initd
index 9c04296a37..d2a7bb3c61 100644
--- a/testing/hiawatha/hiawatha.initd
+++ b/testing/hiawatha/hiawatha.initd
@@ -1,22 +1,8 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
+#!/sbin/openrc-run
-depend() {
- need net
-}
+pidfile=/var/run/hiawatha.pid
+command=/usr/sbin/hiawatha
-start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec "/usr/sbin/hiawatha" \
- --pidfile "/var/run/hiawatha.pid"
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec "/usr/sbin/hiawatha" \
- --pidfile "/var/run/hiawatha.pid"
- eend $?
+depend() {
+ need firewall
}