Basic upstart script

This commit is contained in:
Julien Duponchelle committed 2015-04-22 17:13:39 +02:00
1 parent 531e95463c
commit fc289fd868
2 files changed
+45

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
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
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