0.0.7
* Added user and group accessors to set uid/gid based on names * Updated docs.
This commit is contained in:
parent
007ff90b4f
commit
3a58e3d35e
3 changed files with 29 additions and 5 deletions
4
Changes
4
Changes
|
@ -1,3 +1,7 @@
|
|||
0.0.7 2012-15-04 SymKat <symkat@symkat.com>
|
||||
* Added user and group accessors to set uid/gid based on names
|
||||
* Updated docs.
|
||||
|
||||
0.0.6 2012-15-04 SymKat <symkat@symkat.com>
|
||||
* PID file will be deleted on do_stop
|
||||
* PID file will be created by the target user when ->uid set
|
||||
|
|
28
README.md
28
README.md
|
@ -81,23 +81,43 @@ $daemon->program\_args( \[ 'foo', 'bar' \] );
|
|||
|
||||
$daemon->program\_args( \[ '--switch', 'argument' \] );
|
||||
|
||||
|
||||
|
||||
## user
|
||||
|
||||
When set, the username supplied to this accessor will be used to set
|
||||
the UID attribute. When this is used, `uid` will be changed from
|
||||
its inital settings if you set it (which you shouldn't, since you're
|
||||
using usernames instead of UIDs). See ["uid"](#uid) for setting numerical
|
||||
user ids.
|
||||
|
||||
$daemon->user('www-data');
|
||||
|
||||
## group
|
||||
|
||||
When set, the groupname supplied to this accessor will be used to set
|
||||
the GID attribute. When this is used, `gid` will be changed from
|
||||
its inital settings if you set it (which you shouldn't, since you're
|
||||
using groupnames instead of GIDs). See ["gid"](#gid) for setting numerical
|
||||
group ids.
|
||||
|
||||
$daemon->group('www-data');
|
||||
|
||||
## uid
|
||||
|
||||
If provided, the UID that the program will drop to when forked. This is
|
||||
ONLY supported in double-fork mode and will only work if you are running
|
||||
as root. Accepts numeric UID, or finds it if given a username as a string.
|
||||
as root. Accepts numeric UID. For usernames please see ["user"](#user).
|
||||
|
||||
$daemon->uid( 1001 );
|
||||
$daemon->uid('www-data');
|
||||
|
||||
## gid
|
||||
|
||||
If provided, the GID that the program will drop to when forked. This is
|
||||
ONLY supported in double-fork mode and will only work if you are running
|
||||
as root. Accepts numeric GID, or finds it if given a group name as a string.
|
||||
as root. Accepts numeric GID, for groupnames please see ["group"](#group).
|
||||
|
||||
$daemon->gid( 1001 );
|
||||
$daemon->gid('www-data');
|
||||
|
||||
## directory
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use POSIX qw(_exit setsid setuid setgid getuid getgid);
|
|||
use File::Spec;
|
||||
require 5.008001; # Supporting 5.8.1+
|
||||
|
||||
our $VERSION = '0.000006'; # 0.0.6
|
||||
our $VERSION = '0.000007'; # 0.0.6
|
||||
$VERSION = eval $VERSION;
|
||||
|
||||
my @accessors = qw(
|
||||
|
|
Loading…
Add table
Reference in a new issue