mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
mongoose: systemd support
[Thomas: use relative symbolic link.] Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e9818c9494
commit
de2dd8f473
@ -36,6 +36,14 @@ define MONGOOSE_INSTALL_INIT_SYSV
|
||||
$(TARGET_DIR)/etc/init.d/S85mongoose
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/mongoose/mongoose.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/mongoose.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/mongoose.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mongoose.service
|
||||
endef
|
||||
|
||||
define MONGOOSE_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D -m 644 $(@D)/libmongoose.a \
|
||||
$(STAGING_DIR)/usr/lib/libmongoose.a
|
||||
|
10
package/mongoose/mongoose.service
Normal file
10
package/mongoose/mongoose.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Mongoose HTTP server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/mongoose -document_root /var/www -listening_port 80
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user