7
LOGDIR="/var/log/gearman-job-server"
9
# shamelessly copied from debian mysql-server package...
11
# - Remove the gearman user only after all his owned files are purged.
13
if [ "$1" = "purge" ]; then
14
# we remove the mysql user only after all his owned files are purged
16
rm -rf /var/run/gearman
17
rm -rf /var/lib/gearman
19
# --remove-all-files takes ages, so delete manually
20
deluser --system $USER || true
21
delgroup --system --only-if-empty $GROUP || true