3 # Init file for the OpenPTS TCG Platform Trust Services collector
6 # description: OpenPTS Collector
9 # config: /etc/ptscd.conf
10 # pidfile: /var/run/ptscd.pid
16 # source function library
17 . /etc/rc.d/init.d/functions
19 # Allow anyone to run status
20 if [ "$1" = "status" ] ; then
26 # Check that we are root ... so non-root users stop here
27 test $EUID = 0 || exit 4
31 # Some variables to make the below more readable
33 CONF_FILE=/etc/ptsc.conf
37 test -x $PTSC || exit 5
38 #test -f /etc/ptsc.conf || exit 6
39 echo -n $"Starting $prog: "
40 $PTSC -s $OPTIONS start && success || failure
46 echo -n $"Initialize $prog: "
47 $PTSC -i start && success || failure
53 echo -n $"Update $prog: "
54 $PTSC -u start && success || failure
70 echo $"Usage: $0 {init|start|update|status}"