File: test-detach

package info (click to toggle)
libapp-daemon-perl 0.22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 204 kB
  • sloc: perl: 371; makefile: 8
file content (15 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/local/bin/perl -w
use strict;

my( $done_file ) = @ARGV;

die "usage: $0 done_file" if !defined $done_file;

     # Program:
use App::Daemon qw( detach );
detach();
sleep(1);

open FILE, ">", $done_file or die;
print FILE "Done\n";
close FILE;