in theory finish __process

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-27 22:59:00 +02:00
parent d21cfa66a0
commit ec29717870

View file

@ -21,26 +21,30 @@
# __file is a very basic type, which will probably be reused quite often # __file is a very basic type, which will probably be reused quite often
# #
destination="/$__object_id" process="$__object_id"
# No source? Create empty file runs="$(cat "$__object/explorer/runs")"
if [ ! -f "$__object/parameter/source" ]; then state="$(cat "$__object/parameter/state")"
if [ no = "$(cat "$__object/explorer/exists")" ]; then
echo touch \"$destination\" case "$state" in
running)
# Does not run, start it!
if [ -z "$runs" ]; then
if [ -f "$__object/parameter/start" ]; then
cat "$__object/parameter/start"
else
echo "$process"
fi fi
fi fi
;;
# Mode settings stopped)
if [ -f "$__object/parameter/mode" ]; then # Runs, kill it!
echo chmod \"$(cat "$__object/parameter/mode")\" \"$destination\" if [ "$runs" ]; then
fi if [ -f "$__object/parameter/stop" ]; then
cat "$__object/parameter/stop"
# Group else
if [ -f "$__object/parameter/group" ]; then echo kill "${runs}"
echo chgrp \"$(cat "$__object/parameter/group")\" \"$destination\" fi
fi fi
;;
# Owner esac
if [ -f "$__object/parameter/owner" ]; then
echo chown \"$(cat "$__object/parameter/owner")\" \"$destination\"
fi