samba4: bump to version 4.4.9
[buildroot-gz.git] / package / portmap / S13portmap
blob9aa6adfc5b707ace4a3a3df52656e289e1edf8d3
1 #! /bin/sh
3 [ -f /sbin/portmap ] || exit 0
5 start() {
6 printf "Starting portmap: "
7 portmap
8 mkdir -p /var/lock/subsys
9 touch /var/lock/subsys/portmap
10 echo "done"
14 stop() {
15 printf "Stopping portmap: "
16 echo
17 killall portmap
18 rm -rf /var/lock/subsys
19 echo "done"
22 restart() {
23 stop
24 start
25 rm -f /var/run/portmap.state
28 # See how we were called.
29 case "$1" in
30 start)
31 start
33 stop)
34 stop
36 restart|reload)
37 restart
40 echo "Usage: $0 {start|stop|reload|restart}"
41 exit 1
42 esac
44 exit $?