Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: ca-88388
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (26 sloc) 0.524 kB
#! /bin/sh
#
# genptoken Generate a pool secret (ptoken)
#
# chkconfig: 2345 22 78
# description: Generate pool secret
. /etc/init.d/functions
start() {
if [ ! -f @ETCDIR@/ptoken ]; then
echo -n $"Creating pool secret (this may take some time)"
"@LIBEXECDIR@/genptoken" -f -o @ETCDIR@/ptoken
[ $? -eq 0 ] && success $"Done" || failure
echo
fi
}
case "$1" in
start)
start
;;
stop|status)
;;
*)
echo $"Usage: $0 {start|stop|status}"
exit 1
;;
esac
Jump to Line
Something went wrong with that request. Please try again.