2024-01-06 22:35:41 +08:00
|
|
|
[Unit]
|
|
|
|
Description=ShellCrash Core
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2024-01-24 16:09:10 +08:00
|
|
|
User=shellcrash
|
2024-01-10 22:02:15 +08:00
|
|
|
ExecStartPre=/etc/ShellCrash/start.sh bfstart
|
|
|
|
ExecStart=/etc/ShellCrash/CrashCore run -D /etc/ShellCrash -c /tmp/ShellCrash/config.json
|
2024-01-24 16:09:10 +08:00
|
|
|
ExecStartPost=/etc/ShellCrash/start.sh afstart >/dev/null &
|
2024-01-10 22:02:15 +08:00
|
|
|
ExecStopPost=/etc/ShellCrash/start.sh stop_firewall ; /etc/ShellCrash/start.sh unset_proxy
|
2024-01-24 16:09:10 +08:00
|
|
|
Restart=on-abnormal
|
|
|
|
RestartSec=10s
|
2024-01-06 22:35:41 +08:00
|
|
|
LimitNOFILE=infinity
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|