don't use locales when retrieving subversion release number (closes: #54)
[openwrt.git] / openwrt / package / samba / files / samba.init
1 #!/bin/sh
2
3 DEFAULT=/etc/default/samba
4 RUN_D=/var/run/samba
5 NMBD_PID_F=$RUN_D/nmbd.pid
6 SMBD_PID_F=$RUN_D/smbd.pid
7 [ -f $DEFAULT ] && . $DEFAULT
8
9 case $1 in
10 start)
11 mkdir -p $RUN_D
12 nmbd -D $NMBD_OPTIONS
13 smbd -D $SMBD_OPTIONS
14 ;;
15 stop)
16 [ -f $SMBD_PID_F ] && kill $(cat $SMBD_PID_F)
17 [ -f $NMBD_PID_F ] && kill $(cat $NMBD_PID_F)
18 ;;
19 *)
20 echo "usage: $0 (start|stop)"
21 exit 1
22 esac
23
24 exit $?
This page took 0.052047 seconds and 5 git commands to generate.