Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 4.1 failed #9

Open
Jeff-Tian opened this issue Sep 1, 2016 · 2 comments
Open

Lab 4.1 failed #9

Jeff-Tian opened this issue Sep 1, 2016 · 2 comments

Comments

@Jeff-Tian
Copy link

  1. Script error:
sudo service fake_service start
touch: cannot touch ‘/var/lock/subsys/fake_service’: No such file or directory
/etc/init.d/fake_service: line 15: [: =: unary operator expected
  1. How to do the following commands in Ubuntu machine?
sudo chkconfig --list fake_service
sudo chkconfig --add fake_service
sudo chkconfig fake_service on
 sudo chkconfig fake_service off
@rosscournoyer602
Copy link

Ubuntu equivalent of chkconfig is update-rc.d

@Jeff-Tian
Copy link
Author

@rosscournoyer602 thank you.

Working commands:
sudo chkconfig --add fake_service --> sudo update-rc.d fake_service defaults
sudo chkconfig fake_service off --> sudo update-rc.d -f fake_service remove

Still not working commands:
sudo chkconfig fake_service on --> sudo update-rc.d fake_service start claims unknown option
sudo chkconfig --list fake_service --> What is the equivalent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants