Files
@ c9c5d5b858fd
Branch filter:
Location: portage-overlay.git/net-p2p/uhub/files/uhub.initd - annotation
c9c5d5b858fd
695 B
text/plain
commit old change
bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 bf6f64173507 | #!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.initd,v 1.1 2012/02/11 10:17:30 hollow Exp $
extra_started_commands="reload"
description="High performance peer-to-peer hub for the ADC network"
description_reload="Reload uHub configuration and re-read log file"
command="/usr/bin/uhub"
command_args="${UHUBOPTIONS}"
pidfile="/var/run/uhub.pid"
depend() {
need net
use dns logger netmount
}
stop_post() {
rm ${pidfile}
}
reload() {
ebegin "Reloading uHub configuration"
kill -HUP `cat ${pidfile}` &>/dev/null
eend $? "Failed to reload uHub"
}
|