3 # Init file for the OpenPTS TCG Platform Trust Services collector daemon
6 # description: OpenPTS Collector Daemon
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/ptscd.conf
34 PID_FILE=/var/run/ptscd.pid
38 test -x $PTSCD || exit 5
39 #test -f /etc/openpts.conf || exit 6
40 echo -n $"Starting $prog: "
41 $PTSCD $OPTIONS start && success || failure
43 [ "$RETVAL" = 0 ] && touch /var/lock/subsys/ptscd
49 echo -n $"Stopping $prog: "
52 [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/ptscd
58 echo -n $"Initialize $prog: "
59 $PTSCD -i start && success || failure
65 echo -n $"Reloading $prog: "
82 #test -f /etc/openpts.conf || exit 6
89 condrestart|try-restart)
90 if [ -f /var/lock/subsys/openpts ] ; then
95 echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"