summaryrefslogtreecommitdiffstats
path: root/encap/src/bcfg2-site/bcfg2-site-RENAME
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-25 06:12:43 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-25 06:12:43 +0000
commit2e0d46f2539189e8773f4827c20548bd275e2529 (patch)
treecead071c477cc79b47361c099abb57d276db97e7 /encap/src/bcfg2-site/bcfg2-site-RENAME
parent7d04c19afa0f690a3123fc5a7c929a4675b37b84 (diff)
downloadbcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.tar.gz
bcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.tar.bz2
bcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.zip
EncapPackages: Add bcfg2-client "daemon" start to bcfg2-site
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2108 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/bcfg2-site/bcfg2-site-RENAME')
-rwxr-xr-xencap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl (renamed from encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall)18
1 files changed, 18 insertions, 0 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
index 4ed875e4c..a02c265cb 100755
--- a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall
+++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
@@ -1,3 +1,8 @@
+#include "site-settings.conf"
+#compiler-settings
+cheetahVarStartToken = @
+commentStartToken = //
+#end compiler-settings
#!/bin/sh -e
umask 002
@@ -76,6 +81,19 @@ else
touch ${BASEDIR}/sbin/.SENTINEL_SITE
fi
+//if int(@BCFG2_CLIENT_RUN_INTERVAL_SECONDS) > 0
+if [ ! -h /service/bcfg2-client ]; then
+ if [ -d /usr/local/var/svc.d/bcfg2-client ]; then
+ ln -s /usr/local/var/svc.d/bcfg2-client /service/bcfg2-client
+ else
+ printf "ERROR: /usr/local/var/svc.d/bcfg2-client does not exist.\n"
+ exit 1
+ fi
+else
+ printf "INFO: /service/bcfg2-client already exists, not replacing...\n"
+fi
+//end if
+
printf "Finished ${ENCAP_PKGNAME} postinstall script.\n"
exit 0