#!/usr/bin/env /lib/init/init-d-script
### BEGIN INIT INFO
# Provides:          popa3d
# Required-Start:    $remote_fs $network
# Required-Stop:     $remote_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: popa3d server
### END INIT INFO

DAEMON=/usr/sbin/popa3d
DAEMON_ARGS="-F -4 -6"
SETPRIV_ARGS="--bounding-set -all,+setgid,+setuid,+sys_chroot,+audit_write,+net_bind_service"
START_ARGS="--background --make-pidfile"
DESC="POP server"

do_start_prepare() {
  install -m 755 -o root -g root -d /var/lib/popa3d
}
