Server IP : 85.214.239.14 / Your IP : 3.12.163.23 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/proc/3/task/3/root/usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_xinetd = let eol_ws = "defaults \t \n{\n enabled = cvs echo \n}\n\n" let cvs = "# default: off # description: The CVS service can record the history of your source # files. CVS stores all the versions of a file in a single # file in a clever way that only stores the differences # between versions. service cvspserver { disable = yes port = 2401 socket_type = stream protocol = tcp wait = no user = root passenv = PATH server = /usr/bin/cvs env -= HOME=/var/cvs server_args = -f --allow-root=/var/cvs pserver # bind = 127.0.0.1 log_on_failure += HOST FLAGS = IPv6 IPv4 } " let lst_add = "service svc_add { log_on_failure += HOST } " test Xinetd.lns get eol_ws = { "defaults" { "enabled" { "value" = "cvs" } { "value" = "echo" } } } {} test Xinetd.lns put eol_ws after rm "/defaults/enabled/value[last()]" = "defaults \t \n{\n enabled = cvs \n}\n\n" test Xinetd.lns get cvs = { "#comment" = "default: off" } { "#comment" = "description: The CVS service can record the history of your source" } { "#comment" = "files. CVS stores all the versions of a file in a single" } { "#comment" = "file in a clever way that only stores the differences" } { "#comment" = "between versions." } { "service" = "cvspserver" { "disable" = "yes" } { "port" = "2401" } { "socket_type" = "stream" } { "protocol" = "tcp" } { "wait" = "no" } { "user" = "root" } { "passenv" { "value" = "PATH" } } { "server" = "/usr/bin/cvs" } { "env" { "del" } { "value" = "HOME=/var/cvs" } } { "server_args" { "value" = "-f" } { "value" = "--allow-root=/var/cvs" } { "value" = "pserver" } } { "#comment" = "bind = 127.0.0.1" } { "log_on_failure" { "add" } { "value" = "HOST" } } { "FLAGS" { "value" = "IPv6" } { "value" = "IPv4" } } } (* Switch the '+=' to a simple '=' *) test Xinetd.lns put lst_add after rm "/service/log_on_failure/add" = "service svc_add\n{\n log_on_failure = HOST\n}\n" test Xinetd.lns put "" after set "/service" "svc"; set "/service/instances" "UNLIMITED" = "service svc { \tinstances = UNLIMITED } " (* Support missing values in lists *) test Xinetd.lns get "service check_mk\n{\n log_on_success =\n server_args=\n}\n" = { "service" = "check_mk" { "log_on_success" } { "server_args" } } (* Local Variables: *) (* mode: caml *) (* End: *)