mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Basic upstart script
This commit is contained in:
1 parent
531e95463c
commit
fc289fd868
2 files changed
+45
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user