Chkconfig Error
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about chkconfig error reading information on service no such file or directory hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question
Chkconfig No Such File Or Directory
_ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's error reading information on service named: no such file or directory how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top chkconfig on for arbitrary path program up vote 2 down vote favorite Noramlly to add a start up
Error Reading Information On Service Tomcat: No Such File Or Directory
program one have something like chkconfig httpd on however how can I do this for a program that I need to start like /usr/local/program/sbin/program ? I tried chkconfig /usr/local/program/sbin/program on but it said error reading information on service /usr/local/program/sbin/program: No such file or directory Unfortunately all the example I found online is chkconfig [service name] on. linux centos boot chkconfig share|improve this question asked Sep 20 '13 at 13:31 user2643506 11612 add a comment| 3 Answers 3 active oldest error reading information on service ntpd no such file or directory votes up vote 3 down vote Read the chkconfig man page, specifically the --add section and the RUNLEVEL FILES section. share|improve this answer answered Sep 20 '13 at 13:39 Safado 3,18811942 add a comment| up vote 3 down vote Add to your script these example lines: #chkconfig: 345 80 20 #description: example script Explanation: 345 - levels 80 - start priority 20 - stop priority Of course, these are example values, you can change it. Add your script with command: chkconfig --add share|improve this answer answered Sep 20 '13 at 21:06 maayke 45648 add a comment| up vote 1 down vote chkconfig manage the links under /etc/rcX.d/ for the scripts in the directory /etc/init.d share|improve this answer answered Sep 20 '13 at 20:14 c4f4t0r 2,78211123 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged linux centos boot chkconfig or ask your own question. asked 3 years ago viewed 3812 times active 3 years ago Blog Stack Overflow Podcast #89 - The Decline of Stack Overflow Has Been Greatly… Related 1Subtle difference in chkconfig entry4chkconfig not starting application script on bootup5What
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more
Error Reading Information On Service Iptables
about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error Reading Information On Service Httpd: No Such File Or Directory
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow failed to start iptables.service: unit iptables.service failed to load: no such file or directory. is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting an error when executing “chkconfig --add tomcat” using chef? up vote 1 http://serverfault.com/questions/540482/chkconfig-on-for-arbitrary-path-program down vote favorite I am using chef to configure a centos machine and everything is installing fine except for execute "chkconfig add tomcat" do command "chkconfig --add tomcat" end execute "chkconfig tomcat level" do command "chkconfig --level 234 tomcat on" end Which brings this error.. Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of chkconfig --add tomcat ---- STDOUT: STDERR: error reading information http://stackoverflow.com/questions/21941251/getting-an-error-when-executing-chkconfig-add-tomcat-using-chef on service tomcat: No such file or directory ---- End output of sudo chkconfig --add tomcat ---- Ran chkconfig --add tomcat returned 1 tomcat centos chef share|improve this question edited Feb 21 '14 at 19:31 StephenKing 9,82842255 asked Feb 21 '14 at 17:33 jquerynoob 1111110 tomcat isn't in your $PATH... –sethvargo Feb 22 '14 at 0:13 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote Are you married to using chkconfig? There's a service resource that should take care of this for you. Chef::Provider::Service::Init::Redhat service The provider that is used with the Red Hat and CentOS platforms. share|improve this answer answered Feb 23 '14 at 23:56 JJ Asghar 33529 add a comment| up vote 1 down vote service "tomcat" do supports :status => true, :restart => true, :reload => true action [ :enable, :start ] end share|improve this answer answered Nov 21 '14 at 7:21 user60679 164212 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://unix.stackexchange.com/questions/150517/how-can-i-make-iptables-service-start-automatically-after-reboot-on-cenos-rhel7 of this site About Us Learn more about Stack Overflow the company Business http://forums.fedoraforum.org/showthread.php?t=251423 Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's no such how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How can I make iptables service start automatically after reboot on CenOS/RHEL7? up vote 3 down vote favorite I am having a few issues with a newly installed home server I am preparing. I have installed CentOS7 on it and I found no such file that port 80 and 443 are off by default. I therefore added them to the iptables with the following commands: iptables -I INPUT 5 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 5 -i eth0 -p tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT service iptables save I also installed the iptable service which was not present. The problem is that every time I reboot the machine the new configurations are wiped. I tried to add the the iptable service to chkconfig but I get the following error: [root@CentOS-7]# chkconfig --add iptables error reading information on service iptables: No such file or directory I presume that the reason I get this error is because there is no iptable script in /etc/init.d/ however has anyone any ideas if I am actually doing the right thing and/or if there is an easier more solid way to do this? If not how can I solve this problem? In the end I just need to use my home server as a web/mail server... I have also tried to use the 'systemctl enable iptables' command as flemingovirus kindly suggest
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Fedora 23/24 > Using Fedora [SOLVED] chkconfig problem:cannot add conky FedoraForum Search User Name Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum. Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 12th September 2010, 02:26 PM rudra-b Offline Registered User Join Date: Jun 2008 Posts: 176 chkconfig problem:cannot add conky chkconfig problem:cannot add conky I want to start my conky while system boots. what i am getting is: Code: # uname -smrpi Linux 2.6.34.6-54.fc13.i686.PAE i686 i686 i386 #which conky /usr/bin/conky # /sbin/chkconfig --level 5 conky on error reading information on service conky: No such file or directory # /sbin/chkconfig --level 5 /usr/bin/conky on error reading information on service /usr/bin/conky: No such file or directory # /sbin/chkconfig --add conky error reading information on service conky: No such file or directory where I am going wrong? also, the gui (system-config-services) neither help me to add/remove services rudra-b View Public Profile Find all posts by rudra-b #2 12th September 2010, 03:01 PM scott32746 Offline Registered User Join Date: Jun 2007 Location: Lake Mary, Florida Age: 52 Posts: 1,088 Re: chkconfig problem:cannot add conky Hello, This is not an auto startup on the away you tried but may help. http://forums.fedoraforum.org/showthread.php?t=187902 scott32746 View Public Profile Find all posts by scott32746 #3 12th September 2010, 03:03 PM Evil_Bert Offline Retired Again - Administrator Join Date: Nov 2007 Location: 'straya Posts: 3,378 Re: chkconfig problem:cannot add conky Conky is not a service and cannot be controlled with chkconfig. For that to work, you would have to write