2016-08-26 19:45:22 +03:00
|
|
|
[Unit]
|
|
|
|
Description=GNS3 server
|
2017-01-09 11:28:21 +02:00
|
|
|
Wants=network-online.target
|
|
|
|
After=network.target network-online.target
|
2016-08-26 19:45:22 +03:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=gns3
|
|
|
|
Group=gns3
|
|
|
|
PermissionsStartOnly=true
|
2016-08-27 03:00:26 +03:00
|
|
|
ExecStartPre=/bin/mkdir -p /var/log/gns3 /var/run/gns3
|
|
|
|
ExecStartPre=/bin/chown -R gns3:gns3 /var/log/gns3 /var/run/gns3
|
|
|
|
ExecStart=/usr/local/bin/gns3server --log /var/log/gns3/gns3.log \
|
|
|
|
--pid /var/run/gns3/gns3.pid --daemon
|
2016-08-26 19:45:22 +03:00
|
|
|
Restart=on-abort
|
2016-08-27 03:00:26 +03:00
|
|
|
PIDFile=/var/run/gns3/gns3.pid
|
2016-08-26 19:45:22 +03:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|