No. You have to create a new file in /etc/logrotate.d/ called kannel for
example with the script below
Take in mind that this sample script have a user name kannel in group adm,
so you have to change to a user and group you have in your system
On Friday, May 24, 2013, BMan wrote:
> Making progress, looks like logrotate.d is running on my server, if I
> download and edit the logrotate.conf file to add the following, would that
> do it in your opinion:
>
> # Rotate Kannel Log Files to Save Space on Disk
>
> /var/log/kannel/*.log {
> daily
> missingok
> rotate 365
> compress
> delaycompress
> notifempty
> create 640 kannel adm
> sharedscripts
> postrotate
> killall -HUP bearerbox smsbox wapbox > /dev/null 2> /dev/null ||
> true
> endscript
> }
>
> --- On *Fri, 5/24/13, spameden <[email protected] <javascript:_e({},
> 'cvml', '[email protected]');>>* wrote:
>
>
> From: spameden <[email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>>
> Subject: Re: logs files - which can i delete safely
> To: "BMan" <[email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>>, "[email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>" <[email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>>
> Date: Friday, May 24, 2013, 8:05 AM
>
> No, this script is simply is for logrotate, you need to install logrotate
> before that and put that script into /etc/logrotate.d (might depend on your
> distro, but generally this is a location).
>
> If you need to archive your current logfile, I'd suggest stopping kannel,
> doing
>
> bzip2 *.log
>
> in your kannel's directory, with logrotate running this would be done
> automatically, also you can configure logs purging
>
> please include users @ kannel .org, so others would benefit too.
>
>
>
>
> 2013/5/24 BMan
> <[email protected]<http://mc/[email protected]>
> >
>
> Hey mate, thank you for quick reply. Basically my host is telling me at
> 92% drive usage. Would this script be run from typical command line exactly
> as written below? Sorry I"m not super technical with command lines (manager
> of the site for users). If your on skype might be easier to chat also,
> really appreciate any help you can give in walking me thru as a "newb" :-)
>
> skype is crucible_67
>
> Thanks again,
>
> --- On *Fri, 5/24/13, spameden
> <[email protected]<http://mc/[email protected]>
> >* wrote:
>
>
> From: spameden <[email protected]<http://mc/[email protected]>
> >
> Subject: Re: logs files - which can i delete safely
> To: "Singularnet"
> <[email protected]<http://mc/[email protected]>
> >
> Cc: "BMan"
> <[email protected]<http://mc/[email protected]>>,
> "[email protected] <http://mc/[email protected]>" <
> [email protected] <http://mc/[email protected]>>
> Date: Friday, May 24, 2013, 7:49 AM
>
>
> here is a simple script for logrotate:
>
> /var/log/kannel/*.log {
> daily
> missingok
> rotate 365
> compress
> delaycompress
> notifempty
> create 640 kannel adm
> sharedscripts
> postrotate
> killall -HUP bearerbox smsbox wapbox > /dev/null 2> /dev/null ||
> true
> endscript
> }
>
>
>
> 2013/5/24 Singularnet
> <[email protected]<http://mc/[email protected]>
> >
>
> You can delete the log file without breaking the installation, however i
> recommend the logrotate script that come in the user guide in order to
> optimize space
> On May 24, 2013 9:35 AM, "BMan"
> <[email protected]<http://mc/[email protected]>>
> wrote:
>
> Hello guys, I have Kannel running successfully for over a year. We have
> built up a 1 Gig smpp.log file and I need to create a little extra space on
> the SMSC. What log files am I safe deleting to achieve the goal of more
> disk space, and NOT breaking the install.
>
> Thanks everyone in advance
> Bryan
>
>
>
>