From 3b8af6b949bd3490adcc79b863bab2f76e1a2acc Mon Sep 17 00:00:00 2001 From: Paul de Rosanbo Date: Sat, 25 Mar 2017 19:03:22 +0100 Subject: [PATCH] map service file --- dist/build.sh | 4 ++-- dist/gadael.service | 12 ++++++++++++ package.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 dist/gadael.service diff --git a/dist/build.sh b/dist/build.sh index fcc67df5b..81e1f76f6 100755 --- a/dist/build.sh +++ b/dist/build.sh @@ -31,7 +31,7 @@ fpm -s dir -t deb -p ../ -n gadael \ -v $1 \ -d "mongodb > 2.4.14" \ -d "nodejs-legacy > 4.2.0" \ - ./=/var/lib/gadael dist/config.json=/etc/gadael/ + ./=/var/lib/gadael dist/config.json=/etc/gadael/ dist/gadael.service=/etc/systemd/system/ # Build rpm package @@ -40,7 +40,7 @@ fpm -s dir -t rpm -p ../ -n gadael \ -v $1 \ -d "mongodb-org > 2.4.14" \ -d "nodejs > 4.2.0" \ - ./=/var/lib/gadael dist/config.json=/etc/gadael/ + ./=/var/lib/gadael dist/config.json=/etc/gadael/ dist/gadael.service=/etc/systemd/system/ cd .. rm -Rf gadael/ diff --git a/dist/gadael.service b/dist/gadael.service new file mode 100644 index 000000000..9958527c0 --- /dev/null +++ b/dist/gadael.service @@ -0,0 +1,12 @@ +[Unit] +Description=Gadael HTTP server +After=network.target + +[Service] +User=root +WorkingDirectory=/var/lib/gadael +ExecStart=/usr/bin/nodejs index.js +StandardOutput=syslog + +[Install] +WantedBy=multi-user.target diff --git a/package.json b/package.json index db2e88299..afcdf622b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gadael", - "version": "0.0.3", + "version": "0.0.4", "author": "Paul de Rosanbo ", "description": "Vacations management application for smart teams, nodejs server, angularjs frontend", "license": "MIT",