blob: cc537e31a38a2f72bcc1cf74beaa67d02b5cce38 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Start the Chaps daemon (chapsd)"
author "chromium-os-dev@chromium.org"
# Starts the Chaps daemon, which provides TPM-backed cryptographic services.
start on (started tcsd and started dbus)
stop on (starting reboot or starting halt)
respawn
script
# Redirect PKCS #11 calls to openCryptoki.
LIB=--lib=libopencryptoki.so
if [ -f /home/chronos/.enable_chaps ]; then
# Experimental: Use the chaps PKCS #11 implementation.
LIB=""
fi
exec chapsd ${LIB}
end script