Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    use Getopt::Std;
    our $opt_d, %config;
    getopt('d');
    
  2. or download this
    use POSIX qw/setuid setsid/;
    
    if ($opt_d) {
    ...
    }
    # Be sure to define sub daemon_init
    # On with the program . . .