From a97c963a2af8e973a498ceed605e852967ae9dad Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Wed, 28 Mar 2012 14:36:34 +0200 Subject: [PATCH] Add graceful option --- distrib/initscripts/rc.redhat.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/distrib/initscripts/rc.redhat.tmpl b/distrib/initscripts/rc.redhat.tmpl index b2a8cd5a..643448ae 100644 --- a/distrib/initscripts/rc.redhat.tmpl +++ b/distrib/initscripts/rc.redhat.tmpl @@ -51,6 +51,15 @@ netatalk_stop() { fi } +# code to cause apfd and cnid_metad to restart +netatalk_graceful() { + if [ -x ${NETATALK_SBIN}/netatalk ]; then + echo -n $"Restarting cnid_metad and afpd: " + killproc netatalk -QUIT + RETVAL=$? + echo + fi +} case "$1" in 'start') @@ -68,8 +77,11 @@ case "$1" in status netatalk RETVAL=$? ;; + 'graceful') + netatalk_graceful + ;; *) - echo "Usage: $0 {start|stop|restart|reload|status}" + echo "Usage: $0 {start|stop|restart|reload|status|graceful}" exit 2 esac -- 2.39.2