/[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 2330 - (hide annotations) (download)
Sun Jan 22 23:31:09 2012 UTC (12 years, 3 months ago) by misc
File MIME type: text/plain
File size: 291 byte(s)
make ii run as nobody
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 2330 my (undef, undef, $uid) = getpwname("nobody");
12     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.30