xref: /trafficserver/rc/trafficserver.conf.in (revision 41fe21b2)
1# trafficserver - Apache Traffic Server
2#
3# is a fast, scalable and extensible HTTP/1.1 compliant
4# caching proxy server.
5#
6# This config file is used for stopping and starting trafficserver
7# on upstart based systems. This is accomplished by dropping it in
8# /etc/init
9#
10#  Licensed to the Apache Software Foundation (ASF) under one
11#  or more contributor license agreements.  See the NOTICE file
12#  distributed with this work for additional information
13#  regarding copyright ownership.  The ASF licenses this file
14#  to you under the Apache License, Version 2.0 (the
15#  "License"); you may not use this file except in compliance
16#  with the License.  You may obtain a copy of the License at
17#
18#      http://www.apache.org/licenses/LICENSE-2.0
19#
20#  Unless required by applicable law or agreed to in writing, software
21#  distributed under the License is distributed on an "AS IS" BASIS,
22#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23#  See the License for the specific language governing permissions and
24#  limitations under the License.
25
26description	"Apache Traffic Server"
27
28start on virtual-filesystems
29stop on runlevel [06]
30
31respawn
32
33pre-start script
34	if [ ! -d @exp_runtimedir@ ]
35	then
36		mkdir -p @exp_runtimedir@
37		chown @pkgsysuser@:@pkgsysgroup@ @exp_runtimedir@
38	fi
39end script
40
41exec @exp_bindir@/traffic_manager
42