diff --git a/scripts/zmsystemctl.pl.in b/scripts/zmsystemctl.pl.in index cb3eb74ee..450fc2189 100644 --- a/scripts/zmsystemctl.pl.in +++ b/scripts/zmsystemctl.pl.in @@ -35,10 +35,10 @@ use ZoneMinder::Logger qw(:all); my $command = $ARGV[0]; -if ( (scalar(@ARGV) == 1) && ($command =~ /^(start|stop|restart)$/ )) { +if ( (scalar(@ARGV) == 1) && ($command =~ /^(start|stop|restart|version)$/ )) { $command = $1; } else { - die(" USAGE: zmsystemctl.pl \n"); + die(" USAGE: zmsystemctl.pl \n"); } my $path = qx(which systemctl);