diff --git a/lib/DJabberd.pm b/lib/DJabberd.pm index 2b137e8..7db28b4 100644 --- a/lib/DJabberd.pm +++ b/lib/DJabberd.pm @@ -279,6 +279,7 @@ sub run { open(PIDFILE,'>',$self->{pid_file}) or $logger->logdie("Can't open pidfile $self->{pid_file} for writing"); print PIDFILE "$$\n"; close(PIDFILE); + chmod(0644, $self->{pid_file}); } $self->start_c2s_server();