Server IP : 127.0.0.2 / Your IP : 18.216.141.19 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /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: *)