-
Notifications
You must be signed in to change notification settings - Fork 12
/
argo-web-api.conf
41 lines (35 loc) · 1.52 KB
/
argo-web-api.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2014 GRNET S.A., SRCE, IN2P3 CNRS Computing Centre
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS
# IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied. See the License for the specific language
# governing permissions and limitations under the License.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of either GRNET S.A., SRCE or IN2P3 CNRS Computing
# Centre
#
# The work represented by this source file is partially funded by
# the EGI-InSPIRE project through the European Commission's 7th
# Framework Programme (contract # INFSO-RI-261323)
# upstart script for argo-web-api
description "start and stop argo-web-api"
version "1.6.0"
#make the api-start when the server starts
start on startup
script
# Start up script just executes the api on call.
exec /var/www/argo-web-api/argo-web-api -conf=/etc/argo-web-api.conf | logger -t argo-web-api
# create a custom event in case we want to chain later
emit argo-web-api_running
end script
#to start the api we simply type 'start argo-web-api'