upstart

systemd

Last updated
March 2, 2017

Contributors
Julien Duponchelle
Ricar Ganancial
Edit this Article
Last updated
March 2, 2017

Contributors
Julien Duponchelle
Ricar Ganancial
Edit this Article

Running the GNS3 server as a daemon

You will find a sample init script for various systems inside the init directory of the gns3-server project: https://github.com/GNS3/gns3-server/tree/master/init

Useful parameters to launch the server with:

  • --daemon: start process as a daemon
  • --log logfile: store output in a logfile
  • --pid pidfile: store the pid of the running process in a file and prevent double execution

All the init script require the creation of a GNS3 user. It is possible change it to another user.

sudo adduser gns3

upstart

For ubuntu < 15.04

You must copy gns3.conf.upstart to /etc/init/gns3.conf and run these commands:

sudo chown root /etc/init/gns3.conf
sudo service gns3 start

systemd

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

sudo chown root /lib/systemd/system/gns3.service
sudo systemctl enable gns3
sudo systemctl start gns3