basic debianization
This commit is contained in:
parent
24c54efcda
commit
1193543757
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,5 +1,5 @@
|
|||||||
stacktach (1.0) unstable; urgency=low
|
stacktach (1.0) precise-havana; urgency=low
|
||||||
|
|
||||||
* Initial
|
* Initial
|
||||||
|
|
||||||
-- Vladimir Eremin <yottatsa@yandex-team.ru> Wed, 19 Mar 2014 12:52:15 +0400
|
-- Vladimir Eremin <yottatsa@yandex-team.ru> Wed, 19 Mar 2014 15:03:53 +0400
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -9,6 +9,6 @@ Package: stacktach
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
XB-Python-Version: ${python:Versions}
|
XB-Python-Version: ${python:Versions}
|
||||||
Depends: ${python:Depends},
|
Depends: ${python:Depends},
|
||||||
nginx, python-mysqldb,
|
python-mysqldb,
|
||||||
python-django (>= 1.4.2), python-django-south, python-kombu
|
python-django (>= 1.4.2), python-django-south, python-kombu
|
||||||
Description: OpenStack Tachometer
|
Description: OpenStack Tachometer
|
||||||
|
3
debian/rules
vendored
3
debian/rules
vendored
@ -11,5 +11,6 @@ install/stacktach::
|
|||||||
rm -f $(CURDIR)/debian/stacktach/usr/share/stacktach/local_settings.py
|
rm -f $(CURDIR)/debian/stacktach/usr/share/stacktach/local_settings.py
|
||||||
mkdir -p $(CURDIR)/debian/stacktach/usr/share/stacktach/stacktach
|
mkdir -p $(CURDIR)/debian/stacktach/usr/share/stacktach/stacktach
|
||||||
ln -s /etc/stacktach/local_settings.py $(CURDIR)/debian/stacktach/usr/share/stacktach/local_settings.py
|
ln -s /etc/stacktach/local_settings.py $(CURDIR)/debian/stacktach/usr/share/stacktach/local_settings.py
|
||||||
|
rm -f $(CURDIR)/debian/stacktach/etc/init.d/stacktach-worker
|
||||||
mkdir -p $(CURDIR)/debian/stacktach/etc/init.d
|
mkdir -p $(CURDIR)/debian/stacktach/etc/init.d
|
||||||
mv $(CURDIR)/debian/stacktach/usr/share/stacktach/worker/stacktach.sh $(CURDIR)/debian/stacktach/etc/init.d/stacktach-worker
|
ln -s /usr/share/stacktach/worker/stacktach.sh $(CURDIR)/debian/stacktach/etc/init.d/stacktach-worker
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
respawn
|
respawn
|
||||||
|
|
||||||
exec sudo -u stacktach bash -c 'source /etc/default/stacktach; $STACKTACH_INSTALL_DIR/manage.py runserver --insecure'
|
exec sudo -u stacktach bash -c 'source /etc/default/stacktach; exec $STACKTACH_INSTALL_DIR/manage.py runserver --insecure'
|
||||||
|
@ -26,7 +26,12 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
echo "Starting stacktach workers"
|
echo "Starting stacktach workers"
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
/sbin/start-stop-daemon --start --pidfile $PIDFILE --make-pidfile -b --exec $DAEMON $ARGS
|
if id -un stacktach >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
/sbin/start-stop-daemon --start --pidfile $PIDFILE --chuid stacktach --make-pidfile -b --exec $DAEMON $ARGS
|
||||||
|
else
|
||||||
|
/sbin/start-stop-daemon --start --pidfile $PIDFILE --make-pidfile -b --exec $DAEMON $ARGS
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Stopping stacktach workers"
|
echo "Stopping stacktach workers"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user