Closed 3h4x closed 8 years ago
Hi @3h4x this will be something I will have to look at as an Enhancement.
Not working on CentOS 7:
Debug: Executing '/bin/systemctl is-active supervisord'
Debug: Executing '/bin/systemctl is-enabled supervisord'
Debug: Executing '/bin/systemctl start supervisord'
Error: Could not start Service[supervisord]: Execution of '/bin/systemctl start supervisord' returned 1: Job for supervisord.service failed. See 'systemctl status supervisord.service' and 'journalctl -xn' for details.
Error: /Stage[main]/Supervisord::Service/Service[supervisord]/ensure: change from stopped to running failed: Could not start Service[supervisord]: Execution of '/bin/systemctl start supervisord' returned 1: Job for supervisord.service failed. See 'systemctl status supervisord.service' and 'journalctl -xn' for details.
Notice: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_reread]: Dependency Service[supervisord] has failures: true
Warning: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_reread]: Skipping because of failed dependencies
Notice: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_update]: Dependency Service[supervisord] has failures: true
Warning: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_update]: Skipping because of failed dependencies
Notice: /Stage[main]/Supervisord/Anchor[supervisord::end]: Dependency Service[supervisord] has failures: true
Warning: /Stage[main]/Supervisord/Anchor[supervisord::end]: Skipping because of failed dependencies
# systemctl status supervisord.service -l
supervisord.service - SYSV: supervisor is a process control utility. It has a web based
Loaded: loaded (/etc/rc.d/init.d/supervisord)
Active: failed (Result: resources) since Thu 2015-05-07 08:36:15 UTC; 1min 58s ago
Process: 24112 ExecStart=/etc/rc.d/init.d/supervisord start (code=exited, status=0/SUCCESS)
May 07 08:36:15 storm-nimbus systemd[1]: Starting SYSV: supervisor is a process control utility. It has a web based...
May 07 08:36:15 storm-nimbus supervisord[24112]: Starting supervisord: Error: Unexpected end of key/value pairs
May 07 08:36:15 storm-nimbus supervisord[24112]: For help, use /usr/bin/supervisord -h
May 07 08:36:15 storm-nimbus supervisord[24112]: [FAILED]
May 07 08:36:15 storm-nimbus-bd systemd[1]: PID file /var/run/supervisord.pid not readable (yet?) after start.
May 07 08:36:15 storm-nimbus-bd systemd[1]: Failed to start SYSV: supervisor is a process control utility. It has a web based.
May 07 08:36:15 storm-nimbus-bd systemd[1]: Unit supervisord.service entered failed state.
This error occurs because the service script for systemd is missing. You can fix it by providing the service script manually till it gets fixed by supervisord.
The service script can be found in the gist attached in my previous post.
class supervisord_custom
{
file { '/etc/systemd/system/supervisord.service':
ensure => file,
owner => 'root',
group => 'root',
mode => 0755,
source => 'puppet:///modules/supervisord_custom/supervisord.service',
before => Class['supervisord']
}
class { 'supervisord':
install_pip => true
}
}
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for alaska.some-host.de
Info: Applying configuration version '77c4c295144726abd2d73e3be20521387f60513c'
Notice: /Stage[main]/App/File[/etc/systemd/system/supervisord.service]/ensure: defined content as '{md5}a0f5a06ee9ba814cc7eda8e0b94df578'
Notice: /Stage[main]/Supervisord::Service/Service[supervisord]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Supervisord::Service/Service[supervisord]: Unscheduling refresh on Service[supervisord]
Notice: Finished catalog run in 3.44 seconds
root@alaska:~#
We now automatically install a systemd
service file please see v0.6.0
Error: Could not start Service[supervisord]: Execution of '/usr/sbin/service supervisord start' returned 6: Failed to start supervisord.service: Unit supervisord.service failed to load: No such file or directory.