by g8jvm » Fri May 03, 2013 8:20 pm
Hi
I went thru that version of the man page carefully, but there is still something very strange going on even when the
environment variable is set.
I've set the MAILRC env i rc.local and also out it in manually.
REbooted, and the behaviour exactly the same the mailrc file is not being read.
I made a change in the motion.conf file that needed a restart , and I used killall motion && motion instead of
systemctl restart motion.service.
When motion restarted and invoked mailx it read the mailrc file and the from mail header was as it should be.
restarted motion with systemctl restart and it still continued to read the mailrc file., mail from header correct.
I've rebooted several times and each time motion is started by systemctl, and each time the mailrc file is not read.
Any idea why when motion is started as a daemon from CLI the mailrc file is read, and subsequent restarting with systemctl
the mailrc file is read.
There are now three identical copies
/root/MAILRC /root/.mailrc and /etc/mailrc
I would like its behaviour to be reading mailrc after a reboot, so should it get power cycled it starts in its correct condition.
very strange behaviour.
I dont know how to find out who owned a run process, ps only lists current processes, and I've looked in /var/log/everything.log.
Maybe if I could find out the logged identity of the process starting mailx , it may be possible to find a solution
TIAQ
Richard
Best wishes
Richard
richard@g8jvm.com~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave,
http://www.g8jvm.com