You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
797 B
32 lines
797 B
package com.fr.start; |
|
|
|
import com.fr.exit.DesignerExiter; |
|
import com.fr.process.engine.FineProcessUtils; |
|
import com.fr.process.engine.core.FineProcessEntry; |
|
|
|
/** |
|
* 包装类 改变子进程的进程名 |
|
* |
|
* @author hades |
|
* @version 10.0 |
|
* Created by hades on 2020/3/24 |
|
*/ |
|
public class FineDesigner extends FineProcessEntry { |
|
|
|
public static void main(String[] args) { |
|
|
|
FineDesigner fineDesigner = new FineDesigner(); |
|
FineProcessUtils.run(fineDesigner, args); |
|
} |
|
|
|
@Override |
|
public void run(String[] args) { |
|
|
|
try { |
|
super.run(args); |
|
} catch (Throwable throwable) { |
|
// 守护进程启动时,需要捕获异常。并且退出。 |
|
DesignerExiter.getInstance().exit(throwable); |
|
} |
|
} |
|
}
|
|
|