惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
V
Visual Studio Blog
博客园_首页
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
J
Java Code Geeks
月光博客
月光博客
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
B
Blog RSS Feed
S
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
W
WeLiveSecurity
A
Arctic Wolf
U
Unit 42
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
量子位
B
Blog
T
The Exploit Database - CXSecurity.com
C
Cisco Blogs
博客园 - 三生石上(FineUI控件)
H
Help Net Security
博客园 - 叶小钗
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
小众软件
小众软件
雷峰网
雷峰网
TaoSecurity Blog
TaoSecurity Blog
Schneier on Security
Schneier on Security

puzzle9 blog

webdav - puzzle9 blog parser video tencent - puzzle9 blog wstunnel - puzzle9 blog rclone - puzzle9 blog debian 转换为 pve - puzzle9 blog nfs - puzzle9 blog caddy - puzzle9 blog win 系统部署 by WinRM - puzzle9 blog hl7 初探 - puzzle9 blog realm 端口转发 - puzzle9 blog airflow - puzzle9 blog mysql 迁移到 mssql - puzzle9 blog 租房啊 - puzzle9 blog cr660x 路由器研究 - puzzle9 blog hs8145v 光猫研究 - puzzle9 blog dae 跨墙 - puzzle9 blog ZeroTier 打洞 🕊 - puzzle9 blog rathole 穿透 - puzzle9 blog WireGuard 组网 - puzzle9 blog
webhookd 发布 - puzzle9 blog
2025-08-14 · via puzzle9 blog

webhookd 发布

发布于:2025-08-14 16:30:57 访问:

要说 什么简单 与 复杂并存

唯有 发布

就是有点耗 流量摸鱼

定义

这是个回调通知工具 是属于被动的

安装

直接下载 releases 就行

1
2
3
4
mkdir -p /data/webhookd/logs
cd /data/webhookd/
wget https://github.com/ncarlier/webhookd/releases/download/v1.20.2/webhookd-linux-amd64.tgz
tar -xvf webhookd-linux-amd64.tgz

/etc/systemd/system/webhookd.service

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=WEBHOOKD

[Service]
ExecStart=/data/webhookd/webhookd
User={user}
Group={user}
EnvironmentFile=-/data/webhookd/webhookd.env
Restart=always
Type=simple
RestartSec=30s

[Install]
WantedBy=multi-user.target

/data/webhookd/webhookd.env

1
2
3
4
5
6
7
8
9
###
# Webhookd configuration
###
WHD_LISTEN_ADDR=":9310"
WHD_HOOK_DEFAULT_EXT=sh
WHD_HOOK_TIMEOUT=600
WHD_HOOK_SCRIPTS="/data/webhookd/scripts"
WHD_HOOK_LOG_DIR="/data/webhookd/logs"
WHD_HOOK_WORKERS=2

脚本

编译

1
2
3
4
5
6
7
8
9
10
#!/bin/bash
LOCKFILE="/data/webhookd/tmp/build_web.lock"

exec 200>"$LOCKFILE"
flock -n 200 || {
echo "另一个编译正在运行中,退出..."
exit 1
}

echo "todo..."