skip duplicate util-vserver dir
[util-vserver.git] / sysv / v_gated.subst
diff --git a/sysv/v_gated.subst b/sysv/v_gated.subst
new file mode 100755 (executable)
index 0000000..294857a
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# chkconfig: - 32 75
+# description: Wrapper to start gated bound to a single IP
+
+# normally, you will need /etc/vservices/gated.conf
+# with the following line
+# IP=0.0.0.0
+# so gated is started without restriction even if you
+# restart it from an ssh session, itself "chbounded" to a single
+# IP.
+USR_LIB_VSERVER=/usr/lib/util-vserver
+exec $USR_LIB_VSERVER/vsysvwrapper gated $*
+