Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: ca-60540
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (26 sloc) 0.544 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#! /bin/sh
#
# genptoken Generate a pool secret (ptoken)
#
# chkconfig: 2345 22 78
# description: Generate pool secret

. /etc/init.d/functions

start() {
    if [ ! -f /etc/xensource/ptoken ]; then
        echo -n $"Creating pool secret (this may take some time)"
        /opt/xensource/libexec/genptoken -f -o /etc/xensource/ptoken
        [ $? -eq 0 ] && success $"Done" || failure
        echo
    fi
}

case "$1" in
    start)
        start
;;
    stop|status)
;;
    *)
echo $"Usage: $0 {start|stop|status}"
exit 1
        ;;
esac
Something went wrong with that request. Please try again.