github.com/kelleygo/clashcore@v1.0.2/.github/yiclashcore.service (about)

     1  [Unit]
     2  Description=yiclashcore Daemon, Another Clash Kernel.
     3  After=network.target NetworkManager.service systemd-networkd.service iwd.service
     4  
     5  [Service]
     6  Type=simple
     7  LimitNPROC=500
     8  LimitNOFILE=1000000
     9  CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
    10  AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
    11  Restart=always
    12  ExecStartPre=/usr/bin/sleep 2s
    13  ExecStart=/usr/bin/yiclashcore -d /etc/yiclashcore
    14  ExecReload=/bin/kill -HUP $MAINPID
    15  
    16  [Install]
    17  WantedBy=multi-user.target