From 84b2c1858a5ef26bfa40a01fe57ed3cf0a1ada03 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 17 Aug 2020 01:11:44 -0400 Subject: Flesh out documentation and improve examples --- catsit.conf.5 | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'catsit.conf.5') diff --git a/catsit.conf.5 b/catsit.conf.5 index eee5ed2..c18f683 100644 --- a/catsit.conf.5 +++ b/catsit.conf.5 @@ -20,7 +20,8 @@ is one of the following: .It Cm # Ar comment ... Lines beinning with .Ql # -and blank lines are ignored. +as well as blank lines +are ignored. . .It Cm % Ar command ... Lines beginning with @@ -62,20 +63,21 @@ or which call . .Sh EXAMPLES .Bd -literal -# Basic services: -calico calico -H irc.example.org /var/run/calico -pounce/freenode pounce /usr/local/etc/pounce/freenode.conf -pounce/tilde pounce /usr/local/etc/pounce/tilde.conf - # Setting environment variables: -% export PATH=$PATH:/usr/local/bin +% export LANG=en_US.UTF-8 -# Using variables to expand service command lines: -% pounce=/usr/local/bin/pounce -% conf=/usr/local/etc/pounce -pounce/freenode $pounce $conf/freenode.conf -pounce/tilde $pounce $conf/tilde.conf -.El +# Expanding command lines with variables: +% socks=/var/run/calico +calico calico -H irc.example.org $socks +pounce pounce -U $socks pounce.conf + +# Templating command lines using service names: +pounce/freenode pounce ${0#*/}.conf +pounce/tilde pounce ${0#*/}.conf + +# Privileged services: +@scooper kfcgi -d -U $USER -p ~/.local -- /bin/scooper +.Ed . .Sh SEE ALSO .Xr catsitd 8 -- cgit 1.4.1