安装部署
MacOS安装RabbitMQ
API网关部署
Centos安装Chrome浏览器
gitlab
gitlab-cicd
gitlab-runner安装配置
Gitlab-CICD实践篇
gitlab维护
gitlab备份-异地恢复-升级
gitlab从13.10.2升级至14.4.1出现的问题
Let's Encrypt
Let's Encrypt 申请证书
certbot发起web认证请求流程
安装CMDBUILD
vim配置
keepalived
配置样例
wine tips
supervisord
kafka
zookeeper
minio
django
jupyter
supervisor管理的kafka zookeeper集群部署
dnsmasq
apisix
APISIX结合skywalking对各个服务的访问情况进行监控
APISIX通过consul动态发现服务
Grafana Labs
Loki(stack)
etcd
redis
mongodb
mongodb添加仲裁节点
consul
sqlite更新升級
openssl安裝升級
emby
inotify-tools
caddy
caddy规则
ohmyzsh tips
debian-nvidia-container-runtime
openwrt+802.1x+freeradius+casdoor
本文档使用 MrDoc 发布
-
+
首页
inotify-tools
# inotify-tools inode事件监听工具,可以用来监听文件系统变更(比如lsyncd同步的文件),结合管道可以做到在同步配置文件后重启指定的服务。 ## inotify service ```shell [Unit] Description=inotify-tools After=network.target [Service] Type=simple WorkingDirectory=/opt/maintaintools/inotify-tools ExecStart=/opt/maintaintools/inotify-tools/inotify-tools.sh ExecStop=/bin/kill -s TERM $MAINPID [Install] WantedBy=multi-user.target ``` ## inotify 脚本 ```shell #!/bin/bash inotifywait -mrq -e modify,create,move,delete /usr/local/nginx /etc/letsencrypt/ |while read events do nginx -t if [ $? -eq 0 ] ; then nginx -s reload fi done ```
zhangky
2022年6月11日 14:45
分享文档
收藏文档
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码