From d19e78941a7bf46349b649378c3c54c9647499d2 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Tue, 8 May 2012 23:29:56 +0300 Subject: [PATCH 1/3] Added man page for uhub-passwd. --- doc/uhub-passwd.1 | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 doc/uhub-passwd.1 diff --git a/doc/uhub-passwd.1 b/doc/uhub-passwd.1 new file mode 100644 index 0000000..a7b2c46 --- /dev/null +++ b/doc/uhub-passwd.1 @@ -0,0 +1,42 @@ +.TH UHUB-PASSWD "1" "May 2012" +.SH NAME +uhub-passwd \- small utility for manipulating passwords which are +used by uhub daemon +.SH SYNOPSIS +.B uhub-passwd +\fIfilename command \fR[...] +.SH DESCRIPTION +uHub is a high performance peer-to-peer hub for the ADC network. +Its low memory footprint allows it to handle several thousand users +on high-end servers, or a small private hub on embedded hardware. +.SH "OPTIONS" +.TP +.BI \^create +.TP +.BI \^add " username password [credentials = user]" +.TP +.BI \^del " username" +.TP +.BI \^mod " username credentials" +.TP +.BI \^pass " username password" +.TP +.BI \^list +.SH "PARAMETERS" +.TP +.B 'filename' +is a database file +.TP +.B 'username' +is a nickname (UTF\-8, up to 64 bytes) +.TP +.B 'password' +is a password (UTF\-8, up to 64 bytes) +.TP +.B 'credentials' +is one of 'admin', 'super', 'op', 'user' +.SH AUTHOR +This program was written by Jan Vidar Krey +.SH "BUG REPORTS" +If you find a bug in uhub please report it to +.B http://bugs.extatic.org/ From 685e56f4c62b129eb96b3982429d0a7731766f06 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Tue, 8 May 2012 23:37:37 +0300 Subject: [PATCH 2/3] Updated list of man pages in debian package. --- debian/uhub.manpages | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/uhub.manpages b/debian/uhub.manpages index 60d9bd4..ff468b5 100644 --- a/debian/uhub.manpages +++ b/debian/uhub.manpages @@ -1 +1,2 @@ doc/uhub.1 +doc/uhub-passwd.1 From 7b77f7dc314a291659227323850864eaf12ff246 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Tue, 8 May 2012 23:33:33 +0300 Subject: [PATCH 3/3] Updated init script in debian package. --- debian/uhub.init | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/uhub.init b/debian/uhub.init index 7d4ae4f..67c068c 100644 --- a/debian/uhub.init +++ b/debian/uhub.init @@ -5,7 +5,8 @@ # Required-Stop: $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: uhub - High performance ADC p2p hub. +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -83,8 +84,12 @@ case "$1" in $0 start ;; + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + *) - echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac