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.2 failed #10

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

Lab 4.2 failed #10

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

Comments

@Jeff-Tian
Copy link

by command systemctl can't be found and can't be installed by sudo apt-get install systemctl.

https://lms.360training.com/scorm/linuxfoundation/LFS201/Lab%204.2.pdf

@dulhaver
Copy link

dulhaver commented Sep 1, 2016

Same experience here. Worked on a 16.04 ununtu machine for me

@rosscournoyer602
Copy link

16.04 uses systemd so it is easy to get this working. 14.04 still uses upstart so you must use put it in a different place:

nano fake_service /etc/init.d/fake_service
chmod 755 /etc/init.d/fake_service

and use a different command to stop and start it:

service fake_service [start/stop]

@Jeff-Tian
Copy link
Author

@rosscournoyer602 you are right. However there are errors when issuing service fake2.service start with the following content in the /etc/init.d/fake2.service which is on the pdf lab mannual:

[Unit]
Description=fake2
After=network.target
[Service]
ExecStart=/bin/echo I am starting the fake2 service
ExecStop=/bin/echo I am stopping the fake2 service
[Install]
WantedBy=multi-user.target

The error is like:

/etc/init.d/fake2.service: 1: /etc/init.d/fake2.service: [Unit]: not found

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

3 participants