diff options
Diffstat (limited to 'mail/popa3d/files/popa3d.sh')
-rwxr-xr-x | mail/popa3d/files/popa3d.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/popa3d/files/popa3d.sh b/mail/popa3d/files/popa3d.sh new file mode 100755 index 00000000000..7de153bc05b --- /dev/null +++ b/mail/popa3d/files/popa3d.sh @@ -0,0 +1,25 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: popa3d.sh,v 1.1 2002/11/07 03:50:08 dillo Exp $ +# +# PROVIDE: popa3d +# REQUIRE: DAEMON LOGIN + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="popa3d" +rcvar=$name +command="@PREFIX@/sbin/${name}" +command_args="-D" # _must_ start as daemon from rc.d; + # add more flags through ${${name}_flags} + +if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then + load_rc_config $name + eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO + run_rc_command "$1" +else + echo -n ' ${name}' + ${command} ${popa3d_flags} ${command_args} +fi |