-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ceph#8700 from tchaikov/wip-systemd-deb
debian: package systemd targets Reviewed-by: Javier M. Mellid <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,8 +116,7 @@ binary-arch: build install | |
dh_install -a --sourcedir=$(DESTDIR) --list-missing | ||
install -d -m0755 debian/ceph-base/etc/logrotate.d | ||
install -m0644 debian/ceph.logrotate debian/ceph-base/etc/logrotate.d | ||
dh_installinit -p ceph-base --name ceph --no-start | ||
dh_installinit -p radosgw --no-start | ||
|
||
# dh_installinit is only set up to handle one upstart script | ||
# per package, so do this ourselves | ||
install -d -m0755 debian/ceph-base/etc/init | ||
|
@@ -155,18 +154,28 @@ binary-arch: build install | |
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-base/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-osd/lib/systemd/system/[email protected] | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-osd/lib/systemd/system/[email protected] | ||
install -m0644 systemd/ceph-mon.target debian/ceph-mon/lib/systemd/system | ||
install -m0644 systemd/ceph-osd.target debian/ceph-osd/lib/systemd/system | ||
|
||
install -d -m0755 debian/ceph-mds/lib/systemd/system | ||
install -m0644 systemd/[email protected] debian/ceph-mds/lib/systemd/system | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mds/lib/systemd/system/[email protected] | ||
install -m0644 systemd/ceph-mds.target debian/ceph-mds/lib/systemd/system | ||
|
||
install -d -m0755 debian/radosgw/lib/systemd/system | ||
install -m0644 systemd/[email protected] debian/radosgw/lib/systemd/system | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/radosgw/lib/systemd/system/[email protected] | ||
install -m0644 systemd/ceph-radosgw.target debian/radosgw/lib/systemd/system | ||
|
||
install -d -m0755 debian/rbd-mirror/lib/systemd/system | ||
install -m0644 systemd/[email protected] debian/rbd-mirror/lib/systemd/system | ||
sed -i s./etc/sysconfig/./etc/default/.g debian/rbd-mirror/lib/systemd/system/[email protected] | ||
install -m0644 systemd/ceph-rbd-mirror.target debian/rbd-mirror/lib/systemd/system | ||
|
||
dh_systemd_enable | ||
dh_installinit -p ceph-base --name ceph --no-start | ||
dh_installinit -p radosgw --no-start | ||
dh_systemd_start --no-restart-on-upgrade | ||
|
||
dh_installman -a | ||
dh_lintian -a | ||
|