add gackscollector initscript to rpm
smbaker [Wed, 12 Sep 2012 19:37:50 +0000 (12:37 -0700)]
rpm_builds/SPECS/gackscentral.spec.template
rpm_builds/build-gackscentral

index d9c9428..d0fb976 100644 (file)
@@ -67,6 +67,7 @@ install gackscli.py %{buildroot}/usr/local/gackscentral/bin
 install gacksclient.py %{buildroot}/usr/local/gackscentral/bin
 install gackscollector.py %{buildroot}/usr/local/gackscentral/bin
 install gacksconfig.py %{buildroot}/usr/local/gackscentral/bin
+install gacksdaemon.py %{buildroot}/usr/local/gackscentral/bin
 install gacksdb.py %{buildroot}/usr/local/gackscentral/bin
 install gacksexcep.py %{buildroot}/usr/local/gackscentral/bin
 install gacksenforce.py %{buildroot}/usr/local/gackscentral/bin
@@ -97,6 +98,7 @@ install gackscentral.cron %{buildroot}/etc/cron.d
 
 install gacksbackend.init %{buildroot}/etc/init.d
 install gackslogserver.init %{buildroot}/etc/init.d
+install gackscollector.init %{buildroot}/etc/init.d
 
 install gackslog.conf %{buildroot}/etc/gacks
 
@@ -138,6 +140,8 @@ chkconfig gacksbackend.init on
 service gacksbackend.init restart
 chkconfig gackslogserver.init on
 service gackslogserver.init restart
+chkconfig gackscollector.init on
+service gackscollector.init restart
 
 %preun
 if [ $1 = 0 ]; then
@@ -171,6 +175,7 @@ fi
 /usr/local/gackscentral/bin/gacksclient.py
 /usr/local/gackscentral/bin/gackscollector.py
 /usr/local/gackscentral/bin/gacksconfig.py
+/usr/local/gackscentral/bin/gacksdaemon.py
 /usr/local/gackscentral/bin/gacksdb.py
 /usr/local/gackscentral/bin/gacksenforce.py
 /usr/local/gackscentral/bin/gacksexcep.py
@@ -205,6 +210,8 @@ fi
 %attr(0755,root,root) /etc/init.d/gacksbackend.init
 /etc/init.d/gackslogserver.init
 %attr(0755,root,root) /etc/init.d/gackslogserver.init
+/etc/init.d/gackscollector.init
+%attr(0755,root,root) /etc/init.d/gackscollector.init
 
 # geniwrapper stuff
 #/usr/local/gackscentral/bin/sfa/__init__.py
index 054e1f7..a2e697a 100755 (executable)
@@ -34,6 +34,7 @@ cp $SOURCE/apps/gacks/gackscentral.cron $FOLDER
 
 cp $SOURCE/apps/gacks/gacksbackend.init $FOLDER
 cp $SOURCE/apps/gacks/gackslogserver.init $FOLDER
+cp $SOURCE/apps/gacks/gackscollector.init $FOLDER
 
 chmod +x $FOLDER/*.sh
 chmod +x $FOLDER/gackscli.py