diff --git a/META.json b/META.json index bcd69e8..0ff8bee 100644 --- a/META.json +++ b/META.json @@ -84,7 +84,7 @@ "provides" : { "Win32::Daemon" : { "file" : "lib/Win32/Daemon.pm", - "version" : "20180920" + "version" : "20181025" } }, "release_status" : "stable", @@ -99,10 +99,10 @@ "web" : "https://github.com/perl-libwin32/win32-daemon" } }, - "version" : "20180920", + "version" : "20181025", "x_Dist_Zilla" : { "perl" : { - "version" : "5.026001" + "version" : "5.028000" }, "plugins" : [ { @@ -130,53 +130,6 @@ "name" : "Git::GatherDir", "version" : "2.045" }, - { - "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@Starter/PruneCruft", - "version" : "6.012" - }, - { - "class" : "Dist::Zilla::Plugin::ManifestSkip", - "name" : "@Starter/ManifestSkip", - "version" : "6.012" - }, - { - "class" : "Dist::Zilla::Plugin::MetaConfig", - "name" : "@Starter/MetaConfig", - "version" : "6.012" - }, - { - "class" : "Dist::Zilla::Plugin::MetaProvides::Package", - "config" : { - "Dist::Zilla::Plugin::MetaProvides::Package" : { - "finder_objects" : [ - { - "class" : "Dist::Zilla::Plugin::FinderCode", - "name" : "@Starter/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "6.012" - } - ], - "include_underscores" : 0 - }, - "Dist::Zilla::Role::MetaProvider::Provider" : { - "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", - "inherit_missing" : 1, - "inherit_version" : 0, - "meta_noindex" : 1 - }, - "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000033", - "version" : "0.006" - } - }, - "name" : "@Starter/MetaProvides::Package", - "version" : "2.004003" - }, - { - "class" : "Dist::Zilla::Plugin::MetaNoIndex", - "name" : "@Starter/MetaNoIndex", - "version" : "6.012" - }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Starter/MetaYAML", @@ -197,16 +150,6 @@ "name" : "@Starter/Pod2Readme", "version" : "0.004" }, - { - "class" : "Dist::Zilla::Plugin::ExecDir", - "name" : "@Starter/ExecDir", - "version" : "6.012" - }, - { - "class" : "Dist::Zilla::Plugin::ShareDir", - "name" : "@Starter/ShareDir", - "version" : "6.012" - }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Starter/PodSyntaxTests", @@ -261,8 +204,13 @@ "version" : "6.012" }, { - "class" : "Dist::Zilla::Plugin::TestRelease", - "name" : "@Starter/TestRelease", + "class" : "Dist::Zilla::Plugin::PruneCruft", + "name" : "@Starter/PruneCruft", + "version" : "6.012" + }, + { + "class" : "Dist::Zilla::Plugin::ManifestSkip", + "name" : "@Starter/ManifestSkip", "version" : "6.012" }, { @@ -275,6 +223,11 @@ "name" : "@Starter/RunExtraTests", "version" : "0.029" }, + { + "class" : "Dist::Zilla::Plugin::TestRelease", + "name" : "@Starter/TestRelease", + "version" : "6.012" + }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Starter/ConfirmRelease", @@ -285,6 +238,53 @@ "name" : "@Starter/UploadToCPAN", "version" : "6.012" }, + { + "class" : "Dist::Zilla::Plugin::MetaConfig", + "name" : "@Starter/MetaConfig", + "version" : "6.012" + }, + { + "class" : "Dist::Zilla::Plugin::MetaNoIndex", + "name" : "@Starter/MetaNoIndex", + "version" : "6.012" + }, + { + "class" : "Dist::Zilla::Plugin::MetaProvides::Package", + "config" : { + "Dist::Zilla::Plugin::MetaProvides::Package" : { + "finder_objects" : [ + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Starter/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "6.012" + } + ], + "include_underscores" : 0 + }, + "Dist::Zilla::Role::MetaProvider::Provider" : { + "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", + "inherit_missing" : 1, + "inherit_version" : 0, + "meta_noindex" : 1 + }, + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000033", + "version" : "0.006" + } + }, + "name" : "@Starter/MetaProvides::Package", + "version" : "2.004003" + }, + { + "class" : "Dist::Zilla::Plugin::ShareDir", + "name" : "@Starter/ShareDir", + "version" : "6.012" + }, + { + "class" : "Dist::Zilla::Plugin::ExecDir", + "name" : "@Starter/ExecDir", + "version" : "6.012" + }, { "class" : "Dist::Zilla::Plugin::AutoVersion", "name" : "AutoVersion", @@ -357,7 +357,7 @@ "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.16.1.windows.1", + "git_version" : "2.19.0.windows.1", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -365,7 +365,7 @@ } }, "name" : "Git::Contributors", - "version" : "0.034" + "version" : "0.035" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", @@ -387,7 +387,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.16.1.windows.1", + "git_version" : "2.19.0.windows.1", "repo_root" : "." } }, @@ -410,7 +410,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.16.1.windows.1", + "git_version" : "2.19.0.windows.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -427,12 +427,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v20180920", + "tag" : "v20181025", "tag_format" : "v%v", "tag_message" : "v%v" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.16.1.windows.1", + "git_version" : "2.19.0.windows.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -452,7 +452,7 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.16.1.windows.1", + "git_version" : "2.19.0.windows.1", "repo_root" : "." } }, @@ -653,7 +653,7 @@ "Olivier Mengu\u00e9 ", "Tomasz Konojacki " ], - "x_generated_by_perl" : "v5.26.1", + "x_generated_by_perl" : "v5.28.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.06" } diff --git a/Makefile.PL b/Makefile.PL index 1478169..5ef42fe 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -54,7 +54,7 @@ my %WriteMakefileArgs = ( "File::Spec" => 0, "Test::More" => "0.88" }, - "VERSION" => 20180920, + "VERSION" => 20181025, "test" => { "TESTS" => "t/*.t" } diff --git a/README.md b/README.md index 1711d4b..8d96eb7 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,9 @@ This extension enables a Win32 Perl script to act as a true Win32 service. return is TRUE if the service was created, and FALSE otherwise. If an error occurred, call GetLastError to retrieve the actual error code. + **NOTE:** This function will fail if the script is not running with administrator + privileges. + The hash describes the service to be created. The keys are: - `name` diff --git a/lib/Win32/Daemon.pm b/lib/Win32/Daemon.pm index 98f5bc7..95db12c 100644 --- a/lib/Win32/Daemon.pm +++ b/lib/Win32/Daemon.pm @@ -1,6 +1,6 @@ package Win32::Daemon; -our $VERSION = '20180920'; +our $VERSION = '20181025'; our $XS_VERSION = $VERSION;