2024-01-06 22:35:41 +08:00
|
|
|
[Unit]
|
|
|
|
Description=ShellCrash Core
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=root
|
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
|
|
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
|
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
|
|
|
|
ExecStartPost=/etc/ShellCrash/start.sh afstart
|
|
|
|
ExecStopPost=/etc/ShellCrash/start.sh stop_firewall ; /etc/ShellCrash/start.sh unset_proxy
|
2024-01-06 22:35:41 +08:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
|
|
|
LimitNOFILE=infinity
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|