mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +00:00
lighttpd: bbapend 1.4.29 to add native systemd support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
13
meta-oe/recipes-extended/lighttpd/lighttpd/lighttpd.service
Normal file
13
meta-oe/recipes-extended/lighttpd/lighttpd/lighttpd.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Lightning Fast Webserver With Light System Requirements
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=-/etc/sysconfig/lighttpd
|
||||
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
16
meta-oe/recipes-extended/lighttpd/lighttpd_1.4.29.bbappend
Normal file
16
meta-oe/recipes-extended/lighttpd/lighttpd_1.4.29.bbappend
Normal file
@@ -0,0 +1,16 @@
|
||||
FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||
|
||||
PRINC = "1"
|
||||
|
||||
SRC_URI += "file://lighttpd.service"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${base_libdir}/systemd/systemd/
|
||||
install -m 0644 ${WORKDIR}/lighttpd.service ${D}${base_libdir}/systemd/systemd/
|
||||
|
||||
install -d ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
|
||||
ln -sf ../lighttpd.service ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
|
||||
}
|
||||
|
||||
FILES_${PN} += "${base_libdir}/systemd"
|
||||
|
||||
Reference in New Issue
Block a user