puppet确保程序运行
发布日期:2021-05-15 06:41:55 浏览次数:15 分类:精选文章

本文共 552 字,大约阅读时间需要 1 分钟。

exec {
'keep-nginx-running' :
user => 'root',
unless => 'ps -x | grep nginx|grep -v grep',
command => 'systemctl start nginx.service',
path => '/usr/bin:/usr/sbin:/sbin:/bin',
}
```html
exec {
'keep-nginx-running' :
user => 'root',
unless => 'ps -x | grep nginx|grep -v grep',
command => 'systemctl start nginx.service',
path => '/usr/bin:/usr/sbin:/sbin:/bin',
}
上一篇:puppet替换文件中的string
下一篇:foreman ubuntu16快速安装

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2025年05月01日 15时46分40秒