From 1822054f03d11912fb25496592987a4a82d90532 Mon Sep 17 00:00:00 2001 From: eleksir Date: Mon, 21 Sep 2020 02:09:21 +0300 Subject: [PATCH] Fix fool typo that prevents daemon from start --- bin/aleesa-telegram-bot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/aleesa-telegram-bot b/bin/aleesa-telegram-bot index b50e70f..be3e6e2 100755 --- a/bin/aleesa-telegram-bot +++ b/bin/aleesa-telegram-bot @@ -72,6 +72,9 @@ if ($< == 0) { # double fork attach to /dev/null all stdio and go background daemonize (); +# write pidfile +my $apath = abs_path ($0); + unless (defined($apath)) { logger ("Unable to get abs_path: $!"); die "Unable to get abs_path: $!\n";