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";