+#ifdef TIZEN_FEATURE_ACTD
+static int __bt_call_systemact_service(const char *service_name)
+{
+ int ret;
+
+ BT_DBG("Use System Activated : %s", service_name);
+
+ ret = actd_start_unit(UNIT_CONTROL_BUS_TYPE_SYSTEM, service_name, 5000);
+
+ if (ret != UNIT_CONTROL_OK) {
+ BT_ERR("Failed to activate the %s: %d", service_name, ret);
+ /* Return Success even if the activating result is fail */
+ return 0;
+ }
+
+ return 0;
+}
+#else
+static int __bt_call_systemact_service(const char *file_path)
+{
+ BT_DBG("+");
+ FILE *fp;
+
+ if (!file_path) {
+ BT_ERR("service file path is NULL");
+ return -1;
+ }
+
+ if (!access(file_path, F_OK)) {
+ remove(file_path);
+ usleep(100);
+ }
+
+ fp = fopen(file_path, "w");
+ if (!fp) {
+ BT_ERR("Failed to fopen service file");
+ return -1;
+ }
+
+
+ fclose(fp);
+ BT_DBG("-");
+ return 0;
+
+}
+#endif
+