3ofcoins / chef-cookbook-hostname

Chef cookbook to set node's hostname and FQDN.
MIT License
41 stars 90 forks source link

Error executing action `restart` on resource 'service[network]' #71

Open SudBisht opened 1 year ago

SudBisht commented 1 year ago

getting this issue withRHEL8

Issue: Recipe: hostname::default service[network] action restart

================================================================================ Error executing action restart on resource 'service[network]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '5' ---- Begin output of /bin/systemctl --system restart network ---- STDOUT: STDERR: Failed to restart network.service: Unit network.service not found. ---- End output of /bin/systemctl --system restart network ---- Ran /bin/systemctl --system restart network returned 5

aminclip commented 1 year ago

Hi there, I have the same issue with this cookbook.