Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/modules/citrix/storefront-cron.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2511 - (hide annotations) (download)
Mon Sep 14 09:55:43 2015 UTC (8 years, 7 months ago) by niro
File size: 813 byte(s)
-added initial storefront-cron script
1 niro 2511 #!/bin/bash
2    
3     MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4     source @@SYSCONFDIR@@/mcore/mcore.conf
5     source ${MCORE_LIBDIR}/include/common.global.class
6     source ${MCORE_LIBDIR}/include/daemon.global.class
7    
8     if [ ! -d ~/.ICAClient ]
9     then
10     install -d ~/.ICAClient
11     fi
12    
13     if [ ! -f ~/.ICAClient ]
14     then
15     touch ~/.ICAClient/.eula_accepted
16     fi
17    
18     if ! storebrowse > /dev/null
19     then
20     if [ -d ~/.ICAClient/.tmp ]
21     then
22     rm -r ~/ICAClient/.tmp
23     fi
24    
25     # kill running instances
26     pidof AuthServiceDaemon > /dev/null && killall AuthServiceDaemon
27     pidof ServiceRecord > /dev/null && killall ServiceRecord
28     pidof storebrowse > /dev/null && killall storebrowse
29    
30     # register eula
31     xvfb-run -a -s "-extension RANDR" storebrowse
32     fi
33    
34     # get all sessions of default store
35     export STOREFRONT_STORE="${DEFAULT_STOREFRONT_STORE}"
36     ${MCORE_LIBDIR}/storefront-resolver