#!/bin/sh ### BEGIN INIT INFO # Provides: llxcfg-netmount # Required-Start: $remote_fs $syslog $all # Required-Stop: $remote_fs # Default-Start: 2 # Default-Stop: 0 6 # Short-Description: first time netmount ### END INIT INFO FLAG_FILE="/var/lib/llxcfg-netmount/netmount.stamp" case "$1" in start|restart|reload|force-reload) if [ ! -d "/net/share" ]; then [ ! -x /usr/sbin/ntpdate ] || /usr/sbin/ntpdate server || true mkdir -p "$(dirname "$FLAG_FILE")" touch "$FLAG_FILE" SERVICE_LIST="idmapd gssd portmap" for s in $SERVICE_LIST ; do service $s stop || true done for s in $SERVICE_LIST ; do service $s start || true done /etc/llxcfg/init-scripts/netmount start || true fi ;; stop|*) echo "Nothing to do" ;; esac exit 0