1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
|
2003-05-01 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (stop.<service>): Ignore the result of the
user-defined stop code. Set the `running' slot of the service to
`#f' in any case.
(<service>): Adopted semantics of `stop' slot.
* support.scm (opt-lambda): New macro.
* self.scm (persistency): Use it.
* service.scm (make-kill-destructor): Likewise.
2003-04-27 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm (enable-persistency): Renamed to ...
(persistency): ... this. New action.
(disable-persistency): Renamed to ...
(no-persistency): ... this. New action.
2003-04-25 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (label): New macro.
* self.scm (enable-persistency): Use `label' and `case-lambda'
instead of `lambda*'.
* dmd.scm: Don't use module `(ice-9 optargs)'.
* service.scm (doc.<service>): Don't break if given action is not
provided by the service.
(first-running): Simplify.
2003-04-24 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm (enable-persistency): New optional argument `file' for
setting the persistency state file.
* dmd.scm: Use module `(ice-9 optargs)'.
2003-04-21 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (process-command): Fix handling of `dmd-status'. Also
cleaned up the code.
* service.scm (handle-unknown): New procedure.
(make-actions): Bugfix: Exchange position of procedure and
docstring in the created pairs.
* self.scm (detailed-status): Updated to change of Apr 10.
* service.scm (<service>): Default init value of `start' slot is
now a procedure that takes no arguments. Similar for `stop': It
accepts only one argument now.
* examples/_unknown.scm (compose): New procedure.
(unknown-service): Use it in the `start' action.
(look-for-service): Cleaned up.
2003-04-20 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (lookup-running): New procedure.
(depends-resolved?.<service>): Use it.
(launch-service): Likewise.
(stop.<symbol>): Likewise.
(action.<symbol>): Likewise.
(status.<symbol>): Show status of running service, if any.
Otherwise, show status of all who provide the symbol. Also
display `dmd-status' only if service does not provide a `status'
action.
(lookup-running-or-providing): New procedure.
(action.<symbol>): Use it.
(status.<symbol>): Likewise.
(<service>): Field `actions' is a list now instead of a hash.
(action:name): New procedure.
(action:proc): New procedure.
(action:doc): New procedure.
(lookup-action.<service>): New method.
(defines-action?.<service>): Adopted to the new structure of the
`actions' slot.
(actions-list.<service>): Likewise.
(action.<service>): Likewise.
(doc.<service>): Likewise.
(make-actions): Made the docstring optional. Also, adopted to new
structure of `actions' slot of `<service>'.
(action.<service>): Show `dmd-status' in the default
implementation of `status'.
(status.<symbol>): Removed.
* dmd.scm (process-command): Don't handle `status' action here.
2003-04-18 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (caught-error): Handle `wrong-number-of-args'
specially.
* service.scm (action.<service>): Check whether the number of args
is ok. Display a useful message if not.
* support.scm (can-apply?): New procedure.
2003-04-17 Wolfgang Jährling <wolfgang@pro-linux.de>
(stop.<service>): If the service is respawnable, still set its
running slot to `#f' before calling the destructor, but do call
the destructor with the original value of the slot.
* examples/_unknown.scm (look-for-service): Additional (optional)
argument: A predicate that a service must satisfy.
(unknown-service): Look for running or non-running services first,
whichever makes more sense in the particular case.
2003-04-16 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (<service>): Renamed slot `extra-actions' to
`actions'.
(defines-extra-action?.<service>): Renamed to ...
(defines-action?.<service>): ... this. All callers changed.
(extra-action.<service>): Renamed to ...
(action.<service>): ... this. All callers changed.
(extra-action.<symbol>): Renamed to ...
(action.<symbol>): ... this. All callers changed.
(make-extra-actions): Renamed to ...
(make-actions): ... this. All callers changed.
(make-forkexec-constructor): Use the arguments given to us, not
those given to the created procedure.
2003-04-13 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (status.<symbol>): Implement.
* Makefile.am (EXTRA_DIST): Add file `QUESTIONS'.
2003-04-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (extra-action.<service>): Handle `status' default
action, but do nothing in its implementation.
(status.<symbol>): New method.
* dmd.scm (process-command): Handle `dmd-status' and `status'.
2003-04-10 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (default-display-status.<service>): Renamed to ...
(dmd-status.<service>): ... this. New procedure.
(extra-action.<service>): Don't provide a default implementation
of `status' here.
2003-04-09 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (process-args): Make `--file -' and `-f -' work like
`--file=-' and `-f-', repectively.
* dmd.scm (main): Use `-' instead of `none' as file name to
specify for readings commands from stdin (`--socket').
2003-04-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Forked off version -0.6.
2003-04-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (extra-action.<symbol>): Prevent arguments from
getting lost for the `doc' action.
(doc.<service>): Make it work at all by using symbols instead of
strings in the `case' structure.
2003-04-07 Wolfgang Jährling <wolfgang@pro-linux.de>
* examples/_unknown.scm (differs-in-case?): Renamed to ...
(differs-only-in-case?): ... this. New procedure. All callers
changed.
* service.scm (<service>): Every value in the `extra-actions' hash
now consists of a pair with the procedure in the CAR and the
docstring in the CDR.
(extra-action.<service>): Adopted to new structure of the
`extra-actions' slot.
(make-extra-actions): Likewise.
(doc.<service>): Display docstring on request.
* support.scm (split-case): Removed.
* service.scm (doc.<service>): Don't use `split-case' anymore.
2003-03-28 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (make-childexec-constructor): Renamed to ...
(make-forkexec-constructor): ... this. New procedure.
(make-kill-destructor): Default to SIGTERM.
* dmd.scm: Use module `(srfi srfi-16)'.
2003-03-25 Wolfgang Jährling <wolfgang@pro-linux.de>
* comm.scm (terminatimg-string): Moved out of dmd specific code,
as it is also used by deco.
2003-03-23 Wolfgang Jährling <wolfgang@pro-linux.de>
* examples/_unknown.scm (look-for-service): New procedure.
(unknown-service): New extra-actions `stop' and `extra-action'.
Let `start' use `look-for-service'.
* service.scm (register-services): Verfify that canonical names
are actually canonical.
(make-childexec-constructor): Accept arguments, but ignore them.
(make-kill-destructor): Likewise.
(make-system-constructor): Likewise.
(make-system-destructor): Likewise.
(make-init.d-service): Updated to use the new names of the
procedures. This should have been done *much* earlier.
(extra-action.<symbol>): Actually make the ``unknown service''
feature work.
2003-03-15 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm: Use module `(ice-9 readline)'.
(main): Enable readline if we read commands from stdin
and it is a non-dumb terminal. Exit on `C-d'.
2003-03-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (conflicts-with.<service>): Cleaned up.
(find-running): Renamed to ...
(first-running): ... this. New procedure. All callers changed.
2003-03-09 Wolfgang Jährling <wolfgang@pro-linux.de>
* configure.in: Check for version of Guile being at least 1.5.x.
2003-03-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* examples/_unknown.scm: New file.
(lacks-char-from?): New procedure.
(differs-by-missing-char?): New procedure.
(differs-by-switched-chars?): New procedure.
(differs-by-one-char?): New procedure.
(differs-in-case?): New procedure.
(similar?): New procedure.
(unknown): New service.
* examples/Makefile.am (EXTRA_DIST): Add the new file.
2003-03-02 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (without-system-error): Renamed to ...
(catch-system-error): ... this. New macro. All callers changed.
(local-output): Don't send data to deco.
(extra-output-sender-enabled): Removed.
(without-extra-output): Removed (new implementation in comm.scm).
* comm.scm (without-extra-output): New macro.
(dmd-output-port): Send data to deco. Buffer the output for the
logfile line-wise.
* deco.scm (main): Don't display additional newlines.
* support.scm (extra-output-sender): Moved to ...
* comm.scm (extra-output-sender): ... here.
* support.scm (open-extra-sender): Moved to ...
* comm.scm (open-extra-sender): ... here.
* support.scm (close-extra-sender): Moved to ...
* comm.scm (close-extra-sender): ... here.
* support.scm (terminating-string): Moved to ...
* comm.scm (terminating-string): ... here.
2003-02-25 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (display-version): Display stuff directly.
* config.scm.in (banner): Removed.
* support.scm (local-output): Don't do logging here anymore.
(real-output-port, void-output-port): Removed.
(log-output-port): Moved to ...
* comm.scm (log-output-port): ... here. Conditional for dmd.
(dmd-output-port): Do logging here now.
* support.scm (without-extra-output): When catching an error, set
`extra-output-sender-enabled' to `#t', not to `#f'.
2003-02-23 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (begin-dmd): New macro.
* comm.scm (dmd-output-port): Define only for dmd, not for deco.
(original-output-port): Likewise.
(silent): Likewise.
(be-silent, be-verbose): Likewise.
* support.scm (verify-dir): Code cleanup.
* service.scm (start.<service>): Simplified. The different cond
clauses don't need to give a return value anyway, so these got
removed.
* self.scm (cd): New extra-action for dmd.
2003-02-22 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (be-silent, be-verbose): Removed.
* comm.scm (original-output-port): New variable.
(dmd-output-port): New variable. Use it as current output port.
(silent): New variable.
(be-silent, be-verbose): New procedures.
2003-02-21 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (process-command): Don't handle `list-actions' here.
* service.scm (extra-action.<service>): Don't handle `doc' here.
(extra-action.<symbol>): Handle both of them here instead.
(doc.<service>): New method.
(display-extra-actions.<symbol>): Removed.
* support.scm (split-case): New macro.
2003-02-20 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm (dmd-service): Added docstrings for the service and all
its extra-actions.
* service.scm (make-extra-actions): Accept docstring argument. It
gets ignored for now. Also, made code more readable by using the
extended `for-each' from SRFI-1.
(<service>): New slot `docstring'.
(extra-action.<service>): Default action takes arguments, new
handled action `doc'.
2003-02-20 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Forked off version -0.7
2003-02-17 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): Read commands from stdin if `none' was specified
as socket file name.
2003-01-25 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (extra-output-sender-enabled?): Renamed to ...
(extra-output-sender-enabled): ... this. New variable. All users
changed.
2003-01-01 Wolfgang Jährling <wolfgang@pro-linux.de>
* config.scm.in (copyright): Updated year.
* service.scm (defines-extra-action?.<service>): New method.
(launch-service, stop.<symbol>, extra-action.<symbol>): Only use
the unknown service as fallback if it provides the relevant
extra-action.
(<service>): Require slot `extra-actions' to never contain #f, but
always contain a hash table.
(extra-action.<service>): Simplify.
(depends-resolved?.<service>): Don't apply `find-running' on the
service symbol directly.
(stop.<service>, extra-action.<service>): If dmd does quit, use
the correct quit value.
(extra-action-list.<service>): New method.
(display-extra-actions.<symbol>): New method.
* dmd.scm (process-command): Handle action `list-actions'.
(main): Fail more gracefully if the persistency state file cannot
be opened. Also cleaned up variable names.
(persistency?): Renamed to ...
(persistency): ... this. New variable. All users changed.
* runlevel.scm (start-in-order): Implement.
(register-runlevels): Take into account that `append!' is a
linear-update procedure since the empty list cannot be modified.
2002-12-28 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (define-simple-syntax): Renamed to ...
(define-syntax-rule): ... this. New macro. All callers changed.
* service.scm (launch-service): Display a clear useful message if
no service provides what was requested.
(start.<service>): If the problem is a dependency, tell the user
about this fact.
2002-12-27 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): Adopted options to recent changes in args.scm.
* deco.scm (main): Likewise. Also fixed typo in option
`--result-socket'.
* support.scm (local-output): Don't pass `format' to `l10n', and
don't try to pass the result of this to `apply'. This construct
only ever worked because `l10n' is not yet implemented.
* args.scm (arg-name.<option>): Removed. Now a getter for the
slot `arg-name' of class `<option>'.
2002-12-26 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (launch-service): Fix handling of unknown services.
(extra-action.<service>): Simplify.
(procedure-with-n-args?): Removed.
2002-12-20 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (<service>): Fix what I messed up yesterday: Slot
`start' must be callable without argument, `stop' must be callable
with one argument.
(list-of-symbols?): Fix typo.
(launch-service): Fixed unknown service feature.
(stop.<symbol>, extra-action.<symbol>): Likewise.
* dmd.scm (process-args): Use `apply' instead of passing the
argument list as single argument to `start', `enforce' and `stop'.
* examples/wolfgangj.scm: Various minor fixes.
2002-12-19 Wolfgang Jährling <wolfgang@pro-linux.de>
* comm.scm (receive-data.<receiver>): Fixed handling of invalid
data. Should not happen, but better do it right anyway.
* service.scm (<service>): The procedures stored in the start and
stop slots must take an arbitrary amount of arguments now.
(start.<service>, enforce.<service>, stop.<service>): Updated.
(start.<symbol>, enforce.<symbol>, stop.<symbol>): Likewise.
(launch-service): Updated, and fixed a bug that occured when the
service is unknown and there is a `unknown' service that is
supposed to handle this case.
(procedure-with-n-args?): Don't yield a procedure anymore. There
is no point in it since we use GOOPS now instead of our own
system.
(list-of-symbols?): Simplified.
* dmd.scm: Don't use `(srfi srfi-8)' anymore.
(process-command): Replaced `receive' with a `let',
which is much simpler.
* args.scm (<option>): Removed slot `takes-arg'. Added slots
`takes-arg?', `optional-arg?' and `arg-name'. Removed unnecessary
getter `description'.
(takes-arg?.<option>): Removed (now a getter).
(optional-arg?.<option>, long-option-string.<option>): Updated.
(display-doc.<option>): Updated and fixed local procedure
`fill-to' to not pass a string instead of a character to local
procedure `output'.
* self.scm (daemonize): Quit, not kill.
* dmd.scm (extra-action.<service>): Allow all actions of `dmd' to
quit. Now all actions need to take care that they don't invoke
user-defined code without quit-protection.
2002-11-27 Wolfgang Jährling <wolfgang@pro-linux.de>
* utils/dmd-gettext.scm (i18n-keywords): Renamed to ...
(l10n-keywords): ... this. New variable.
* utils/sysvconfig.scm: Clarified output header text.
* args.scm (process-args): Minor cleanup of error output code.
* comm.scm (receive-data.<receiver>): Likewise.
2002-11-26 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm: Use module `(srfi srfi-8)'.
(process-command): Replace call-with-values with receive.
2002-11-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (process-arg): Display long options for --usage.
Fix display of short options.
Display syntax of non-option arguments.
Cleanup: Removed all usages of slot-ref.
2002-10-27 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (make-childexec-constructor): Simplify.
(procedure-with-n-args?): Use `=' instead of `equal?'.
2002-10-21 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (extra-action.<symbol>): Invoke the service
`unknown' if the service is not known.
(stop.<symbol>): Likewise.
(launch-service): Likewise.
(make-init.d-service): Allow for passing arguments down to
`make', so that e.g. dependencies can be specified.
2002-10-18 Wolfgang Jährling <wolfgang@pro-linux.de>
* runlevel.scm (start-in-order): New procedure.
* service.scm (depends-resolved?.<service>): New method.
(running?.<service>): Beautify and optimize.
2002-10-17 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm (enable-persistency, disable-persistency): New
extra-actions.
* dmd.scm (main): Read list of services from file.
* args.scm (long-option-string.<option>): Fix display. It is
`opt-arg?' now, not `optional-arg?'.
(process-args): Handle short options with optional argument
correct if no argument was given.
2002-10-16 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (process-args): Display short options for --usage.
* dmd.scm (persistency?): New variable.
(persistency-state-file): New variable.
(main): New option: --persistency
* self.scm (stop): Write state into the above when requested.
* dmd.scm (main): New options: --silent and --quiet.
2002-10-14 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (optional-arg?.<option>): New method.
(long-option-string.<option>): Use it.
(process-args): Handle `--usage'.
* utils/sysvconfig.scm: New file.
(services-dir): New variable.
(make-config, init.d-services): New procedures.
* utils/Makefile.am (EXTRA_DIST): Add sysvconfig.scm.
2002-10-13 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (procedure-with-n-args?): Don't assume that `arity'
is always the first field.
2002-10-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* utils: New directory.
* Makefile.sm (SUBDIRS): Add it.
* configure.in (AC_OUTPUT): Likewise.
* utils/Makefile.am: New file.
* utils/dmd-gettext.scm: New file.
(puts, found-string, extract-strings): New procedures.
(i18n-keywords): New variable.
* support.scm (l10n, local-output): Write it with lambda.
2002-10-10 Wolfgang Jährling <wolfgang@pro-linux.de>
* examples/README: New file.
* examples/Makefile.am (EXTRA_DIST): Add it.
* service.scm (make-service-group): New macro. Suggested by
Alfred M. Szmidt <ams@gnu.org>.
* support.scm (define-simple-syntax): New macro. All callers of
define-syntax changed to use this instead.
2002-10-09 Wolfgang Jährling <wolfgang@pro-linux.de>
* runlevel.scm (enter.<runlevel>): Fixes, cleanups and
extensions. Still far from being finished.
2002-10-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): New option: `--logfile' (`-l').
* self.scm (daemonize): Undo last change.
* config.scm.in (bug-address): New variable.
* args.scm (process-args): Use it.
* deco.scm (main): Use letrec instead of named let.
* dmd.scm (main): Likewise.
* service.scm (list-of-symbols?): Likewise.
2002-10-07 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (respawn-service): Ignore system errors.
(<service>): New slots: `waiting-for-termination?' and
`stop-delay?'.
(stop.<service>): Mark service as waiting for termination if the
corresponding option is set.
(respawn-service): Do not respawn it if stop is supposed to
prevent respawning and it has been stopped. Instead, mark it as
stopped.
* Makefile.am (%.in->%): Also depend on Makefile.
* support.scm (log-output-port): New variables.
(start-logging, stop-logging, l10n): New procedure.
(local-output): Write to the logfile, including date.
(user-homedir, default-logfile): New variables.
* dmd.scm, deco.scm: Use module (ice-9 rdelim).
* self.scm (daemonize): Activate the logging.
2002-10-06 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (respawn-service): If the service is disabled, don't
try to restart it again, but enable it.
2002-10-05 Wolfgang Jährling <wolfgang@pro-linux.de>
* deco.scm (main): Pass working directory to dmd.
* dmd.scm (main): Take working directory from deco and cd to it.
* support.scm (without-extra-output): New macro.
(extra-output-sender-enabled?): New variable.
(local-output): Send text to socket only when desired.
* service.scm (respawn-service): Use `without-extra-output'.
2002-10-04 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm (daemonize): New extra-action.
2002-10-04 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Forked off version -0.8
2002-10-02 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (make-childexec-constructor): New procedure.
(make-kill-destructor): New procedure.
(stop.<service>): Set the `running' slot to #f before executing
the destructor for respawnable services.
2002-09-30 Wolfgang Jährling <wolfgang@pro-linux.de>
* dirs.scm.in: Renamed to ...
* config.scm.in: ... this. New file.
* Makefile.am (templates): Updated.
(dmd_DATA): Updated.
* deco.scm: Updated.
(program-name): New variable.
* dmd.scm: Updated.
(program-name): New variable.
(banner, copyright): Moved to ...
* config.scm.in (banner, copyright): ... here. New variables.
* args.scm (display-doc.<option>): New method.
(long-option-string.<option>): New method.
(process-args): Display options on `--help'.
Take argument syntax, description and default handler as
arguments.
* dmd.scm (main): Updated.
* deco.scm (main): Updated.
2002-09-29 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (service-destructor-system): Renamed to ...
(make-system-destructor): ... this. New procedure.
(service-constructor-system): Renamed to ...
(make-system-constructor): ... this. New procedure.
(make-system-destructor): Return `#f' on success, as is expected
from a destructor.
(conflicts-with-running.<service>): New method. Code taken from
start.<service>.
(start.<service>): Updated.
(enforce.<service>): New method.
(launch-service): New procedure. Code taken from start.<symbol>.
(start.<symbol>): Use the above.
(enforce.<symbol>): New method.
* dmd.scm (process-command): Added `enforce' action.
2002-09-27 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (extra-action.<service>): Don't handle `enable' and
`disable' here at all.
(extra-action.<symbol>): Handle them here instead.
(find-running): Return service instead of canonical name. All
callers changed.
* dmd.scm (main): Catch errors in the configuration file, but
abort when they occur.
2002-09-26 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (respawn-limit): New variable.
(<service>): Use the above to initialize `last-respawns'.
(respawn-service): Use `respawn-limit'.
* support.scm (local-output): Protect against system error when
using extra-output-sender.
(open-extra-sender, close-extra-sender): Protect entire procedure
against system errors.
* service.scm (extra-action.<service>): Make default actions
callable even when the service is not running.
(extra-action.<symbol>): Apply on all if none of the possibilities
is running.
2002-09-25 Wolfgang Jährling <wolfgang@pro-linux.de>
* comm.scm: New file.
(<sender>): New class.
(initialize.<sender>): New method.
(send-data.<sender>): New method.
(<receiver>): New class.
(initialize.<receiver>): New method.
(receive-data.<receiver>): New method.
* support.scm (default-deco-socket-file): New variable.
(select+recv!, get-message): Removed. The functionality is now in
receive-data.<receiver>.
(local-output): Also send output to deco.
(extra-output-sender): New variable.
(terminating-string): New variable.
(open-extra-sender, close-extra-sender): New procedures.
(verify-dir): New procedure.
* dmd.scm: Load comm.scm.
(main): Use <sender> and <receiver> to exchange command and
resulting output.
(process-args): Take additional file name argument into account.
* deco.scm: Load comm.scm.
(main): Like in dmd.scm.
* Makefile.am (dmd_data): Added comm.scm.
* service.scm (<service>): New slots: `enabled?' and
`last-respawns'.
(start.<service>): Don't start if not enabled.
(respawn-service): Disable if respawning too fast.
(extra-action.<service>): New default actions `enable' and
`disable'.
(default-display-status.<service>): Display whether the service is
enabled or not.
2002-09-22 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (<option>): Renamed `takes-arg?' slot to `takes-arg'
and changed the semantics. Deleted getter. All users changed.
(process-args): Updated. Also abort in some error cases.
(takes-arg?.<option>): New method.
* dmd.scm (select+recv!): Moved to ...
* support.scm (select+recv!): ... here. New macro.
(get-message): New procedure. Code taken from procedure `main' in
dmd.scm.
2002-09-21 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Forked off version -0.9
2002-09-21 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (process-command): Don't crash when called with too few
args.
* deco.in, dmd.in: Don't use a `--' argument, as Guile stopps
processing args after the script name was given anyway.
* Makefile.am (install-hook): Renamed to ...
(install-data-local): ... this. New target.
* deco.scm, dmd.scm: Load dirs.scm.
* support.scm (default-config-file, default-socket-dir): Use
Prefix-dir as file/directory name prefix.
* examples: New directory.
* Makefile.am (SUBDIRS): New variable.
* configure.in (AC_OUTPUT): Add new directory.
* examples/Makefile.am: New file.
* examples/wolfgangj.scm: New file.
2002-09-20 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): Fail if no argument given to options --config
and --socket.
* COPYING.DOC: New file. The GNU Free Documentation License,
version 1.1.
* configure.in: New file.
* Makefile.am (dmd, deco, dirs.scm): Unite into one target.
(%.in->%): Use `,' as seperator for directory name replacing.
(dmd_data): New variable.
(dmd_DATA): Use the above.
(templates): New variable.
(EXTRA_DIST): New variable.
* testcase.scm: Removed.
* INSTALL, install-sh, missing, mkinstalldirs, texinfo.tex: New
files. Ok, I didn't add those, automake did it for me.
* aclocal.m4: New file, created with aclocal.
2002-09-19 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): Kill socket on startup if it exists, so that we
can use it. It seems strange that we have to do this, though.
* support.scm (without-system-error): New macro.
* deco.scm: Actually call main.
(main): Send correct number of messages as handshake again.
2002-09-18 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): New command line option: `--insecure' (`-I').
Ensure that the socket directory setup is secure if this option
was not given.
* Makefile.am: Generate dirs.scm.
* dirs.scm.in: New file.
* support.scm (default-socket-dir): New variable.
* dmd.scm (main): Create default socket directory on startup, if
we need it.
* deco.scm: Load the same modules as dmd does. Also load
support.scm and args.scm.
(main): New procedure. New option `--socket' (`-s').
* dmd.scm (display-version): Moved to ...
* support.scm (display-version): ... here. New procedure.
* THANKS: New file.
2002-09-17 Wolfgang Jährling <wolfgang@pro-linux.de>
* Makefile.am, deco.in, dmd.in: New files. Suggested by Jeff
Bailey <jbailey@nisa.net>.
2002-09-17 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Released version -0.9.6
2002-09-17 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (process-args): Handle short options.
* service.scm (respawn-service): New procedure. Active it as
handler for SIGCHLD.
* dmd.scm (main): Protect `recv!' calls with `select'.
Suggested by Rob Browning <rlb@defaultvalue.org>.
(select+recv!): New macro.
* testcase: Make a service respawnable.
2002-09-16 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (process-command): Actually interpret the command.
* self.scm (stop): Don't try to stop yourself recursively. Eeek.
* service.scm (stop.<service>): Allow user-defined code to call
`quit' if it is from the dmd-service.
* dmd.scm (process-command): Removed rescue-exit, because stopping
dmd now works correct.
* service.scm (stop.<symbol>): Don't display superfluous
information.
(extra-action.<symbol>): Cleaned up a bit.
(conflicts-with): Turned `let*' into normal let.
* service.scm (<service>): Initialize extra-actions to `#f'.
(extra-action.<service>): Take into account that if we have no
extra-actions, the slot may not contain a hash-table.
* default.scm (default-config-file): New variable.
(default-socket-file): New variable.
* dmd.scm (main): Use those.
* args.scm (process-args): Recognize unambigous abbreviations for
long options. Also make it possible to stop further
interpretation of arguments (`--').
2002-09-16 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Released version -0.9.7
2002-09-16 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm (main): Read commands from the socket. Use default
socket "/var/run/dmd/$USER/default".
(process-command): New procedure.
* deco.scm: New file.
* testcase.scm: Disable testing code for now.
2002-09-15 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm (process-args): Recognize long options.
* dmd.scm: Load args.scm again.
New options: -c (--config) and -s (--socket).
* service.scm (start.<symbol>): Simplified using find-running.
(stop.<symbol>): Likewise. Also use local-output.
(default-display-status.<service>): Display `respawn?' value.
(display.<service>): Removed. Obsoleted by the above.
* support.scm (puts): Removed. All previous callers now use
local-output instead (hopefully).
2002-09-14 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (start.<service>): Catch possible errors in
user-defined action.
(stop.<service>): Likewise.
(extra-action.<service>): Likewise.
* support.scm (caught-error): New procedure.
* self.scm (load): Do not catch anymore yourself.
* support.scm (call/ec): Implement efficiently.
(assert): Throw an exception.
* dmd.scm: Load module (srfi srfi-13).
* args.scm (process-args): Started reimplementation for GOOPS.
(<option>): Removed slot `occured?', added slot `takes-arg?' and
removed init-value for slot `action'.
(<option-with-arg>): Removed. Its functionality is covered by the
now generalized <option> class.
* service.scm (conflicts-with.<service>): New method.
(default-display-status.<service>): Use the above instead of doing
the same thing yourself.
2002-09-14 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Released version -0.9.8
2002-09-14 Wolfgang Jährling <wolfgang@pro-linux.de>
* self.scm: New file.
(dmd-service): New variable.
(start, stop, status, load, restart): New extra-actions.
* dmd.scm: Load self.scm.
* testcase.scm: Display dmd status.
* args.scm (<option>): New slot: action.
Added getter for `occured?'.
(<option-with-arg>): New slot: action.
* support.scm (silent): Removed. It was never used.
(real-output-port, void-output-port): New variables.
(be-silent, be-verbose): New procedures.
* self.scm (silent, verbose): New extra-actions.
* service.scm (extra-action.<service>): Make passing an arbitrary
number of arguments to the extra-action possible.
(extra-action.<symbol>): Likewise.
* testcase.scm: Pass an additional argument to an extra-action.
* support.scm (local-output): New procedure. Most callers of
`puts' changed to use this instead.
* self.scm (detailed-status): New extra-action.
* dmd.scm: Load module (srfi srfi-1).
* service.scm (default-display-status.<service>): New method.
(extra-action.<service>): Use the above.
2002-09-13 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (start.<symbol>, stop.<symbol>): Try all
possibilities.
(start.<service>): Start dependencies via symbol.
(make-init.d-service): Updated to GOOPS.
(init.d-add): Removed.
* support.scm (call/ec): New procedure. Updated all to use it
instead of call/cc.
* service.scm (extra-action.<service>): New method.
(extra-action.<symbol>): New method.
(find-running): New procedure.
* testcase.scm: Use extra-actions.
2002-09-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* support.scm (ewal, define-struct): Removed. Obsoleted by
GOOPS.
* service.scm (copy-hashq-table): Moved to ...
* support.scm (copy-hashq-table): ... here.
* args.scm (<option>, <option-with-arg>): New classes.
2002-09-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS: Released version -0.9.9
2002-09-12 Wolfgang Jährling <wolfgang@pro-linux.de>
* runlevel.scm (define-runlevel): Removed. Obsoleted due to
GOOPS.
(services-to-start, dequeue-service, enqueue-service): Likewise.
(depending-running-services): Likewise.
* service.scm (do-restart-service, call-method): Likewise.
* dmd.scm: Don't load args.scm for now.
(main): New procedure.
* service.scm (start.<symbol>, stop.<symbol>): New methods.
(display.<service>): New method.
* testcase.scm: New file. Contains testing code.
(c, d): New procedures.
* dmd.scm (main): Process configuration file.
2002-09-11 Wolfgang Jährling <wolfgang@pro-linux.de>
* runlevel.scm (enter.<service>): Restructured to prepare for a
working implementation.
2002-09-10 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (for-each-service): New procedure.
(start.<service>): Updated to use `for-each-service'.
(stop.<service>): Implement stopping of other services.
(<service>): Added getter for slot `requires'.
* runlevel.scm (enter.<runlevel>): Renamed to ...
(enter-selector.<runlevel>): ... this. New method.
(leave.<runlevel>): Renamed to ...
(leave-selector.<runlevel>): ... this. New method
(enter.<runlevel>): New method with different semantics.
(current-runlevel): New variable.
* support.scm (silent): New procedure.
2002-09-09 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (start.<service>): Avoid that two conflicting
services can get started.
(stop.<service>): New method.
(<service>): Added getter for slot `provides'.
(do-start-service, do-stop-service): Removed. They are obsolete
due to conversion to GOOPS.
* warning.scm: Removed file. Also obsolete now.
2002-09-08 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (make-extra-actions): New macro.
(register-service): Renamed to ...
(register-services): ... this. New procedure.
(services-max-cnt, services-cnt): New variables.
(register-services): Dynamically resize the hash table on demand.
(copy-hashq-table): New procedure.
2002-09-07 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (running?.<service>): New method.
(start.<service>): Resolve dependencies.
(lookup-service): Renamed to ...
(lookup-services): ... this. New procedure.
(<service>): New slot: extra-actions.
2002-09-06 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (canonical-name.<service>, start.<service>): New
methods.
2002-08-31 Wolfgang Jährling <wolfgang@pro-linux.de>
* service.scm (services): Now a hash-table instead of a list.
(find-service): Renamed to ...
(lookup-service): ... this. New procedure. All callers changed.
Also adopted to use the hash table.
(find-service-from): Removed.
(register-service): Adopted to use the hash table.
2002-08-30 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.texi, configure, Makefile: New files.
2002-08-29 Wolfgang Jährling <wolfgang@pro-linux.de>
* dmd.scm: Load the GOOPS module.
* service.scm (<service>): New class.
* runlevel.scm (<runlevel>, <runlevel-exact>, <runlevel-changes>):
New classes.
(enter.<runlevel>, leave.<runlevel>): New methods for <runlevel>
and all subclasses.
2002-08-28 Wolfgang Jährling <wolfgang@pro-linux.de>
* NEWS, README: New files.
2002-08-28 Wolfgang Jährling <wolfgang@pro-linux.de>
* args.scm, runlevel.scm, service.scm, support.scm, warning.scm:
New files.
2002-08-28 Wolfgang Jährling <wolfgang@pro-linux.de>
* AUTHORS, ChangeLog, COPYING, dmd.scm: New files.
|