ShellCrash/scripts/shellcrash.service
juewuy 00f10b81f9 ~修复部分情况下向systemd输出大量无用日志的bug
~修复首次使用6-2时倒入失败的bug
~尝试修复部分设备因ipv6导致的dns劫持失败的问题
2024-04-21 14:04:59 +08:00

19 lines
469 B
Desktop File

[Unit]
Description=ShellCrash Core
After=network.target
[Service]
Type=simple
User=shellcrash
ExecStartPre=/etc/ShellCrash/start.sh bfstart
ExecStart=/etc/ShellCrash/CrashCore run -D /etc/ShellCrash -C /tmp/ShellCrash/jsons >/dev/null
ExecStartPost=/etc/ShellCrash/start.sh afstart
ExecStopPost=/etc/ShellCrash/start.sh stop_firewall ; /etc/ShellCrash/start.sh unset_proxy
Restart=on-abnormal
RestartSec=10s
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target