From e405210e4625dd8fe25f5c7d62686bf78dd8aa11 Mon Sep 17 00:00:00 2001 From: itay Date: Mon, 15 Apr 2019 18:53:40 +0300 Subject: [PATCH] remove upstart scripts --- .../monkey_island/deb-package/DEBIAN/postinst | 1 - .../deb-package/DEBIAN_MONGO/postinst | 1 - .../deb-package/service/monkey-island.conf | 18 ------------------ .../service_mongo/monkey-mongo.conf | 18 ------------------ 4 files changed, 38 deletions(-) delete mode 100644 monkey/monkey_island/deb-package/service/monkey-island.conf delete mode 100644 monkey/monkey_island/deb-package/service_mongo/monkey-mongo.conf diff --git a/monkey/monkey_island/deb-package/DEBIAN/postinst b/monkey/monkey_island/deb-package/DEBIAN/postinst index c319db669..8efc19bbb 100644 --- a/monkey/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey/monkey_island/deb-package/DEBIAN/postinst @@ -15,7 +15,6 @@ ${PYTHON_FOLDER}/bin/python -m pip install -r $MONKEY_FOLDER/monkey_island/requi rm -rf ${INSTALLATION_FOLDER} rm -f ${MONKEY_FOLDER}/monkey_island/requirements.txt -cp ${MONKEY_FOLDER}/monkey_island/service/* /etc/init/ if [ -d "/etc/systemd/network" ]; then cp ${MONKEY_FOLDER}/monkey_island/service/systemd/*.service /lib/systemd/system/ chmod +x ${MONKEY_FOLDER}/monkey_island/service/systemd/start_server.sh diff --git a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst index b46ad0c37..76e57caa3 100644 --- a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst +++ b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst @@ -17,7 +17,6 @@ rm -f ${MONKEY_FOLDER}/monkey_island/requirements.txt ${MONKEY_FOLDER}/monkey_island/install_mongo.sh ${MONKEY_FOLDER}/monkey_island/bin/mongodb -cp ${MONKEY_FOLDER}/monkey_island/service/* /etc/init/ if [ -d "/etc/systemd/network" ]; then cp ${MONKEY_FOLDER}/monkey_island/service/systemd/*.service /lib/systemd/system/ chmod +x ${MONKEY_FOLDER}/monkey_island/service/systemd/start_server.sh diff --git a/monkey/monkey_island/deb-package/service/monkey-island.conf b/monkey/monkey_island/deb-package/service/monkey-island.conf deleted file mode 100644 index e7dfc4d21..000000000 --- a/monkey/monkey_island/deb-package/service/monkey-island.conf +++ /dev/null @@ -1,18 +0,0 @@ -description "Monkey Island Service" - -start on runlevel [2345] -stop on runlevel [!2345] - -respawn -respawn limit unlimited - -script - chdir /var/monkey - exec monkey_island/bin/python/bin/python monkey_island.py -end script - -post-stop script - if [ -n $UPSTART_EVENTS ]; then - exec sleep 2 - fi -end script \ No newline at end of file diff --git a/monkey/monkey_island/deb-package/service_mongo/monkey-mongo.conf b/monkey/monkey_island/deb-package/service_mongo/monkey-mongo.conf deleted file mode 100644 index cd148d877..000000000 --- a/monkey/monkey_island/deb-package/service_mongo/monkey-mongo.conf +++ /dev/null @@ -1,18 +0,0 @@ -description "Monkey Island Mongo Service" - -start on runlevel [2345] -stop on runlevel [!2345] - -respawn -respawn limit unlimited - -script - chdir /var/monkey/monkey_island/ - exec /var/monkey/monkey_island/bin/mongodb/bin/mongod --dbpath db -end script - -post-stop script - if [ -n $UPSTART_EVENTS ]; then - exec sleep 3 - fi -end script \ No newline at end of file