Blame view

buildroot/buildroot-2016.08.1/package/xl2tp/xl2tpd 526 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  #!/bin/sh
  #
  PATH=/bin:/usr/bin:/sbin:/usr/sbin
  DAEMON=/usr/sbin/xl2tpd
  PIDFILE=/var/run/xl2tpd.pid
  
  test -f $DAEMON || exit 0
  
  case "$1" in
    start)
      start-stop-daemon -S  -p $PIDFILE -x $DAEMON -- -D &
      ;;
    stop)
      start-stop-daemon -K  -p $PIDFILE -x $DAEMON
      ;;
    restart|force-reload)
      start-stop-daemon -K  -p $PIDFILE -x $DAEMON 
      sleep 1
      start-stop-daemon -S  -p $PIDFILE -x $DAEMON
      ;;
    *)
      echo "Usage: /etc/init.d/xl2tdp {start|stop|restart|force-reload}"
      exit 1
      ;;
  esac
  
  exit 0