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

推荐订阅源

宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
V
V2EX
The GitHub Blog
The GitHub Blog
T
Threatpost
Microsoft Azure Blog
Microsoft Azure Blog
Security Latest
Security Latest
A
Arctic Wolf
Google DeepMind News
Google DeepMind News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
P
Proofpoint News Feed
W
WeLiveSecurity
Cloudbric
Cloudbric
C
Check Point Blog
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
T
The Exploit Database - CXSecurity.com
U
Unit 42
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
PCI Perspectives
PCI Perspectives
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Spread Privacy
Spread Privacy
Hugging Face - Blog
Hugging Face - Blog
O
OpenAI News
N
News and Events Feed by Topic
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Privacy & Cybersecurity Law Blog
T
Threat Research - Cisco Blogs
博客园 - 聂微东
V
Visual Studio Blog
美团技术团队
Security Archives - TechRepublic
Security Archives - TechRepublic
G
GRAHAM CLULEY
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
CERT Recently Published Vulnerability Notes
Know Your Adversary
Know Your Adversary
小众软件
小众软件
Engineering at Meta
Engineering at Meta
NISL@THU
NISL@THU
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
人人都是产品经理
人人都是产品经理
Cisco Talos Blog
Cisco Talos Blog
Martin Fowler
Martin Fowler
T
Troy Hunt's Blog

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..."