Hook to start frameworkd
[gregoa/zavai.git] / hooks / gsm
1 #!/bin/sh
2
3 case "$1" in
4         # At the start of zavai
5         status)
6         ;;
7         # Run, blocking until the process ends
8         run)
9                 if [ -x /usr/bin/frameworkd ]
10                 then
11                         # Start frameworkd for GSM services only
12                         exec /usr/bin/frameworkd -s ogsmd > /tmp/zavai-frameworkd.log 2>&1
13                 else
14                         # For testing
15                         exec sleep 10
16                 fi
17         ;;
18         *)
19                 echo "Usage: $0 {run|status}." >&2
20                 exit 1
21         ;;
22 esac
23
24 exit 0