#!/bin/sh

if [ ! -d /var/lib/munge ]; then
    mkdir -m0711 -p /var/lib/munge
fi
chown munge:munge /var/lib/munge
if [ ! -d /var/run/munge ]; then
    mkdir -m0755 -p /var/run/munge
fi
chown munge:munge /var/run/munge
exec chpst -u munge:munge munged -F 2>&1
