blob: 8c168232edbcf2d7b13bbebc8bb6e43532062d2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
case "${1}" in
startup)
logger -t "uactivity [activity/$(basename ${0})]" "activity starting up"
[ "${2}" = "true" ] \
&& logger -t "uactivity [activity/$(basename ${0})]" "status \"user active\"" \
|| logger -t "uactivity [activity/$(basename ${0})]" "status \"user inactive\""
logger -t "uactivity [activity/$(basename ${0})]" "ConfigDirectory: ${3}"
logger -t "uactivity [activity/$(basename ${0})]" "CacheDirectory: ${4}"
logger -t "uactivity [activity/$(basename ${0})]" "ResourceDirectory: ${5}"
;;
shutdown)
logger -t "uactivity [activity/$(basename ${0})]" "activity shutting down"
[ "${2}" = "true" ] \
&& logger -t "uactivity [activity/$(basename ${0})]" "status \"user active\"" \
|| logger -t "uactivity [activity/$(basename ${0})]" "status \"user inactive\""
logger -t "uactivity [activity/$(basename ${0})]" "ConfigDirectory: ${3}"
logger -t "uactivity [activity/$(basename ${0})]" "CacheDirectory: ${4}"
logger -t "uactivity [activity/$(basename ${0})]" "ResourceDirectory: ${5}"
;;
running)
logger -t "uactivity [activity/$(basename ${0})]" "activity status changed"
[ "${2}" = "true" ] \
&& logger -t "uactivity [activity/$(basename ${0})]" "status \"user active\"" \
|| logger -t "uactivity [activity/$(basename ${0})]" "status \"user inactive\""
logger -t "uactivity [activity/$(basename ${0})]" "ConfigDirectory: ${3}"
logger -t "uactivity [activity/$(basename ${0})]" "CacheDirectory: ${4}"
logger -t "uactivity [activity/$(basename ${0})]" "ResourceDirectory: ${5}"
;;
esac
exit 0
|