| 
 | 
 
 
发表于 2016-3-9 11:41:48
|
显示全部楼层
 
 
 
 本帖最后由 glzjin 于 2016-3-9 11:48 编辑  
 
我的做法是设置supervisor,挂着。当然你直接screen挂着也行。 
 
 
[ol][program:mu]command=/root/mu/muautorstart=truedirectory=/root/mu/autorestart=truestartsecs=10startretries=36redirect_stderr=trueuser=root                 ; setuid to this UNIX account to run the programlog_stdout=true             ; if true, log program stdout (default true)log_stderr=true             ; if true, log program stderr (def false)logfile=/var/log/mu.log    ; child log path, use NONE for none; default AUTO;logfile_maxbytes=1MB        ; max # logfile bytes b4 rotation (default 50MB);logfile_backups=10          ; # of logfile backups (default 10)[/ol]复制代码 |   
 
 
 
 |