path: cyrus-imapd_3.12.1-3/debian/cyrus-common.cyrus-imapd.init # cyrmaster is not running pidofproc $DAEMON >/dev/null || return 2 } path: cyrus-imapd_3.12.1-3/debian/cyrus-common.cyrus-imapd.init if [ -e $SYNC_CLIENT ]; then # is sync_client running? pidofproc $SYNC_CLIENT >/dev/null || return 1 # Check if the sync file is set and use it is defined path: cyrus-imapd_3.12.1-3/debian/cyrus-common.cyrus-imapd.init ;; try-restart) pidofproc "$DAEMON" >/dev/null && exec $0 restart ;; *) path: cyrus-imapd_3.12.1-3/debian/cyrus-common.cyrus-imapd.init # cyrmaster is still running pidofproc $DAEMON >/dev/null && return 2 # Many daemons don't delete their pidfiles when they exit. path: cyrus-imapd_3.12.1-3/debian/changelog * Remove word 'package' from instructions to install dbX.Y-util * Always set RET value (thanks to Steven Kurylo for catching that) * Silence pidofproc in try-restart (Courtesy of Steven Kurylo) -- Ondřej Surý Thu, 09 Jun 2011 10:05:43 +0200