/etc/init.d/
START
STOP
start
stop
restart
enable
disable
**************************************************************************************************************
#!/bin/sh /etc/rc.common
#!/bin/sh /etc/rc.common START=99 STOP = 10 #代表顺序,99为最后启动,第10个关闭 start() { echo "Starting Frps..." /usr/local/frp/frps -c /usr/local/frp/frps.toml & stop() { echo "Stoping Frps..." killall frps } restart() { echo "Stoping Frps..." stop start }
chmod +x /etc/init.d/frps
/etc/init.d/frps start
/etc/init.d/frps stop
/etc/init.d/frps restart
/etc/init.d/frps enable
/etc/init.d/frps disable
/etc/init.d/frps status
/etc/rc.local
/etc/inittab
系统 -> 启动项