Displaying 20 results from an estimated 70 matches for "service_nam".
Did you mean:
service_name
2004 Feb 10
0
Daemon help
...f service_main
while state == RUNNING
File.open("c:\\foo.log","a+"){ |f| f.puts "foo
running" }
sleep 5
end
end
end
d = Daemon.new
d.mainloop
# END daemon.rb
# daemonctrl.rb in ''C:\somedir''
require "win32/service"
include Win32
SERVICE_NAME = "FooSvc"
SERVICE_DISPLAYNAME = "Foo Service"
PROGRAM = "c:\\daemon.rb"
if ARGV[0]=="install"
svc = Service.new
svc.create_service{ |s|
s.service_name = SERVICE_NAME
s.display_name = SERVICE_DISPLAYNAME
s.binary_path_name = ...
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
...TATE_ALL,
service_buf,
service_buf.size,
bytes_needed,
services_returned,
resume_handle,
group
)
if bool
num_services = services_returned.unpack(''L'').first
index = 0
1.upto(num_services){ |num|
info = service_buf[index, enum_service.size-1]
service_name = info[0,4].pack(''p'') # boom!
index += enum_service.size
}
end
Regards,
Dan
2005 May 14
4
Problems with custom service and webrick
...prog = home + ''\webrick_daemon.rb ''
prog += "-p #{port} -r #{root} -m #{home}"
full_path = path + prog
unless File.exists?(home + ''\webrick_daemon.rb'')
STDERR.puts "Error: webrick_daemon.rb not found in
#{home}. Exiting..."
exit!
end
service_name = ''WebrickSvc''
display_name = ''Webrick''
# Install the service
if OPTIONS[:install]
svc = Service.new
svc.create_service{ |s|
s.service_name = service_name
s.display_name = display_name
s.binary_path_name = ''c:\ruby\bin...
2013 May 09
1
equivalent way to iterate through a hash
If I have something like this in my node file:
daemontools_service::setup {
''carbon-cache'':
service_name => ''carbon-cache'',
....
extra_envs => {
"GRAPHITE_STORAGE_DIR" => "/mnt/statsd-data/graphite-storage"
"SOMETHING_ELSE" => "12345"
"FOO...
2013 Aug 28
3
Creating Windows services
Hello,
Documentation mentions that Windows service resource provider "can start,
stop, enable, and disable services".
Is it possible to create (register) a service using this provider?
I''m running stand-alone Puppet agent 3.4.2 on Windows.
Thanks,
Igor.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To
2007 Nov 03
2
Service.services bug (pure Ruby version)
Hi all,
I''ve hit a curious bug in the Service.services method. This is in the
pure Ruby version in CVS. Check it out and run this snippet:
Service.services{ |s|
p s.service_name
p s.display_name
}
That will segfault after about 14 entries for me. It appears to be a
problem with memcpy on line 658, but I couldn''t tell you why.
The interesting thing is that the more I use ''puts'', the less likely
this error is to occur. To show you what I m...
2011 Aug 24
2
handy tip against unhelpful "Could not intern from pson" error
...otes so it easily
distinguishes between them and puppet keywords, plus for syntax
highlighting, etc. Turns out this personal preference has shot me in
the foot as the difference between the error messages for an empty
string versus an undefined variable is rather big.
See this unhelpful message:
$service_name = "httpd"
service { "$servicename": ensure => running }
err: Could not retrieve catalog from remote server: Could not intern
from pson: Could not convert from pson: Could not find relationship
target "Service[]"
versus this:
$service_name = "httpd"
serv...
2012 Jul 10
2
Refresh not working with launchd service provider?
...<key>Label</key>
<string>net.davidlballenger.example</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/example.sh</string>
</array>
</dict>
</plist>
Here''s the example.pp file:
$service_name = ''net.davidlballenger.example''
$file_path = "/var/tmp/${service_name}"
file { $file_path :
content => $uptime_seconds ,
}
service { $service_name :
ensure => running,
enable => true,
subscribe => File[ $file_path ],
}
The File reso...
2014 Jun 18
15
[Bug 2246] New: PAM enhancements for OpenSSH server
https://bugzilla.mindrot.org/show_bug.cgi?id=2246
Bug ID: 2246
Summary: PAM enhancements for OpenSSH server
Product: Portable OpenSSH
Version: 6.6p1
Hardware: Sparc
OS: Solaris
Status: NEW
Severity: enhancement
Priority: P5
Component: PAM support
Assignee: unassigned-bugs at
2011 Jun 20
13
confused about file ensure/require
my base/default includes this ntp manifest
# cat modules/ntp/manifests/ntp.pp
# ntp.pp
class ntp {
case $operatingsystem {
centos, redhat: {
$service_name = ''ntpd''
$conf_file = ''ntp.conf.el''
}
debian, ubuntu: {
$service_name = ''ntp''
$conf_file = ''ntp.conf.debian''
}
}
package { ''ntp'':
ensure => installed,
}
service...
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...Brad.
-------------- next part --------------
--- dovecot-2.2.10/src/auth/passdb-pam.c.orig 2014-12-11 22:48:47.861478049 +0000
+++ dovecot-2.2.10/src/auth/passdb-pam.c 2014-12-12 11:25:23.304742138 +0000
@@ -41,12 +41,13 @@
struct pam_passdb_module {
struct passdb_module module;
- const char *service_name, *pam_cache_key;
+ const char *service_name, *pam_cache_key, *username_format;
unsigned int requests_left;
unsigned int pam_setcred:1;
unsigned int pam_session:1;
unsigned int failure_show_msg:1;
+ unsigned int pam_allow_transform:1;
};
struct pam_conv_context {
@@ -67,6 +68,13 @@...
2012 Oct 15
2
Puppet not picking up files
...luate: Could not
retrieve information from environment production source(s)
file:/etc/puppet/modules/ntp/files/ntp.conf at
/etc/puppet/modules/ntp/manifests/init.pp:28
on the puppet server I have the following:
# init.pp
class ntp {
case $operatingsystem {
sles: {
$service_name = ''ntpd''
$conf_file = ''ntp.conf''
}
}
# package { ''ntp'':
# ensure => installed,
# }
service { ''ntp'':
name => $service_name,
ensure => running,...
2012 Jul 26
2
class with multiple package resources does not install RPMs
...case $dns_type {
RPZ : {
$conf_template =
"${conftop}/named.conf.rpz_master"
$rpz_zone_template = "${conftop}/rpz.cisco.com.db"
}
}
case $operatingsystem { centos, redhat: { $service_name =
''named'' } }
$packages = [ ''bind'', ''eir-bind-conf'' ]
Package { ensure => installed, }
package { $packages : }
service { ''named'':
name => $service_name,
ensure...
2005 Dec 10
1
win32 service
...gt; >>the c code (I''m not
> >>a very good c programmer) I see at least in the c
> >>code the possibility
> >>of passing in start parameters. However the text
> >>file doesn''t seem o
> >>provide for this in Service.start("service_name").
>
> >>How does one pass in
> >>the start up parameters?
> >>
> >>Thanks in advance
> >>
> >>Ernie
> >>
> >>
> >>
> >
> >
> >__________________________________________________
> &g...
2013 Jan 23
1
DPMA and Sending fake auth rejection for device
...figure it all, since
it works only on certified versions, and my installation was not from
the certified branch. It took a long time of recompiling, testing,
adding missing stuff, but I got it straight.
Now, I did a very basic res_digium_phone.conf file:
[general]
service_discovery_enabled=no
service_name=Asterisk server
registration_address=asterisk_ip
registration_port=5060
userlist_auth=globalpin
config_auth=globalpin
globalpin=1234
config_auth=disabled
file_directory=/etc/asterisk/digium_phones
[network]
type=network
alias=home
cird=0.0.0.0/0
registration_address=asterisk_ip
registration_port=...
2015 Mar 24
2
how to add service at boot up
Hi there,
I am used to traditional update-rc.d et all.
Now I wonder how to add a a script that used to called by init.d (wit
start/sop ..) to the new "service start xx" regime.
All the tutorials I found talk about how to use update-rc.d..
thanks
robert
2016 Jul 28
1
LXC containers - systemd takes a long time to start
I've got a CentOS7 server (fully patched) and in it I'm running several
LXC containers. I've noticed that whenever I try to launch a service
via `systemctl start <service_name>` soon after LXC boot, it will take
~5 minutes before the prompt returns. After that initial delay,
starting/stopping/restarting services happens immediately. It might be
that this happens because the server is running a large number of (>20)
containers. On next reboot, I'll see i...
2003 Jun 23
1
RFC: PAM service name change?
...pinions?
Jeremy
-------------- next part --------------
--- dovecot-0.99.10-rc1/src/auth/passdb-pam.c.servicename 2003-06-23 00:56:22.000000000 -0400
+++ dovecot-0.99.10-rc1/src/auth/passdb-pam.c 2003-06-23 00:56:27.000000000 -0400
@@ -366,7 +366,7 @@
static void pam_init(const char *args)
{
- service_name = i_strdup(*args != '\0' ? args : "imap");
+ service_name = i_strdup(*args != '\0' ? args : "dovecot");
to_wait = NULL;
}
2004 Jan 13
1
Winbind PAM authentication
Config: Solaris 8, OpenLDAP winbind backend, using AD for global users.
Is there documentation on what service_name / module_type pairs are
supported by pam_winbind? I've gone through the Samba-3 HOWTO book
and internet searches, but haven't found anything difinitive. I have been
able to tell through experimentation that winbind doesn't work with
"rsh auth", giving a "Protocol Error&q...
2008 Sep 04
1
open_fake_file_shared: access_denied
Hi there,
I have found following messages in log:
open_fake_file_shared: access_denied to service[SERVICE_NAME]
file[$Extend/$Quota:$Q:$INDEX_ALLOCATION] user[USER_NAME]
The messages appears in some computers' logs for more then just one user. It
looks like computer dependent not user dependent.
I don't know what exactly this message means and I don't understand where is
the problem.
Could y...