Skip to content

Commit

Permalink
add task boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Apr 4, 2005
1 parent 24ac953 commit 5b09f9f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/boilerplates/task
@@ -0,0 +1,23 @@
#!/usr/bin/perl -w
# This code is a part of Slash, and is released under the GPL.
# Copyright 1997-2005 by Open Source Technology Group. See README
# and COPYING for more information, or see http://slashcode.com/.
# $Id$

use strict;

use Slash::Constants ':slashd';

use vars qw( %task $me );

$task{$me}{timespec} = '0 0 0 * *';
$task{$me}{timespec_panic_1} = 1; # if panic, this can wait
$task{$me}{fork} = SLASHD_NOWAIT;
$task{$me}{code} = sub {
my($virtual_user, $constants, $slashdb, $user, $info, $gSkin) = @_;


};

1;

0 comments on commit 5b09f9f

Please sign in to comment.