cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9462) Systemd packaging for Ubuntu 16.04
Date Thu, 25 Aug 2016 16:51:20 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437207#comment-15437207
] 

ASF GitHub Bot commented on CLOUDSTACK-9462:
--------------------------------------------

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

    https://github.com/apache/cloudstack/pull/1647#discussion_r76281544
  
    --- Diff: debian/rules ---
    @@ -35,13 +37,20 @@ override_dh_auto_install:
     	# cloudstack-agent
     	mkdir $(DESTDIR)/$(SYSCONFDIR)/$(PACKAGE)/agent
     	mkdir $(DESTDIR)/$(SYSCONFDIR)/profile.d
    -	mkdir $(DESTDIR)/var/log/$(PACKAGE)/agent
     	mkdir $(DESTDIR)/usr/share/$(PACKAGE)-agent
     	mkdir $(DESTDIR)/usr/share/$(PACKAGE)-agent/plugins
     	install -D agent/target/cloud-agent-$(VERSION).jar $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/$(PACKAGE)-agent.jar
     	install -D plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm-$(VERSION).jar
$(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/
     	install -D plugins/hypervisors/kvm/target/dependencies/* $(DESTDIR)/usr/share/$(PACKAGE)-agent/lib/
    -	install -D packaging/debian/init/cloud-agent $(DESTDIR)/$(SYSCONFDIR)/init.d/$(PACKAGE)-agent
    +
    +	install -m0755 packaging/debian/$(PACKAGE)-agent.init $(DESTDIR)/$(SYSCONFDIR)/init.d/$(PACKAGE)-agent
    +	install -d -m0755 debian/$(PACKAGE)-agent/lib/systemd/system
    +	# Fix libvirt service name for Debian/Ubuntu
    +	sed -i 's/Requires=libvirtd.service/Requires=libvirt-bin.service/g' packaging/systemd/$(PACKAGE)-agent.service
    +	sed -i 's/After=libvirtd.service/After=libvirt-bin.service/g' packaging/systemd/$(PACKAGE)-agent.service
    +	install -m0644 packaging/systemd/$(PACKAGE)-agent.service debian/$(PACKAGE)-agent/lib/systemd/system/$(PACKAGE)-agent.service
    +	install -m0644 packaging/systemd/$(PACKAGE)-agent.default $(DESTDIR)/$(SYSCONFDIR)/default/$(PACKAGE)-agent
    --- End diff --
    
    Here:
    
    ```
    sed 's+JAVA_HOME=.*+JAVA_HOME=/usr/lib/jvm/default-java+' $(DESTDIR)/$(SYSCONFDIR)/default/$(PACKAGE)-agent
    ```
    
    If people don't want to use the default JRE, they are free to change `/etc/default/cloudstack-agent`.


> Systemd packaging for Ubuntu 16.04
> ----------------------------------
>
>                 Key: CLOUDSTACK-9462
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9462
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Rohit Yadav
>            Assignee: Rohit Yadav
>             Fix For: 4.10.0, 4.9.1
>
>
> Support for building deb packages that will work on Ubuntu 16.04



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message