debian: Clean up services starting
This commit does several things at once: - Create a symlink for /etc/init.d/functions (centos) from /lib/lsb/init-functions, to maintain compatibility. - Make /etc/systemd/system-preset so that when a service is installed it places a preset file in the directory. - Remove hardcoded services. Test Plan: PASS Build package PASS Build and install ISO PASS check for symlink /etc/init.d/functions PASS check for /etc/systemd/system-preset PASS check for running services Story: 2009101 Task: 44678 Signed-off-by: Chuck Short <charles.short@windriver.com> Change-Id: I9c5ec7eb7177dd7dde954db5d0c3d3f602677ccd
This commit is contained in:
parent
304571c85a
commit
8f11e0df76
@ -1 +1 @@
|
||||
/lib/systemd/system-preset/*
|
||||
/etc/systemd/system-preset/*
|
||||
|
@ -0,0 +1,2 @@
|
||||
# enable compatibility between Debian and Centos
|
||||
/lib/lsb/init-functions /etc/init.d/functions
|
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "source /lib/lsb/init-functions" > /etc/init.d/functions
|
||||
|
||||
#DEBHELPER#
|
@ -4,8 +4,8 @@
|
||||
dh $@
|
||||
|
||||
override_dh_auto_install:
|
||||
install -d debian/tmp/lib/systemd/system-preset
|
||||
install -m 544 stx/systemd/99-default-disable.preset debian/tmp/lib/systemd/system-preset
|
||||
install -m 544 stx/systemd/90-default.preset debian/tmp/lib/systemd/system-preset
|
||||
install -m 544 stx/systemd/85-debpkg-issues.preset debian/tmp/lib/systemd/system-preset
|
||||
install -d debian/tmp/etc/systemd/system-preset
|
||||
install -m 544 stx/systemd/99-default-disable.preset debian/tmp/etc/systemd/system-preset
|
||||
install -m 544 stx/systemd/90-default.preset debian/tmp/etc/systemd/system-preset
|
||||
install -m 544 stx/systemd/85-debpkg-issues.preset debian/tmp/etc/systemd/system-preset
|
||||
dh_install
|
||||
|
@ -7,7 +7,6 @@
|
||||
# with all packages installed regardless of personality.
|
||||
|
||||
# config-gate.spec
|
||||
enable config.service
|
||||
#enable worker-config.service
|
||||
|
||||
# controllerconfig.spec
|
||||
|
Loading…
Reference in New Issue
Block a user