Comments (10)
for systemd based linux systems, this service script should help:
[Unit]
Description=GNS3 server
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/gns3server --console_bind_to_any
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300
[Install]
WantedBy=multi-user.target
is probably best not to use root:root though ..
from gns3-server.
if not use root , to bridge the nio would be a problem I think.
from gns3-server.
@anubisg1 does that script work on systemd? because on sysinit it does not. I created as script file, but when i try to start it "locks" itself to the shell.
from gns3-server.
Hi @networkpadawan , yes, that is a systemd script and it works like a charm. tested on Fedora, Centos, and openSUSE
from gns3-server.
ubuntu uses sysinit so i have to build a bash script, can´t use yours:/ manage to bypass by using the '&' flag...not perfect but works!
from gns3-server.
actually ubuntu uses upstart :D in any case ubuntu is a pain in the ass since it does always things its own way without following any real standard (unity, location of libraries, X server , ecc )
i'd say that the init script might be provided by gns3 as a template or something like that, but distribution packagers should add the service based on their standards.
what gns3 should add instead, is the ability to run gns3server as a daemon. that doesn't required a init script to be working.
from gns3-server.
you're right, but to upstart seems a init daemon:P (still better than systemd imho )and yes gns3 should daemonize the server, even for a multi tenant env it would help.
from gns3-server.
For upstart:
description "GNS3 server"
author "GNS3 Team"
start on filesystem or runlevel [2345]
stop on shutdown
script
echo $$ > /var/run/gns3.pid
if [ ! -f /usr/local/bin/gns3server ]; then
pip3 install gns3-server==1.3.0rc2
fi
exec start-stop-daemon --start -c gns3 --exec /usr/local/bin/gns3server
end script
pre-start script
echo "[`date`] GN3 Starting" >> /var/log/gns3.log
end script
pre-stop script
rm /var/run/gns3.pid
echo "[`date`] GNS3 Stopping" >> /var/log/gns3.log
end script
from gns3-server.
Daemon is ready in 1.4 I just create a an issue with the need of a systemd script #229
from gns3-server.
Systemd is ready
from gns3-server.
Related Issues (20)
- CVE-2024-23342 (High) detected in ecdsa-0.18.0-py2.py3-none-any.whl
- CVE-2024-23829 (Medium) detected in aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl HOT 1
- CVE-2024-24762 (High) detected in python_multipart-0.0.6-py3-none-any.whl - autoclosed HOT 1
- Add device start/stop hook feature
- Latest FortiGate Images for GNS3 HOT 2
- DHCP client in Docker VM fails if DHCP server doesn't respond during first 3 discovers HOT 5
- Docker container loses its network adapters sporadically HOT 1
- In version 2.2.46, busybox is missing from compute/docker/resource. HOT 3
- CVE-2024-27306 (Medium) detected in aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl HOT 1
- GNS3 VM shuts down when starting appliances HOT 1
- CVE-2024-33663 (High) detected in python_jose-3.3.0-py2.py3-none-any.whl
- CVE-2024-33664 (High) detected in python_jose-3.3.0-py2.py3-none-any.whl HOT 1
- CVE-2024-30251 (High) detected in aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl HOT 1
- gns3-server: test failure in test_create_image_with_not_supported_characters_by_filesystem HOT 1
- The IOU image has been uploaded to the compute node, but is not in the IOU image list HOT 7
- Drop Python 3.7
- CVE-2024-34064 (Medium) detected in Jinja2-3.1.3-py3-none-any.whl
- windows 10 behaves weird and slow down after install GNS3
- CVE-2024-35195 (Medium) detected in requests-2.31.0-py3-none-any.whl
- QEMU VMs have access to host filesystem via 9p HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gns3-server.