[Snort-devel] 1.8 build 33 SIGHUP wierdness

Erek Adams erek at ...105...
Fri Jun 29 20:47:15 EDT 2001

kill -HUP broken?

Received SIGHUP. Restarting
        --== Initializing Snort ==--

[!] ERROR: Can not get write access to logging directory
(directory doesn't exist or permissions are set incorrectly
or it is not a directory at all)

Fatal Error, Quitting..

[erek at ...496...]/local/home/snort/var/log#ls -ld snort
drwxr-xr-x   2 snort    snort       1024 Jun 29 17:28 snort


And the truss says:

ioctl(1, TCGETA, 0xEFFFEC7C)                    = 0
        iflag=0022406 oflag=0014005 cflag=0000277 lflag=0105073 line=0
            cc:  003 034 010 025 004 000 000 000
write(1, 0xEF63ACE4, 38)                        = 38
  \n                 - - = =   I n i t i a l i z i n g   S n o r t
     = = - -\n
stat("/local/home/snort//var/log/snort", 0xEFFFFAA0) Err#2 ENOENT
write(2, 0x00056370, 58)                        = 58
  \n [ ! ]   E R R O R :   C a n   n o t   g e t   w r i t e   a c
   c e s s   t o   l o g g i n g   d i r e c t o r y
write(2, 0xEFFFF618, 32)                        = 32
   / l o c a l / h o m e / s n o r t / / v a r / l o g / s n o r t
write(2, 0x000563AC, 96)                        = 96
   .\n ( d i r e c t o r y   d o e s n ' t   e x i s t   o r   p e
   r m i s s i o n s   a r e   s e t   i n c o r r e c t l y\n o r
     i t   i s   n o t   a   d i r e c t o r y   a t   a l l )\n\n
write(2, 0x00056558, 24)                        = 24
   F a t a l   E r r o r ,   Q u i t t i n g . .\n
llseek(0, 0, SEEK_CUR)                          = 226742


Is it that extra slash that's giving it grief?

Erek Adams

More information about the Snort-devel mailing list