Jira (PUP-1785) Services without any init script on Freebsd result in error

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1785 
 
 
 
  Services without any init script on Freebsd result in error  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1785) Services without any init script on Freebsd result in error

2017-05-15 Thread Nicholas Fagerlund (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicholas Fagerlund updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1785 
 
 
 
  Services without any init script on Freebsd result in error  
 
 
 
 
 
 
 
 
 

Change By:
 
 Nicholas Fagerlund 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1785) Services without any init script on Freebsd result in error

2014-02-27 Thread Dolf Schimmel (JIRA)
Title: Message Title










 

 Dolf Schimmel updated an issue


















 Puppet /  PUP-1785



  Services without any init script on Freebsd result in error 










Change By:

 Dolf Schimmel




Environment:

 FreeBSD tank3.transip.nl 9.2-RELEASEFreeBSD9.2-RELEASE#0r255898:ThuSep2622:50:31UTC2013r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERICamd64puppet--version:3.4.2ruby--version:ruby1.9.3p484(2013-11-22revision43786)[amd64-freebsd9]












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1785) Services without any init script on Freebsd result in error

2014-02-27 Thread Dolf Schimmel (JIRA)
Title: Message Title










 

 Dolf Schimmel created an issue


















 Puppet /  PUP-1785



  Services without any init script on Freebsd result in error 










Issue Type:

  Bug




Assignee:


 Unassigned




Created:


 27/Feb/14 8:38 AM




Environment:


FreeBSD tank3.transip.nl 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 puppet --version: 3.4.2 ruby --version: ruby 1.9.3p484 (2013-11-22 revision 43786) [amd64-freebsd9]




Priority:

  Normal




Reporter:

 Dolf Schimmel










I'm trying to stop a service in case it's still running. The package the service belongs to may have already been removed, so we cannot rely on the init script.
This is my manifest:

 service { 'zabbix-agent': audit = all, status = test `${::ps} | grep zabbix-agent | wc -l` == 0, stop = kill `${::ps} | grep zabbix-agent | awk '

Unknown macro: {print $2}

'`, start = '/bin/false', hasstatus = false, hasrestart = false, }

When running `puppet agent` with --debug flag, the following relevant output is shown:

Debug: Executing 'test `ps auxwww | grep zabbix-agent | wc -l` == 0' Debug: Service[zabbix-agent](provider=freebsd): Could not find zabbix-agent in /etc/rc.d Debug: Service[zabbix-agent](provider=freebsd): Could not find zabbix-agent in 

Jira (PUP-1785) Services without any init script on Freebsd result in error

2014-02-27 Thread Dolf Schimmel (JIRA)
Title: Message Title










 

 Dolf Schimmel updated an issue


















 Puppet /  PUP-1785



  Services without any init script on Freebsd result in error 










Change By:

 Dolf Schimmel









 I'mtryingtostopaserviceincaseit'sstillrunning.Thepackagetheservicebelongstomayhavealreadybeenremoved,sowecannotrelyontheinitscript.Thisismymanifest:{ quote code }service{'zabbix-agent':audit=all,status=test`${::ps}|grepzabbix-agent|wc-l`==0,stop=kill`${::ps}|grepzabbix-agent|awk'{print$2}'`,start='/bin/false',hasstatus=false,hasrestart=false,}{ quote code }Whenrunning`puppetagent`with--debugflag,thefollowingrelevantoutputisshown:{quote}Debug:Executing'test`psauxwww|grepzabbix-agent|wc-l`==0'Debug:Service[zabbix-agent](provider=freebsd):Couldnotfindzabbix-agentin/etc/rc.dDebug:Service[zabbix-agent](provider=freebsd):Couldnotfindzabbix-agentin/usr/local/etc/rc.dDebug:Service[zabbix-agent](provider=freebsd):Couldnotfindzabbix-agent.shin/etc/rc.dDebug:Service[zabbix-agent](provider=freebsd):Couldnotfindzabbix-agent.shin/usr/local/etc/rc.dError:/Stage[main]/Profile::Removelegacylater/Service[zabbix-agent]:Couldnotevaluate:Couldnotfindinitscriptfor'zabbix-agent'{quote}Expectedbehavior:IwouldexpectPuppettosimplyusemysuppliedstoporstartcommandstomanagethisresource.Actualbehavior:PuppetLooksforaninitscriptandbailsoutthemomentitcannotfindany.What'sfurthermoreinterestingisthatevenwith`noop=true`thiserrorisobserved.












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send