allpy
changeset 936:32f4a9db60c6
blocks3d-wt Debian: moved creation of /var/run/wt to initscript (as required by new Debian policy)
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Wed, 14 Dec 2011 19:44:07 +0300 |
parents | 19ffcf1ac4a0 |
children | f734c086d416 |
files | debian/blocks3d-wt.dirs debian/blocks3d-wt.init |
diffstat | 2 files changed, 24 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/debian/blocks3d-wt.dirs Mon Nov 28 18:33:25 2011 +0300 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,1 +0,0 @@ 1.4 -/var/run/wt
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/debian/blocks3d-wt.init Wed Dec 14 19:44:07 2011 +0300 2.3 @@ -0,0 +1,24 @@ 2.4 +#!/bin/sh 2.5 + 2.6 +### BEGIN INIT INFO 2.7 +# Provides: blocks3d-wt 2.8 +# Required-Start: $local_fs $remote_fs 2.9 +# Required-Stop: $local_fs $remote_fs 2.10 +# Default-Start: 2 3 4 5 2.11 +# Default-Stop: 0 1 6 2.12 +# Short-Description: initialize blocks3d-wt 2.13 +### END INIT INFO 2.14 + 2.15 +PIDDIR=/var/run/wt 2.16 +case "$1" in 2.17 + start) 2.18 + if [ ! -d "$PIDDIR" ]; then 2.19 + install -d -m 755 -o root -g root "$PIDDIR" 2.20 + fi 2.21 + ;; 2.22 + stop|reload|restart|force-reload|status) 2.23 + ;; 2.24 + *) 2.25 + echo "Usage: /etc/init.d/blocks3d-wt {start|stop}" 2.26 + ;; 2.27 +esac