Question

service: command not found

I am trying to setup a VPN via this tutorial: https://www.digitalocean.com/community/tutorials/how-to-setup-your-own-vpn-with-pptp and when I try the command: service pptpd restart it gives me this error:

service: command not found

Anyone that can help?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This article explains the issue and the solution,

http://www.devdummy.com/2017/10/systemctl-command-not-found.html

/Sameera

I actually fixed my problem, You need to run sudo service pptpd restart because I think the service command is only a root command!

That guide was probably written for Ubuntu and since you’re on Debian, you need to do this:

sudo systemctl restart pptpd

So we’re just replace service with systemctl and then moving around in the commands.