Skip to content

Commit

Permalink
Fixed ICE-6630 - use systemd scripts on Ubuntu 15.04
Browse files Browse the repository at this point in the history
  • Loading branch information
bentoi committed Jun 23, 2015
1 parent 4f32198 commit 394f638
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 18 deletions.
3 changes: 2 additions & 1 deletion dpkg/control
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 9.0.0),
oracle-java7-installer,
php5-dev,
php5-cli,
javahelper (>= 0.45)
javahelper (>= 0.45),
dh-systemd (>= 1.3)
Standards-Version: 3.9.4
Homepage: https://zeroc.com

Expand Down
19 changes: 7 additions & 12 deletions dpkg/rules
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ icebox_install:
@echo usr/share/man/man1/icebox.1 >> $(CURDIR)/debian/zeroc-icebox.install

%:
dh $@ --parallel --with php5 --with javahelper
dh $@ --parallel --with php5 --with javahelper --with systemd

override_dh_auto_build-arch:
if [ ! -d cpp11 ]; then cp -r cpp cpp11; fi
Expand Down Expand Up @@ -113,6 +113,11 @@ override_dh_auto_clean-indep:

override_dh_auto_test:

override_dh_installinit:
dh_installinit --noscripts --name icegridregistry
dh_installinit --noscripts --name icegridnode
dh_installinit --noscripts --name glacier2router

override_dh_install: icebox_install

#
Expand All @@ -130,7 +135,7 @@ override_dh_install: icebox_install
mkdir -p $(DESTDIR)$(prefix)/lib/$(DEB_HOST_MULTIARCH)/c++11

#
# Move C++11 libarries and binaries to their locations
# Move C++11 libraries and binaries to their locations
#
for name in $(CPP11_LIB_NAMES) ; \
do \
Expand All @@ -151,16 +156,6 @@ override_dh_install: icebox_install
cp debian/zeroc-icegrid.icegridnode.conf $(DESTDIR)/etc/icegridnode.conf
cp debian/zeroc-icegrid.icegridregistry.conf $(DESTDIR)/etc/icegridregistry.conf

mkdir -p $(DESTDIR)/etc/init.d
cp debian/zeroc-glacier2.glacier2router $(DESTDIR)/etc/init.d/glacier2router
chmod 755 $(DESTDIR)/etc/init.d/glacier2router

cp debian/zeroc-icegrid.icegridnode $(DESTDIR)/etc/init.d/icegridnode
chmod 755 $(DESTDIR)/etc/init.d/icegridnode

cp debian/zeroc-icegrid.icegridregistry $(DESTDIR)/etc/init.d/icegridregistry
chmod 755 $(DESTDIR)/etc/init.d/icegridregistry

mkdir -p $(DESTDIR)/var/lib/ice/icegrid/registry
mkdir -p $(DESTDIR)/var/lib/ice/icegrid/node1

Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions dpkg/zeroc-glacier2.glacier2router.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
#

[Unit]
Description=The Glacier2 router daemon.\
Glacier2 is the firewall traversal service for the Internet\
Communications Engine (Ice).
Documentation=man:glacier2router(1)
Documentation=https://doc.zeroc.com/display/Ice/Getting+Started+with+Glacier2
After=syslog.target network.target icegridregistry.service icegridnode.service

[Service]
ExecStart=/usr/bin/glacier2router --Ice.Config=/etc/glacier2router.conf
KillMode=process
User=ice

[Install]
WantedBy=multi-user.target
2 changes: 0 additions & 2 deletions dpkg/zeroc-glacier2.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
etc/init.d/glacier2router

etc/glacier2router.conf

usr/bin/glacier2router
Expand Down
File renamed without changes.
20 changes: 20 additions & 0 deletions dpkg/zeroc-icegrid.icegridnode.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
#

[Unit]
Description=The IceGrid node daemon.\
IceGrid is the server deployment and monitoring for the Internet\
Communications Engine (Ice). An IceGrid domain consists of one master\
registry, zero or more slave registries, and zero or more IceGrid nodes.
Documentation=man:icegridnode(1)
Documentation=https://doc.zeroc.com/display/Ice/icegridnode
After=syslog.target network.target icegridregistry.service

[Service]
ExecStart=/usr/bin/icegridnode --Ice.Config=/etc/icegridnode.conf
KillMode=process
User=ice

[Install]
WantedBy=multi-user.target
File renamed without changes.
21 changes: 21 additions & 0 deletions dpkg/zeroc-icegrid.icegridregistry.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
#

[Unit]
Description=The IceGrid registry daemon.\
IceGrid is the server deployment and monitoring for the Internet\
Communications Engine (Ice). An IceGrid domain consists of one master\
registry, zero or more slave registries, and zero or more IceGrid nodes.
Documentation=man:icegridregistry(1)
Documentation=https://doc.zeroc.com/display/Ice/icegridregistry
Before=icegridnode.service
After=syslog.target network.target

[Service]
ExecStart=/usr/bin/icegridregistry --Ice.Config=/etc/icegridregistry.conf
KillMode=process
User=ice

[Install]
WantedBy=multi-user.target
3 changes: 0 additions & 3 deletions dpkg/zeroc-icegrid.install
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
etc/init.d/icegridnode
etc/init.d/icegridregistry

etc/icegridnode.conf
etc/icegridregistry.conf

Expand Down

0 comments on commit 394f638

Please sign in to comment.