1

I have been trying to disable chef-server services on boot time. I looked into "/etc/init.d/" but there are no any chef related service listed. I checked service list from service --status-all but no chef related service i am able to get. I tried with "chef-server-ctl once bookshelf" command but after reboot, services are starting by itself. I am using ubuntu 14.04 with chef 11 server. Any help would be appriciated.

root@talkwithmurtuza5:/home/user# chef-server-ctl status
down: bookshelf: 97s, normally up; run: log: (pid 808) 658s
down: chef-expander: 95s, normally up; run: log: (pid 806) 658s
down: chef-solr: 94s, normally up; run: log: (pid 805) 658s
down: erchef: 94s, normally up; run: log: (pid 807) 658s
down: postgresql: 93s, normally up; run: log: (pid 815) 658s
down: rabbitmq: 93s, normally up; run: log: (pid 822) 658s
4
  • What is your end goal? – coderanger Mar 23 '17 at 17:10
  • I have two chef-server installed in single machine. I want to stop chef-server11 and keep running chef-12. – Murtuza Kolasavala Mar 24 '17 at 4:38
  • That is not really supported, take a backup of the 11 server and then deploy a new one for 12 of you want to be able to roll back. – coderanger Mar 24 '17 at 6:01
  • 1
    I found a solution already, I made changes in chef-server config file from "/etc/init/chef-server-runsvdir.conf. I changed runlevel to 0. – Murtuza Kolasavala Mar 24 '17 at 11:34
0

I was asking the same thing . It looks like chef uninstall will do what you want, with no data loss.

chef-server-ctl uninstall

https://d2avhevdwylo4t.cloudfront.net/ctl_chef_server.html#uninstall

to restore that

chef-server-ctl reconfigure

https://d2avhevdwylo4t.cloudfront.net/ctl_chef_server.html#reconfigure

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.