kenzok8-package/netatalk/files/afpd.init
2024-11-27 11:29:22 +08:00

24 lines
436 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2012 OpenWrt.org
START=80
STOP=10
USE_PROCD=1
start_service() {
mkdir -p /var/netatalk/CNID/
procd_open_instance
procd_set_param command /usr/sbin/afpd -d -F /etc/afp.conf
procd_set_param file /etc/afp.conf
procd_set_param respawn
procd_close_instance
procd_open_instance
procd_set_param command /usr/sbin/cnid_metad -d
procd_set_param respawn
procd_close_instance
}