Commit 486ee77f authored by Andrew Lee (李健秋)'s avatar Andrew Lee (李健秋)
Browse files

debian/obs-server.install: ship systemd service files manually.

parent 5e7c6d09
......@@ -2,7 +2,7 @@
# create symlink for product converter by rules file.
# install SLP registration files
# install overview page template
dist/sysconfig.obs-server /etc/default/
dist/sysconfig.obs-server /etc/default/
# Config files
etc/logrotate.d/obs-server
......@@ -72,3 +72,15 @@ usr/lib/obs/server/call-service-in-lxc.sh
# obs-common
usr/lib/obs/server/setup-appliance.sh
# systemd stuff
debian/systemd/obsrepserver.service /lib/systemd/system/
debian/systemd/obssrcserver.service /lib/systemd/system/
debian/systemd/obsdispatcher.service /lib/systemd/system/
debian/systemd/obsscheduler@.service /lib/systemd/system/
debian/systemd/obswarden.service /lib/systemd/system/
debian/systemd/obsdodup.service /lib/systemd/system/
debian/systemd/obsservice.service /lib/systemd/system/
debian/systemd/obspublisher.service /lib/systemd/system/
debian/systemd/obssigner.service /lib/systemd/system/
......@@ -17,33 +17,6 @@ override_dh_install:
dh_install --list-missing
dh_installdebconf
dh_installinit --noscripts --restart-after-upgrade --name obsrepserver
dh_installinit --noscripts --restart-after-upgrade --name obssrcserver
dh_installinit --noscripts --restart-after-upgrade --name obsdispatcher
dh_installinit --noscripts --restart-after-upgrade --name obsscheduler@
dh_installinit --noscripts --restart-after-upgrade --name obswarden
dh_installinit --noscripts --restart-after-upgrade --name obsdodup
dh_installinit --noscripts --restart-after-upgrade --name obsservice
dh_installinit --noscripts --restart-after-upgrade --name obspublisher
dh_installinit --noscripts --restart-after-upgrade --name obssigner
dh_installinit --restart-after-upgrade --name obsapidelayed
dh_installinit --name obsworker --no-start
dh_systemd_enable -p obs-server \
obsrepserver.service \
obssrcserver.service \
obsdispatcher.service \
obswarden.service \
obsdodup.service \
obspublisher.service \
obssigner.service
dh_systemd_start -p obs-server \
obsrepserver.service \
obssrcserver.service \
obsdispatcher.service \
obswarden.service \
obsdodup.service \
obspublisher.service \
obssigner.service
# Rename dh_install installed web service config files.
# (new default since OBS 2.3)
......@@ -80,5 +53,30 @@ override_dh_install:
# Fix Mark scripts as executable until upstream fixes
chmod a+x debian/obs-server/usr/lib/obs/tests/appliance/*t*
override_dh_systemd_enable:
dh_systemd_enable -p obs-server \
obsrepserver.service \
obssrcserver.service \
obsdispatcher.service \
obswarden.service \
obsdodup.service \
obspublisher.service \
obssigner.service
override_dh_installinit:
dh_installinit --restart-after-upgrade --name obsapidelayed
dh_installinit --name obsworker --no-start
override_dh_systemd_start:
dh_systemd_start -p obs-server \
obsrepserver.service \
obssrcserver.service \
obsdispatcher.service \
obswarden.service \
obsdodup.service \
obspublisher.service \
obssigner.service
override_dh_auto_test:
dh_auto_test || true # temporary ignore
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment