: ${rspamd_enable="NO"}
: ${rspamd_pidfile="/var/run/rspamd/rspamd.pid"}
-: ${rspamd_user="@RSPAMD_USER@"}
-: ${rspamd_group="@RSPAMD_GROUP@"}
+: ${rspamd_run_user="@RSPAMD_USER@"}
+: ${rspamd_run_group="@RSPAMD_GROUP@"}
pidfile="$rspamd_pidfile"
sig_reload="HUP"
command="$procname"
-command_args="-u ${rspamd_user} -g ${rspamd_group} -c @CMAKE_INSTALL_PREFIX@/etc/rspamd.xml"
+command_args="-u ${rspamd_run_user} -g ${rspamd_run_group} -c @CMAKE_INSTALL_PREFIX@/etc/rspamd.xml"
run_rc_command "$1"
return ((gchar *)memcpy (buf, p, len)) + len;
}
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MICRO_VERSION == 2) && (GLIB_MINOR_VERSION < 22))
+void
+g_ptr_array_unref (GPtrArray *array)
+{
+ g_ptr_array_free (array, TRUE);
+}
+#endif
/*
* vi:ts=4
const gchar *symbol, struct statfile **st, gboolean try_create);
#endif
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MICRO_VERSION == 2) && (GLIB_MINOR_VERSION < 22))
+void g_ptr_array_unref (GPtrArray *array);
+#endif
/*
* supported formats:
* %[0][width][x][X]O off_t