Fix fool typo that prevents daemon from start

This commit is contained in:
eleksir
2020-09-21 02:09:21 +03:00
parent ab27431e83
commit 1822054f03

View File

@@ -72,6 +72,9 @@ if ($< == 0) {
# double fork attach to /dev/null all stdio and go background # double fork attach to /dev/null all stdio and go background
daemonize (); daemonize ();
# write pidfile
my $apath = abs_path ($0);
unless (defined($apath)) { unless (defined($apath)) {
logger ("Unable to get abs_path: $!"); logger ("Unable to get abs_path: $!");
die "Unable to get abs_path: $!\n"; die "Unable to get abs_path: $!\n";