Issue #9381 has been updated by Miguel Filho.

This seams to happen when the a service is only managed by scripts in /etc/init 
("pure upstart" I suppose) and does not provide a link or equivalent in 
/etc/init.d.

<pre>
# ls -l /etc/init/tty2.conf
-rw-r--r-- 1 root root 213 Apr  1  2010 /etc/init/tty2.conf
# ps axf|grep tty2
24482 pts/0    S+     0:00      \_ grep --color=auto tty2
24479 tty2     Ss+    0:00 /sbin/getty -8 38400 tty2
</pre>

<pre>
# echo 'service{tty2: ensure => stopped }'| puppet apply
err: /Stage[main]//Service[tty2]: Could not evaluate: Could not find init 
script for 'tty2'
notice: Finished catalog run in 0.03 seconds

# service tty2 status
tty2 start/running, process 24310

# service tty2 stop
tty2 stop/waiting

# service tty2 start
tty2 start/running, process 24479
</pre>

I´m using Ubuntu 10.04 and Puppet 2.7.6 from Puppetlabs' repository.
----------------------------------------
Bug #9381: puppet 2.7.1 service{postfix: ensure=>stopped} error about not 
finding init script
https://projects.puppetlabs.com/issues/9381

Author: Evgeny Zislis
Status: Needs More Information
Priority: Normal
Assignee: 
Category: service
Target version: 
Affected Puppet version: 2.7.3
Keywords: 
Branch: 


In Puppet 2.6.7 it worked fine, but after upgrading to 2.7.1 on the agents we 
started getting errors about ensuring stopped services.
Ubuntu 10.10 (maverick) systems are affected.

    echo 'service{[postfix,exim,sendmail]: ensure => stopped }'| puppet apply
    err: /Stage[main]//Service[postfix]: Could not evaluate: Could not find 
init script for 'postfix'
    err: /Stage[main]//Service[exim]: Could not evaluate: Could not find init 
script for 'exim'
    err: /Stage[main]//Service[sendmail]: Could not evaluate: Could not find 
init script for 'sendmail'
    notice: Finished catalog run in 0.25 seconds


and with debug:

    info: Applying configuration version '1315474587'
    debug: Service[postfix](provider=debian): Could not find postfix in 
/etc/init.d
    debug: Service[postfix](provider=debian): Could not find postfix.sh in 
/etc/init.d
    err: /Stage[main]//Service[postfix]: Could not evaluate: Could not find 
init script for 'postfix'
    debug: Service[exim](provider=debian): Could not find exim in /etc/init.d
    debug: Service[exim](provider=debian): Could not find exim.sh in /etc/init.d
    err: /Stage[main]//Service[exim]: Could not evaluate: Could not find init 
script for 'exim'
    debug: Service[sendmail](provider=debian): Could not find sendmail in 
/etc/init.d
    debug: Service[sendmail](provider=debian): Could not find sendmail.sh in 
/etc/init.d
    err: /Stage[main]//Service[sendmail]: Could not evaluate: Could not find 
init script for 'sendmail'
    debug: Finishing transaction 70157060062900
    debug: Storing state
    debug: Stored state in 0.18 seconds
    notice: Finished catalog run in 0.23 seconds
    debug: Finishing transaction 70157060647300
    


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to