2015-04-22 15:13:39 +00:00
|
|
|
description "GNS3 server"
|
|
|
|
author "GNS3 Team"
|
|
|
|
|
|
|
|
start on filesystem or runlevel [2345]
|
|
|
|
stop on shutdown
|
|
|
|
|
|
|
|
script
|
2015-04-30 14:43:30 +00:00
|
|
|
echo $$ > /var/run/gns3.pid
|
2015-07-20 15:42:34 +00:00
|
|
|
exec start-stop-daemon --start -c gns3 --exec /usr/local/bin/gns3server -- --log /var/log/gns3.log
|
2015-04-22 15:13:39 +00:00
|
|
|
end script
|
|
|
|
|
|
|
|
pre-start script
|
|
|
|
echo "[`date`] GNS3 Starting" >> /var/log/gns3.log
|
|
|
|
end script
|
|
|
|
|
|
|
|
pre-stop script
|
2015-04-30 14:43:30 +00:00
|
|
|
rm /var/run/gns3.pid
|
2015-04-22 15:13:39 +00:00
|
|
|
echo "[`date`] GNS3 Stopping" >> /var/log/gns3.log
|
|
|
|
end script
|