chiark / gitweb /
Portability fixes.
[userv.git] / system.default
1 # Generally, if you want all your users to provide a service for your
2 # benefit but want them to be able to override your default setting,
3 # you should put it in this file but not use quit.  Eg:
4 #       if ( grep service-user-shell /etc/shells
5 #          & glob service mail-delivery
6 #          & glob calling-user mail
7 #          )
8 #               reset
9 #               no-suppress-args
10 #               execute /usr/local/bin/procmail-wrapper
11 #       fi
12 # (procmail-wrapper could extract envelope information from the
13 # arguments and/or -D options and pass them to procmail.)
14 #
15 # If you want to force users to provide a particular service,
16 # then you can put it here and use `quit'.  Eg:
17 #       if ( grep service-user-shell /etc/shells
18 #          & glob service cleanup-tmp
19 #          )
20 #               reset
21 #               errors-to-syslog local4
22 #               execute /usr/local/bin/cleanup-tmp
23 #               no-set-environment
24 #               no-disconnect-hup
25 #               null-fd 0 read
26 #               null-fd 1-2 write
27 #               quit
28 #       fi
29 # Alternatively, you could put the same thing in system.override, with
30 # or without the quit.  In this case it's usually important to use
31 # reset, and also to note that now users can cause error messages
32 # which they could not do before (though due to the implied catch-quit
33 # around the user's rc file they wouldn't stop the service being
34 # executed).
35 #
36 # If you want to force all your users' services to have a particular
37 # property you should do it in system.override.  Eg, there put
38 #       set-environment
39 # to force them to run /etc/environment to have ulimits set up, even
40 # if they try not to.
41 #
42 # NB that doing this _won't_ affect things in system.default and
43 # earlier in system.override that use `quit'.