1# Sample pkcs11_eventmgr configuration file 2# 3pkcs11_eventmgr { 4 5 # Run in background? Implies debug=false if true 6 daemon = true; 7 8 # show debug messages? 9 debug = false; 10 11 # polling time in seconds 12 polling_time = 1; 13 14 # expire time in seconds 15 # default = 0 ( no expire ) 16 expire_time = 0; 17 18 # pkcs11 module to use 19 pkcs11_module = /usr/local/lib/opensc-pkcs11.so; 20 21 # 22 # list of events and actions 23 24 # Card inserted 25 event card_insert { 26 # what to do if an action fail? 27 # ignore : continue to next action 28 # return : end action sequence 29 # quit : end program 30 on_error = ignore ; 31 32 # You can enter several, comma-separated action entries 33 # they will be executed in turn 34 action = "play /usr/local/share/sounds/warning.wav", 35 "xscreensaver-command -deactivate"; 36 } 37 38 # Card has been removed 39 event card_remove { 40 on_error = ignore; 41 action = "play /usr/local/share/sounds/error.wav", 42 "xscreensaver-command -lock"; 43 } 44 45 # Too much time card removed 46 event expire_time { 47 on_error = ignore; 48 action = "/bin/false"; 49 } 50} 51