]> ToastFreeware Gitweb - gregoa/zavai.git/blobdiff - hooks/gsm
Hook to start frameworkd
[gregoa/zavai.git] / hooks / gsm
index c184c8e4dacee90eec6e5d806765530813118a87..a50ea71365e89559ccc559ca05bda55979343a78 100755 (executable)
--- a/hooks/gsm
+++ b/hooks/gsm
@@ -6,7 +6,14 @@ case "$1" in
        ;;
        # Run, blocking until the process ends
        run)
-               exec sleep 10
+               if [ -x /usr/bin/frameworkd ]
+               then
+                       # Start frameworkd for GSM services only
+                       exec /usr/bin/frameworkd -s ogsmd > /tmp/zavai-frameworkd.log 2>&1
+               else
+                       # For testing
+                       exec sleep 10
+               fi
        ;;
        *)
                echo "Usage: $0 {run|status}." >&2