📄 setup.stop.out.v1
字号:
ipsec_setup: PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/binipsec_setup: echo "Stopping FreeS/WAN IPsec..."ipsec_setup: if test -r /var/run/ipsec_setup.pid ; then status=0 ; . /var/run/ipsec.info ; else echo "stop ordered, but IPsec does not appear to be running!" ; echo "doing cleanup anyway..." ; status=1 ; fiipsec_setup: test -f /var/run/pluto.pid && { if ps -p ` cat /var/run/pluto.pid ` > /dev/null ; then ipsec whack --shutdown | grep -v ^002 ; sleep 1 ; if test -s /var/run/pluto.pid ; then echo "Attempt to shut Pluto down failed! Trying kill:" ; kill ` cat /var/run/pluto.pid ` ; sleep 5 ; fi ; else echo "Removing orphaned /var/run/pluto.pid:" ; fi ; rm -f /var/run/pluto.pid ; }ipsec_setup: ifl=` ifconfig | sed -n -e "/^ipsec/s/ .*//p" ` ; test "X$ifl" != "X" && for i in $ifl ; do ifconfig $i down ; ipsec tncfg --detach --virtual $i ; done ; test -r /proc/net/ipsec_klipsdebug && ipsec klipsdebug --none ; ipsec eroute --clear ; ipsec spi --clear ; lsmod 2>&1 | grep "^ipsec" > /dev/null && rmmod ipsecipsec_setup: test -d /var/lock/subsys && rm -f /var/lock/subsys/ipsecipsec_setup: rm -f /var/run/ipsec.info /var/run/ipsec_setup.pidipsec_setup: echo ...FreeS/WAN IPsec stopped | logger -p daemon.error -t ipsec_setupipsec_setup: exit $status
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -