脚本1
代码: 全选
#!/bin/sh /etc/rc.common
# /init.d/goagent
START=99
start()
{
python /app/goagent/local/proxy.py
}
stop()
{
killall python /app/goagent/local/proxy.py
}
代码: 全选
#!/bin/sh /etc/rc.common
# /init.d/goagent
START=99
start()
{
python /app/goagent/local/proxy.py &
}
stop()
{
python /app/goagent/local/proxy.py -s &
}
我想知道这个“-s”是什么作用,什么意思?用/etc/init.d/goagent stop测试,goagent会自动再次启动。
还有今天改97了,昨天用99用reboot会重启两次,刚刚用97用reboot没有重复重启。
这个参数我是抄自离线下载的脚本,但放狗和败毒我都没找着这个参数的作用。
先谢谢了!