Skip to content

Instantly share code, notes, and snippets.

@duanckham
Last active January 12, 2021 15:36
Show Gist options
  • Save duanckham/6a493ae44f7e9e5b07e6f422753dfad3 to your computer and use it in GitHub Desktop.
Save duanckham/6a493ae44f7e9e5b07e6f422753dfad3 to your computer and use it in GitHub Desktop.
#!/bin/sh /etc/rc.common
# /etc/init.d/clash
USE_PROCD=1
START=95
start_service()
{
procd_open_instance
procd_set_param respawn
procd_set_param stderr 1
procd_set_param stdout 1
procd_set_param command /root/clash/clash-linux-armv8 -d /root/clash/
procd_close_instance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment