It's usually in the 'start)' section of the script, Here's my update with the 'sleep 1' added :

  start)
    # have a silent kill in case someone tries to start the service when it
    # is already running
    qmailctl stop >/dev/null 2>&1 && sleep 1
    echo -n "Starting qmail-toaster: svscan"
    cd /var/qmail/supervise
    env - PATH="$PATH" svscan &
    echo $! > /var/run/qmail-svscan.pid
    touch /var/lock/subsys/qmail
    echo "."
    ;;

I'm not sure why but this started failing on CentOS 7

Eric

On 10/23/2021 7:34 AM, Eric Broch wrote:

Can you post your init script?

# cat /etc/rc.d/init.d/qmail


On 10/23/2021 5:18 AM, [email protected] wrote:

Hi, it's probably a trivial question, but somehow I can't help myself. For some time now qmailtoaster has failed to start automatically after a reboot. I have to type qmailctl start myself after every reboot. How can I set it up? Checkconfig starts separate services and how does qmailctl?

Any help will be appreciated

Regards

Marek

Reply via email to