<service>
    <id>singbox</id>
    <name>singbox</name>
    <description>singbox</description>
    <executable>%BASE%\sing-box.exe</executable>
    <arguments>run -c %BASE%\config.json</arguments>
    <logmode>rotate</logmode>
    <onfailure action="restart" delay="10 sec" />
    <onfailure action="restart" delay="20 sec" />
    <onfailure action="restart" delay="30 sec" />
    <onfailure action="none" />
    <onexit action="restart" />
    <onexit action="restart" />
    <onexit action="restart" />
    <onexit action="none" />
    <download from="~url~" to="%BASE%\config.json"/>
</service>