Add version to the usage line in zmsystemctl.pl
This commit is contained in:
parent
3013d87783
commit
5b79139a05
|
@ -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 <start|stop|restart>\n");
|
||||
die(" USAGE: zmsystemctl.pl <start|stop|restart|version>\n");
|
||||
}
|
||||
|
||||
my $path = qx(which systemctl);
|
||||
|
|
Loading…
Reference in New Issue