FOREVER(1)                                                          FOREVER(1)



NAME
       forever - block until interrupted

SYNOPSIS
       forever label
       forever -h
       forever -V

DESCRIPTION
       Forever blocks until an externally generated signal terminates it.  The
       basic function is expressed in perl as:
            perl -e "use POSIX qw(pause); pause() while (1);"

       In some ways this resembles sleep(1), but it never exits  without  some
       external intervention (usually a signal). See kill(1).

       The  most  common way to terminate forever is via pkill(1).  Usually by
       specifying a ppid, a pattern, and optionally a known  uid  or  matching
       the label provided.

       The program also calls close(2) on stdin, stdout, and stderr to release
       any pipes that might be open.  If you want to hold a pipe  open  dupli-
       cate the descriptor to a slot above 2.  This adds some code to the perl
       version:
            ...; close(STDIN);close(STDOUT);close(STDERR); pause() ...

OPTIONS
       Forever doesn't read any environment variable for options.

       -h
              Print a brief help message.

       -V
              Show only the version information for forever.

EXAMPLES
       wrapw -mN /var/run/tiger ... -- forever honey
              Start a persistent instance of wrapw on a "locally  known"  unix
              domain socket.  This is intended to run until system shutdown.

       pkill -TERM  -fU ${USER:-'id -un'} "forever.*honey"
              Terminate  the  forever  that holds the previous wrapw diversion
              open.  We specify our login to limit  the  signal  to  just  our
              login.

       xclate -mu /var/run/local/spigot -i- -O/var/log/local/... forever knight
              Bind  a persistent xclate instance to a local domain socket.  By
              using forever we deny clients permission to terminate  the  pro-
              cess.

       forever -V
              Output  the version of forever.  Note this doesn't block forever
              (nor does -h's help output).

BUGS
       This should really be an option to sleep(1), like -F.

AUTHOR
       KS Braunsdorf, NonPlayer Character Guild
       msrc at ksb single-dot npcguild.org

SEE ALSO
       sh(1),  sleep(1),  kill(1),  pkill(1),  perl(1),  wrapw(1l),  ptbw(1l),
       opal(1l), xclate(1l), gtfw(1l), sshw(1l), close(2)



                                     LOCAL                          FOREVER(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | BUGS | AUTHOR | SEE ALSO