File: init.vold

package info (click to toggle)
vold 1.1-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 112 kB
  • ctags: 66
  • sloc: cpp: 508; makefile: 56; sh: 31; perl: 16
file content (31 lines) | stat: -rw-r--r-- 661 bytes parent folder | download
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
28
29
30
31
#!/bin/sh

VOLD=/usr/sbin/vold

test -x $VOLD || exit 0

case "$1" in
  start)
    echo -n "Starting volume daemon: vold"
    start-stop-daemon --start --exec $VOLD --pidfile /var/run/vold.pid 
    echo .
    ;;
  stop)
    test -f /var/run/vold.pid || exit 0
    test -x /usr/bin/volq || exit 0
    echo -n "Stopping vold"
    /usr/bin/volq quit
    echo .
    ;;
  restart|force-reload)
    # I must implement this---but i can't stop and restart!
    /usr/bin/volq quit
    sleep 1
    start-stop-daemon --start --exec $VOLD --pidfile /var/run/vold.pid 
    ;;
  *)
    echo "Usage: /etc/init.d/vold {start|stop|restart|force-reload}"
    exit 1
esac

exit 0