#!/sbin/openrc-run description="EasyTier P2P Mesh Network Service" command="/usr/local/bin/easytier-core" command_args="-c /etc/easytier/easytier.conf" command_background="yes" pidfile="/run/easytier.pid" output_log="/var/log/easytier.log" error_log="/var/log/easytier.log" depend() { need localmount after net } start_pre() { if [ ! -c /dev/net/tun ]; then modprobe tun >/dev/null 2>&1 || true fi if [ ! -r /etc/easytier/easytier.conf ]; then eerror "EasyTier configuration file /etc/easytier/easytier.conf not found" return 1 fi }