|
Packit Service |
a2ae7a |
module Test_xinetd =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let eol_ws = "defaults \t \n{\n enabled = cvs echo \n}\n\n"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let cvs = "# default: off
|
|
Packit Service |
a2ae7a |
# description: The CVS service can record the history of your source
|
|
Packit Service |
a2ae7a |
# files. CVS stores all the versions of a file in a single
|
|
Packit Service |
a2ae7a |
# file in a clever way that only stores the differences
|
|
Packit Service |
a2ae7a |
# between versions.
|
|
Packit Service |
a2ae7a |
service cvspserver
|
|
Packit Service |
a2ae7a |
{
|
|
Packit Service |
a2ae7a |
disable = yes
|
|
Packit Service |
a2ae7a |
port = 2401
|
|
Packit Service |
a2ae7a |
socket_type = stream
|
|
Packit Service |
a2ae7a |
protocol = tcp
|
|
Packit Service |
a2ae7a |
wait = no
|
|
Packit Service |
a2ae7a |
user = root
|
|
Packit Service |
a2ae7a |
passenv = PATH
|
|
Packit Service |
a2ae7a |
server = /usr/bin/cvs
|
|
Packit Service |
a2ae7a |
env -= HOME=/var/cvs
|
|
Packit Service |
a2ae7a |
server_args = -f --allow-root=/var/cvs pserver
|
|
Packit Service |
a2ae7a |
# bind = 127.0.0.1
|
|
Packit Service |
a2ae7a |
log_on_failure += HOST
|
|
Packit Service |
a2ae7a |
FLAGS = IPv6 IPv4
|
|
Packit Service |
a2ae7a |
}
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let lst_add = "service svc_add
|
|
Packit Service |
a2ae7a |
{
|
|
Packit Service |
a2ae7a |
log_on_failure += HOST
|
|
Packit Service |
a2ae7a |
}
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Xinetd.lns get eol_ws =
|
|
Packit Service |
a2ae7a |
{ "defaults" { "enabled"
|
|
Packit Service |
a2ae7a |
{ "value" = "cvs" }
|
|
Packit Service |
a2ae7a |
{ "value" = "echo" } } }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Xinetd.lns put eol_ws after rm "/defaults/enabled/value[last()]" =
|
|
Packit Service |
a2ae7a |
"defaults \t \n{\n enabled = cvs \n}\n\n"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Xinetd.lns get cvs =
|
|
Packit Service |
a2ae7a |
{ "#comment" = "default: off" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "description: The CVS service can record the history of your source" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "files. CVS stores all the versions of a file in a single" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "file in a clever way that only stores the differences" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "between versions." }
|
|
Packit Service |
a2ae7a |
{ "service" = "cvspserver"
|
|
Packit Service |
a2ae7a |
{ "disable" = "yes" }
|
|
Packit Service |
a2ae7a |
{ "port" = "2401" }
|
|
Packit Service |
a2ae7a |
{ "socket_type" = "stream" }
|
|
Packit Service |
a2ae7a |
{ "protocol" = "tcp" }
|
|
Packit Service |
a2ae7a |
{ "wait" = "no" }
|
|
Packit Service |
a2ae7a |
{ "user" = "root" }
|
|
Packit Service |
a2ae7a |
{ "passenv" { "value" = "PATH" } }
|
|
Packit Service |
a2ae7a |
{ "server" = "/usr/bin/cvs" }
|
|
Packit Service |
a2ae7a |
{ "env" { "del" } { "value" = "HOME=/var/cvs" } }
|
|
Packit Service |
a2ae7a |
{ "server_args"
|
|
Packit Service |
a2ae7a |
{ "value" = "-f" }
|
|
Packit Service |
a2ae7a |
{ "value" = "--allow-root=/var/cvs" }
|
|
Packit Service |
a2ae7a |
{ "value" = "pserver" } }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "bind = 127.0.0.1" }
|
|
Packit Service |
a2ae7a |
{ "log_on_failure" { "add" } { "value" = "HOST" } }
|
|
Packit Service |
a2ae7a |
{ "FLAGS"
|
|
Packit Service |
a2ae7a |
{ "value" = "IPv6" }
|
|
Packit Service |
a2ae7a |
{ "value" = "IPv4" } } }
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Switch the '+=' to a simple '=' *)
|
|
Packit Service |
a2ae7a |
test Xinetd.lns put lst_add after rm "/service/log_on_failure/add" =
|
|
Packit Service |
a2ae7a |
"service svc_add\n{\n log_on_failure = HOST\n}\n"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Xinetd.lns put "" after
|
|
Packit Service |
a2ae7a |
set "/service" "svc";
|
|
Packit Service |
a2ae7a |
set "/service/instances" "UNLIMITED" = "service svc
|
|
Packit Service |
a2ae7a |
{
|
|
Packit Service |
a2ae7a |
\tinstances = UNLIMITED
|
|
Packit Service |
a2ae7a |
}
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Support missing values in lists *)
|
|
Packit Service |
a2ae7a |
test Xinetd.lns get "service check_mk\n{\n log_on_success =\n server_args=\n}\n" =
|
|
Packit Service |
a2ae7a |
{ "service" = "check_mk"
|
|
Packit Service |
a2ae7a |
{ "log_on_success" }
|
|
Packit Service |
a2ae7a |
{ "server_args" }
|
|
Packit Service |
a2ae7a |
}
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Local Variables: *)
|
|
Packit Service |
a2ae7a |
(* mode: caml *)
|
|
Packit Service |
a2ae7a |
(* End: *)
|