Hi all,
In the script I have to stop sybase, I use two instructions for log rotate.
su sybase -c 'mv -f $SYBASE/$SYBASE_ASE/install/sybase.log
/backup2/logs/sybase-`date +%y%m%d-%H%M%S`.log'
su sybase -c 'touch $SYBASE/$SYBASE_ASE/install/sybase.log'
But when I start ASE, the server don�t write in this file (sybase.log) it
uses to write $SYBASE/errorlog
Why?????
What can I do to write in $SYBASE/$SYBASE_ASE/install/sybase.log
The RUN_file is:
#!/bin/sh
#
# Adaptive Server name: sybase
# Master device path: /dev/md/dataset/rdsk/d3
# Error log path: /sybase/ASE-12_0/install/sybase.log
# Directory for shared memory files: /sybase
#
/sybase/ASE-12_0/bin/dataserver \
-ssybase \
-d/dev/md/dataset/rdsk/d3 \
-c/sybase/sybase.cfg
-e/sybase/ASE-12_0/install/sybase.log \
Thanks in advance
0 JCS11/22/2001 3:11:43 PM
Are you sure that the runserver file below is the one that you are
executing? I ask, because I had an issue once where the PATH env variable
was set up incorrectly and the wrong startserver was being used. It found
an old runsserver file from a previous installation and wrote to the
errorlog specified in that runserver file, which of course was the 'wrong
one'.
Double check and make sure that you are not getting the wrong
startserver/runserver.
E
"JCS" wrote in message
news:1QcJxk2cBHA.353@forums.sybase.com...
> Hi all,
>
> In the script I have to stop sybase, I use two instructions for log
rotate.
>
>
> su sybase -c 'mv -f $SYBASE/$SYBASE_ASE/install/sybase.log
> /backup2/logs/sybase-`date +%y%m%d-%H%M%S`.log'
>
> su sybase -c 'touch $SYBASE/$SYBASE_ASE/install/sybase.log'
>
>
> But when I start ASE, the server don�t write in this file (sybase.log) it
> uses to write $SYBASE/errorlog
>
> Why?????
>
> What can I do to write in $SYBASE/$SYBASE_ASE/install/sybase.log
>
>
> The RUN_file is:
>
> #!/bin/sh
> #
> # Adaptive Server name: sybase
> # Master device path: /dev/md/dataset/rdsk/d3
> # Error log path: /sybase/ASE-12_0/install/sybase.log
> # Directory for shared memory files: /sybase
> #
> /sybase/ASE-12_0/bin/dataserver \
> -ssybase \
> -d/dev/md/dataset/rdsk/d3 \
> -c/sybase/sybase.cfg
> -e/sybase/ASE-12_0/install/sybase.log \
>
> Thanks in advance
>
>
>
>