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确保程序运行
最新推荐文章于 2022-03-21 11:11:23 发布