diff options
author | 2010-04-09 00:39:58 +0000 | |
---|---|---|
committer | 2010-04-09 00:39:58 +0000 | |
commit | c671f4bf87b1b9df2750cc464dbf46e8dcb9fcff (patch) | |
tree | 71b80db97ddb72b2f6c40948ceab6b6f7d7144ac /dev-scheme/hop/files | |
parent | Apply patch to kdelibs to fix hang caused in dolphin when accessing network f... (diff) | |
download | gentoo-2-c671f4bf87b1b9df2750cc464dbf46e8dcb9fcff.tar.gz gentoo-2-c671f4bf87b1b9df2750cc464dbf46e8dcb9fcff.tar.bz2 gentoo-2-c671f4bf87b1b9df2750cc464dbf46e8dcb9fcff.zip |
Version bump to latest upstream stable 2.0.1. Clean up hop-1.*. Added init.d/conf.d scripts.
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'dev-scheme/hop/files')
-rw-r--r-- | dev-scheme/hop/files/hop.confd | 4 | ||||
-rw-r--r-- | dev-scheme/hop/files/hop.initd | 45 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-scheme/hop/files/hop.confd b/dev-scheme/hop/files/hop.confd new file mode 100644 index 000000000000..1688f64813d5 --- /dev/null +++ b/dev-scheme/hop/files/hop.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/hop: config file for /etc/init.d/hop + +# see `hop --help` # for valid cmdline options +#HOP_OPTS="" diff --git a/dev-scheme/hop/files/hop.initd b/dev-scheme/hop/files/hop.initd new file mode 100644 index 000000000000..85515e5ff91c --- /dev/null +++ b/dev-scheme/hop/files/hop.initd @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/hop/files/hop.initd,v 1.1 2010/04/09 00:39:58 chiiph Exp $ + +HOPEXEC=/usr/bin/hop +HOPUSER=hop +HOPHOME=/var/www +PIDFILE=/var/run/hop.pid +LOGFILE=/var/log/hop + +# For user extensions through /etc/conf.d/hop +HOP_OPTS="--log-file ${LOGFILE} ${HOP_OPTS}" + +depend() { + need localmount net +} + +logfile() { + if [ ! -f ${LOGFILE} ] + then + touch ${LOGFILE} + fi + chown ${HOPUSER} ${LOGFILE} || eerror "Cannot create logfile" + return 0 +} + +start() { + logfile || return 1 + + ebegin "Starting Hop Web Broker" + start-stop-daemon --start --oknodo \ + --background --chuid ${HOPUSER} \ + --make-pidfile --pidfile ${PIDFILE} \ + --exec ${HOPEXEC} --env HOME=${HOPHOME} \ + -- ${HOP_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Hop Web Broker" + start-stop-daemon --stop \ + --exec ${HOPEXEC} --pidfile ${PIDFILE} + eend $? +} |