Mercurial > kallithea
comparison manage-hg_app @ 19:38235b614e3f
starting app script update
moved pure wsgi app to libs,(since it's not needed)
author | Marcin Kuzminski |
---|---|
date | Sat, 27 Feb 2010 17:40:37 +0100 |
parents | hg_app@b6b3533ad63c |
children | 424167fefd6c |
comparison
equal
deleted
inserted
replaced
18:1d3eba8c1012 | 19:38235b614e3f |
---|---|
1 #!/bin/sh -e | |
2 ### BEGIN INIT INFO | |
3 # Provides: pylons-manage | |
4 # Required-Start: $all | |
5 # Required-Stop: $all | |
6 # Default-Start: 2 3 4 5 | |
7 # Default-Stop: 0 1 6 | |
8 # Short-Description: starts pylons app | |
9 # Description: starts pylons app | |
10 ### END INIT INFO | |
11 | |
12 project_name=hg_app | |
13 conf_name=production.ini | |
14 project_path=/home/marcink/python_workspace/$project_name | |
15 pid_path=$project_path | |
16 log_path=$project_path | |
17 virt_python=/home/marcink/virt_python | |
18 run_user=root | |
19 run_group=root | |
20 | |
21 cd $project_path | |
22 case "$1" in | |
23 start) | |
24 $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_name.log $project_path/$conf_name start | |
25 ;; | |
26 stop) | |
27 $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_namete.log $project_path/$conf_name stop | |
28 ;; | |
29 restart) | |
30 $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_name.log $project_path/$conf_name restart | |
31 ;; | |
32 *) | |
33 echo "Usage: $0 {start|stop|restart}" | |
34 exit 1 | |
35 esac |