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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2262 - (show annotations) (download)
Sun Jan 15 13:41:11 2012 UTC (9 years, 10 months ago) by misc
File MIME type: text/plain
File size: 209 byte(s)
add a custom wrapper for running ii, since it doesn't react like
a regular daemon, and doing this with simple shell command is too
tedious.
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Proc::Daemon;
5 my $nick = "<%= nick %>";
6 my $server = "<%= server %>";
7
8 Proc::Daemon::Init();
9 fork() || exec "ii -n $nick -i /var/lib/ii/$nick -s $server";
10 wait();

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28