Re: Mythtv logging
John Pilkington <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.atrpms.general |
|---|---|
| Message-ID | <[email protected]> |
On 29/11/12 13:45, Duncan Brown wrote: > Hello All > > I'm not a huge fan of the current mythtv logging method which results in > huge amounts of separate log files, so I've changed to using syslog. > > This involves changing the command in init.d/mythbackend to "--syslog > local7" instead of "--logpath /var/log/mythtv/" > > This works great, but every time I upgrade the init.d file is > overwritten. Is there anyway of stopping that file being overwritten by > the upgrade each time? > > cheers > > Dunc > I probably ought to let someone with a /good/ suggestion come in here, but I keep copies of foo_distrib.bar and foo_my.bar After an upgrade, if diff foo.bar foo_distrib.bar is null, cp foo_my.bar foo.bar If the diff isn't null, some investigation is needed. I doubt that it's rigorously correct but it seems to work. John P