mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/syslog-ng: implement systemd enablement using DefaultInstance
Instead of using a manual symlink we use add a DefaultInstance= to the config file This is how upstream wants us to do it and allows systemctl preset to correctly restore it if needed Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr> [yann.morin.1998@free.fr: - split long line - no need for continued line (no use for ';\' ) ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
c27708e148
commit
54ea03ccd7
@ -105,11 +105,9 @@ endef
|
|||||||
# By default syslog-ng installs a .service that requires a config file at
|
# By default syslog-ng installs a .service that requires a config file at
|
||||||
# /etc/default, so provide one with the default values.
|
# /etc/default, so provide one with the default values.
|
||||||
define SYSLOG_NG_INSTALL_INIT_SYSTEMD
|
define SYSLOG_NG_INSTALL_INIT_SYSTEMD
|
||||||
$(INSTALL) -m 0644 -D package/syslog-ng/syslog-ng@default \
|
mkdir $(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d
|
||||||
$(TARGET_DIR)/etc/default/syslog-ng@default
|
printf '[Install]\nDefaultInstance=default\n' \
|
||||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
>$(TARGET_DIR)/usr/lib/systemd/system/syslog-ng@.service.d/buildroot-default-instance.conf
|
||||||
ln -sf ../../../../usr/lib/systemd/system/syslog-ng@.service \
|
|
||||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslog-ng@default.service
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# By default syslog-ng installs a number of sample configuration
|
# By default syslog-ng installs a number of sample configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user