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-30 23:12:52 +08:00
|
|
|
ExecStartPre=/etc/ShellCrash/start.sh bfstart
|
2024-04-21 14:04:59 +08:00
|
|
|
ExecStart=/etc/ShellCrash/CrashCore run -D /etc/ShellCrash -C /tmp/ShellCrash/jsons >/dev/null
|
|
|
|
ExecStartPost=/etc/ShellCrash/start.sh afstart
|
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
|