Use Supervisor manage openvpn client damon

1、安装 Supervisor
$sudo aptitude install supervisor
2、在 /etc/supervisor/conf.d 建立配置文件如下,假定文件名为 hhlsw-openvpn.conf
[program:horizon]
process_name=%(program_name)s
command=php /home/forge/app.com/artisan horizon
autostart=true
autorestart=true
user=forge
redirect_stderr=true
stdout_logfile=/home/forge/app.com/horizon.log
3、重启 Supervisor 配置生效
$sudo /etc/init.d/supervisor restart

猜你喜欢

转载自www.cnblogs.com/mouseleo/p/9297500.html