aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ii/templates/ii_wrapper.pl
blob: fddfd629380d45278fc49418ad4f3df643ea58b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
use warnings;
use strict;
use POSIX;
use Proc::Daemon;
my $nick = "<%= nick %>";
my $server = "<%= server %>";


Proc::Daemon::Init();
my (undef, undef, $uid) = getpwname("nobody"); 
POSIX::setuid($uid);

fork() || exec "ii -n $nick -i /var/lib/ii/$nick -s $server";
wait();