Skip to content

Commit 394f638

Browse files
committed
Fixed ICE-6630 - use systemd scripts on Ubuntu 15.04
1 parent 4f32198 commit 394f638

10 files changed

+69
-18
lines changed

dpkg/control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 9.0.0),
1111
oracle-java7-installer,
1212
php5-dev,
1313
php5-cli,
14-
javahelper (>= 0.45)
14+
javahelper (>= 0.45),
15+
dh-systemd (>= 1.3)
1516
Standards-Version: 3.9.4
1617
Homepage: https://zeroc.com
1718

dpkg/rules

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ icebox_install:
8484
@echo usr/share/man/man1/icebox.1 >> $(CURDIR)/debian/zeroc-icebox.install
8585

8686
%:
87-
dh $@ --parallel --with php5 --with javahelper
87+
dh $@ --parallel --with php5 --with javahelper --with systemd
8888

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

114114
override_dh_auto_test:
115115

116+
override_dh_installinit:
117+
dh_installinit --noscripts --name icegridregistry
118+
dh_installinit --noscripts --name icegridnode
119+
dh_installinit --noscripts --name glacier2router
120+
116121
override_dh_install: icebox_install
117122

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

132137
#
133-
# Move C++11 libarries and binaries to their locations
138+
# Move C++11 libraries and binaries to their locations
134139
#
135140
for name in $(CPP11_LIB_NAMES) ; \
136141
do \
@@ -151,16 +156,6 @@ override_dh_install: icebox_install
151156
cp debian/zeroc-icegrid.icegridnode.conf $(DESTDIR)/etc/icegridnode.conf
152157
cp debian/zeroc-icegrid.icegridregistry.conf $(DESTDIR)/etc/icegridregistry.conf
153158

154-
mkdir -p $(DESTDIR)/etc/init.d
155-
cp debian/zeroc-glacier2.glacier2router $(DESTDIR)/etc/init.d/glacier2router
156-
chmod 755 $(DESTDIR)/etc/init.d/glacier2router
157-
158-
cp debian/zeroc-icegrid.icegridnode $(DESTDIR)/etc/init.d/icegridnode
159-
chmod 755 $(DESTDIR)/etc/init.d/icegridnode
160-
161-
cp debian/zeroc-icegrid.icegridregistry $(DESTDIR)/etc/init.d/icegridregistry
162-
chmod 755 $(DESTDIR)/etc/init.d/icegridregistry
163-
164159
mkdir -p $(DESTDIR)/var/lib/ice/icegrid/registry
165160
mkdir -p $(DESTDIR)/var/lib/ice/icegrid/node1
166161

File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
3+
#
4+
5+
[Unit]
6+
Description=The Glacier2 router daemon.\
7+
Glacier2 is the firewall traversal service for the Internet\
8+
Communications Engine (Ice).
9+
Documentation=man:glacier2router(1)
10+
Documentation=https://doc.zeroc.com/display/Ice/Getting+Started+with+Glacier2
11+
After=syslog.target network.target icegridregistry.service icegridnode.service
12+
13+
[Service]
14+
ExecStart=/usr/bin/glacier2router --Ice.Config=/etc/glacier2router.conf
15+
KillMode=process
16+
User=ice
17+
18+
[Install]
19+
WantedBy=multi-user.target

dpkg/zeroc-glacier2.install

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
etc/init.d/glacier2router
2-
31
etc/glacier2router.conf
42

53
usr/bin/glacier2router
File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
3+
#
4+
5+
[Unit]
6+
Description=The IceGrid node daemon.\
7+
IceGrid is the server deployment and monitoring for the Internet\
8+
Communications Engine (Ice). An IceGrid domain consists of one master\
9+
registry, zero or more slave registries, and zero or more IceGrid nodes.
10+
Documentation=man:icegridnode(1)
11+
Documentation=https://doc.zeroc.com/display/Ice/icegridnode
12+
After=syslog.target network.target icegridregistry.service
13+
14+
[Service]
15+
ExecStart=/usr/bin/icegridnode --Ice.Config=/etc/icegridnode.conf
16+
KillMode=process
17+
User=ice
18+
19+
[Install]
20+
WantedBy=multi-user.target
File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Copyright (c) 2007-2015 ZeroC, Inc. All rights reserved.
3+
#
4+
5+
[Unit]
6+
Description=The IceGrid registry daemon.\
7+
IceGrid is the server deployment and monitoring for the Internet\
8+
Communications Engine (Ice). An IceGrid domain consists of one master\
9+
registry, zero or more slave registries, and zero or more IceGrid nodes.
10+
Documentation=man:icegridregistry(1)
11+
Documentation=https://doc.zeroc.com/display/Ice/icegridregistry
12+
Before=icegridnode.service
13+
After=syslog.target network.target
14+
15+
[Service]
16+
ExecStart=/usr/bin/icegridregistry --Ice.Config=/etc/icegridregistry.conf
17+
KillMode=process
18+
User=ice
19+
20+
[Install]
21+
WantedBy=multi-user.target

dpkg/zeroc-icegrid.install

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
etc/init.d/icegridnode
2-
etc/init.d/icegridregistry
3-
41
etc/icegridnode.conf
52
etc/icegridregistry.conf
63

0 commit comments

Comments
 (0)