mother / gns3-docs

9 stars 45 forks source link

Docs update - Running the gns3 server as a deamon, systemd #77

Closed cwoelkers closed 1 year ago

cwoelkers commented 1 year ago

https://github.com/mother/gns3-docs/blob/master/docs/using-gns3/administration/running-gns3-server-as-daemon.md

Recommend the following changes to the above files systemd portion. Specifically the following part.

You must copy gns3.service.systemd to /lib/systemd/system/gns3.service and run these commands:

sudo cp gns3.service.systemd /lib/systemd/system/gns3.service
sudo chown root /lib/systemd/system/gns3.service

This should instead be changed to the following, my reasoning follows.

You must copy gns3.service.systemd to /etc/systemd/system/gns3.service and run these commands:

sudo cp gns3.service.systemd /etc/systemd/system/gns3.service
sudo systemctl daemon-reload

/etc/systemd/system is the preferred location for "custom" or additional systemd unit files that are not installed as part of a package. In this case the gns3.service file is not installed via pip and is instead downloaded separately. This is not required. The systemctl daemon-reload command is required after adding a systemd unit file in order for systemd to know that the file has been added. Without this command starting the service will not work.