mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 08:25:33 +00:00
359abb0286
This reverts commit 929c337e8bf33f060c884368628b279550248925, reversing changes made to b9bc73fd0109a6195c714c0e910bcfd0805b2192.
20 lines
450 B
Plaintext
20 lines
450 B
Plaintext
description "GNS3 server"
|
|
author "GNS3 Team"
|
|
|
|
start on filesystem or runlevel [2345]
|
|
stop on shutdown
|
|
|
|
script
|
|
echo $$ > /var/run/gns3.pid
|
|
exec start-stop-daemon --start -c gns3 --exec /usr/local/bin/gns3server --log /var/log/gns3.log
|
|
end script
|
|
|
|
pre-start script
|
|
echo "[`date`] GNS3 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
|