replaced

$0 stop >/dev/null 2>&1 && sleep 1

with

qmailctl stop &> /dev/null && sleep 1

seems to work on reboot and starting qmail if already started.



On 1/18/2021 7:31 AM, Eric Broch wrote:
for some reason it doesn't like this

 $0 stop >/dev/null 2>&1 && sleep 1

I think specifically the $0

CentOS 6 didn't mind it 7 does.

I had removed a while ago and just recently and added it back in not sure why it doesn't work. Just comment it and I'll try to figure out why it doesn't like it.

Just don't run qmailctl start again after it's up.

 #$0 stop >/dev/null 2>&1 && sleep 1

Eric

On 1/18/2021 5:53 AM, Tony White wrote:
Hi all,
  I am a little stuck. Having just built a COS7 qmail server using Eric's
system I had hoped all would work well.
  Unfortunately I am unable to reboot and have qmail start with the script
in the /etc/rc.d/init.d folder.

All I get is this
[root@localhost ~]# /etc/rc.d/init.d/qmail start
Starting qmail (via systemctl):  Job for qmail.service canceled.
[FAILED]


However if I run this...

qmailctl start

all is well.

Have I missed something or messed something up during the install?

TIA :)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to