/[adm]/puppet/modules/ii/templates/ii_wrapper.pl
ViewVC logotype

Annotation of /puppet/modules/ii/templates/ii_wrapper.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2332 - (hide annotations) (download)
Sun Jan 22 23:40:39 2012 UTC (9 years, 10 months ago) by misc
File MIME type: text/plain
File size: 289 byte(s)
fix function call
1 misc 2262 #!/usr/bin/perl
2     use warnings;
3     use strict;
4 misc 2330 use POSIX;
5 misc 2262 use Proc::Daemon;
6     my $nick = "<%= nick %>";
7     my $server = "<%= server %>";
8    
9 misc 2330
10 misc 2262 Proc::Daemon::Init();
11 misc 2332 my (undef, undef, $uid) = getpwnam("nobody");
12 misc 2330 POSIX::setuid($uid);
13    
14 misc 2262 fork() || exec "ii -n $nick -i /var/lib/ii/$nick -s $server";
15     wait();

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28