Browse Source

ttyd: add reload trigger

Signed-off-by: Richard Yu <yurichard3839@gmail.com>
lilik-openwrt-22.03
Richard Yu 5 years ago
parent
commit
7331df7bac
No known key found for this signature in database GPG Key ID: D16286AFD4E1FFF3
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      utils/ttyd/Makefile
  2. +4
    -0
      utils/ttyd/files/ttyd.init

+ 1
- 1
utils/ttyd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ttyd PKG_NAME:=ttyd
PKG_VERSION:=1.5.2 PKG_VERSION:=1.5.2
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)?


+ 4
- 0
utils/ttyd/files/ttyd.init View File

@ -96,3 +96,7 @@ shutdown() {
# close all open connections # close all open connections
killall "$NAME" killall "$NAME"
} }
service_triggers() {
procd_add_reload_trigger "$NAME"
}

Loading…
Cancel
Save