<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 02/20/2013 04:41 AM, Eugen Wissner wrote:<br>
<span style="white-space: pre;">> Hi,<br>
><br>
> rc.6 which is executed during shutdown/reboot sets<br>
> PATH=/sbin:/etc:/bin:/usr/bin. If I want to stop postfix
automatically in<br>
> rc.6 or rc.local_shutdown I get an error "postfix can't be
found" because<br>
> postfix is in /usr/sbin. Wouldn't it be better to write the
full path in<br>
> rc.postfix:<br>
><br>
> postfix_start()<br>
> {<br>
> /usr/sbin/postfix start<br>
> }<br>
><br>
> postfix_stop()<br>
> {<br>
> /usr/sbin/postfix stop<br>
> }<br>
> ?<br>
><br>
> Best regards<br>
> Eugene<br>
><br>
><br>
><br>
> _______________________________________________<br>
> SlackBuilds-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a><br>
>
<a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
> Archives -
<a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
> FAQ - <a class="moz-txt-link-freetext" href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a><br>
></span><br>
I had the same issue and so instead of changing rc.6, I changed
rc.postfix to include full path to postfix binary. Postfix also
supports 'status' command from version 2.9.x, I believe. Here's the
diff of rc.postfix I use on my system that is the enhanced version
of the one on SBo.<br>
<br>
Thanks,<br>
<br>
- -- <br>
Nishant Limbachia<br>
<a class="moz-txt-link-abbreviated" href="mailto:nishant@mnspace.net">nishant@mnspace.net</a><br>
GPG Key: 0x0FF9D6D5<br>
GPG Fingerprint: CC77 2954 DBDD CA46 49D5 BC90 786E 5DA2 0FF9 D6D5<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a class="moz-txt-link-freetext" href="http://www.enigmail.net/">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlEk1uAACgkQeG5dog/51tWJbgCfYv/2f1PSJCVr9WOCx0L2Gd09<br>
6NwAnjBRVFYBUSChyfcJI+Ty5tpuukzU<br>
=SlMb<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>