projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*sigh*
[freeside.git]
/
fs_passwd
/
fs_passwdd
diff --git
a/fs_passwd/fs_passwdd
b/fs_passwd/fs_passwdd
index
3a2bd1d
..
38079da
100755
(executable)
--- a/
fs_passwd/fs_passwdd
+++ b/
fs_passwd/fs_passwdd
@@
-10,7
+10,7
@@
use strict;
use Socket;
my $fs_passwdd_socket = "/usr/local/freeside/fs_passwdd_socket";
use Socket;
my $fs_passwdd_socket = "/usr/local/freeside/fs_passwdd_socket";
-my $pid_file = "$fs_passwdd_socket.pid"
+my $pid_file = "$fs_passwdd_socket.pid"
;
$ENV{'PATH'} ='/usr/local/bin:/usr/bin:/usr/ucb:/bin';
$ENV{'SHELL'} = '/bin/sh';
$ENV{'PATH'} ='/usr/local/bin:/usr/bin:/usr/ucb:/bin';
$ENV{'SHELL'} = '/bin/sh';
@@
-31,9
+31,9
@@
listen(Server,SOMAXCONN) or die "listen: $!";
if ( -e $pid_file ) {
open(PIDFILE,"<$pid_file");
if ( -e $pid_file ) {
open(PIDFILE,"<$pid_file");
- chomp( my $old_pid = <
$pid_file
> );
+ chomp( my $old_pid = <
PIDFILE
> );
close PIDFILE;
close PIDFILE;
- kill 'TERM', $
pid_file
;
+ kill 'TERM', $
old_pid
;
}
open(PIDFILE,">$pid_file");
print PIDFILE "$$\n";
}
open(PIDFILE,">$pid_file");
print PIDFILE "$$\n";