Skip to content

Commit

Permalink
map service file
Browse files Browse the repository at this point in the history
  • Loading branch information
polo2ro committed Mar 25, 2017
1 parent d963aec commit 3b8af6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/build.sh
Expand Up @@ -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

Expand All @@ -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/
Expand Down
12 changes: 12 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "gadael",
"version": "0.0.3",
"version": "0.0.4",
"author": "Paul de Rosanbo <paul@rosanbo.com>",
"description": "Vacations management application for smart teams, nodejs server, angularjs frontend",
"license": "MIT",
Expand Down

0 comments on commit 3b8af6b

Please sign in to comment.