Github user vincentbernat commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1541#discussion_r73830801
  
    --- Diff: debian/rules ---
    @@ -116,17 +132,24 @@ override_dh_auto_install:
     
        # cloudstack-usage
        mkdir $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/usage
    -   mkdir $(DESTDIR)/var/log/$(PACKAGE)/usage
        mkdir $(DESTDIR)/usr/share/$(PACKAGE)-usage
        mkdir $(DESTDIR)/usr/share/$(PACKAGE)-usage/plugins
        install -D usage/target/cloud-usage-$(VERSION).jar 
$(DESTDIR)/usr/share/$(PACKAGE)-usage/lib/$(PACKAGE)-usage.jar
        install -D usage/target/dependencies/* 
$(DESTDIR)/usr/share/$(PACKAGE)-usage/lib/
        cp usage/target/transformed/db.properties 
$(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/usage/
        cp usage/target/transformed/log4j-cloud_usage.xml 
$(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/usage/log4j-cloud.xml
    -   install -D packaging/debian/init/cloud-usage 
$(DESTDIR)/$(SYSCONFDIR)/init.d/$(PACKAGE)-usage
    +
    +   install -d -m0755 debian/$(PACKAGE)-usage/etc/init.d
    +   install -D -m0755 packaging/debian/$(PACKAGE)-usage.init 
debian/$(PACKAGE)-usage/etc/init.d/$(PACKAGE)-usage
    +   install -d -m0755 debian/$(PACKAGE)-usage/lib/systemd/system
    +   install -m0644 packaging/debian/$(PACKAGE)-usage.service 
debian/$(PACKAGE)-usage/lib/systemd/system/$(PACKAGE)-usage.service
    +   install -m0644 packaging/debian/$(PACKAGE)-usage.default 
$(DESTDIR)/$(SYSCONFDIR)/default/$(PACKAGE)-usage
     
     override_dh_installinit:
        dh_installinit -pcloudstack-management -pcloudstack-agent 
-pcloudstack-usage --onlyscripts --no-start
     
    +override_dh_systemd_enable:
    +   dh_systemd_enable -pcloudstack-agent -pcloudstack-usage
    +
    --- End diff --
    
    This bit needs the `--with systemd` bit mentioned above.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to