| # Provides: tcsd trousers |
| # Required-Start: $local_fs $remote_fs $network |
| # Required-Stop: $local_fs $remote_fs $network |
| # Short-Description: starts tcsd |
| # Description: tcsd belongs to the TrouSerS TCG Software Stack |
| PATH=/sbin:/bin:/usr/sbin:/usr/bin |
| DESC="Trusted Computing daemon" |
| test -x "${DAEMON}" || exit 0 |
| # Read configuration variable file if it is present |
| [ -r /etc/default/$NAME ] && . /etc/default/$NAME |
| echo "device driver not loaded, skipping." |
| start-stop-daemon --start --quiet --oknodo \ |
| --pidfile /var/run/${NAME}.pid --make-pidfile --background \ |
| --user ${USER} --chuid ${USER} \ |
| --exec ${DAEMON} -- ${DAEMON_OPTS} --foreground |
| start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/${NAME}.pid --user ${USER} --exec ${DAEMON} |
| rm -f /var/run/${NAME}.pid |
| echo "Usage: ${NAME} {start|stop|restart|force-reload|status}" >&2 |