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 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 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/