Add version to the usage line in zmsystemctl.pl

This commit is contained in:
Isaac Connor 2015-01-07 09:07:40 -05:00
parent 3013d87783
commit 5b79139a05
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@ use ZoneMinder::Logger qw(:all);
my $command = $ARGV[0]; my $command = $ARGV[0];
if ( (scalar(@ARGV) == 1) && ($command =~ /^(start|stop|restart)$/ )) { if ( (scalar(@ARGV) == 1) && ($command =~ /^(start|stop|restart|version)$/ )) {
$command = $1; $command = $1;
} else { } else {
die(" USAGE: zmsystemctl.pl <start|stop|restart>\n"); die(" USAGE: zmsystemctl.pl <start|stop|restart|version>\n");
} }
my $path = qx(which systemctl); my $path = qx(which systemctl);