Permalink
Browse files

using chkconfig to register the yadtreceiver service

  • Loading branch information...
1 parent 74112a0 commit 20b4d34ee387469031a69560834dfa0630541097 @mriehl mriehl committed Feb 5, 2013
Showing with 7 additions and 2 deletions.
  1. +2 −0 build.py
  2. +1 −0 post-install.sh
  3. +1 −0 post-uninstall.sh
  4. +3 −2 setup.cfg
View
2 build.py
@@ -53,6 +53,8 @@ def set_properties (project):
project.set_property('copy_resources_target', '$dir_dist')
project.get_property('filter_resources_glob').append('**/yadtreceiver/__init__.py')
project.get_property('copy_resources_glob').append('setup.cfg')
+ project.get_property('copy_resources_glob').append('post-install.sh')
+ project.get_property('copy_resources_glob').append('post-uninstall.sh')
project.set_property('dir_dist_scripts', 'scripts')
View
1 post-install.sh
@@ -0,0 +1 @@
+/sbin/chkconfig --add yadtreceiver
View
1 post-uninstall.sh
@@ -0,0 +1 @@
+/sbin/chkconfig --del yadtreceiver
View
5 setup.cfg
@@ -1,5 +1,6 @@
[bdist_rpm]
packager = Arne Hilmann <arne.hilmann@gmail.com>
-requires = python >= 2.6 python-twisted >= 12 yadtbroadcast-client
+requires = python >= 2.6 python-twisted >= 12 yadtbroadcast-client chkconfig
release = 2%{?dist}
-
+post-install = post-install.sh
+post-uninstall = post-uninstall.sh

0 comments on commit 20b4d34

Please sign in to comment.