#!/usr/bin/env bash

# Wrapper around the command "systemctl restart rsyslog.service" so that
# programs like newsyslog (that can only handle a command with no
# arguments or options) can do an rsyslog service restart.

# Exit on any error.
set -e

systemctl restart rsyslog.service

exit 0

# Documentation.
DOCS=<<__END_OF_DOCS__

=head1 NAME

rsyslog-restart - Wrapper around rsyslog service restart

=head1 SYNOPSIS

B<rsyslog-restart>

=head1 DESCRIPTION

B<rsyslog-restart> Wrapper around an rsyslog service restart so programs
like newsyslog can do a service restart.

=head1 SEE ALSO

newsyslog(8)

=head1 AUTHOR

Adam H Lewenberg <adamhl@stanford.edu>

=cut

__END_OF_DOCS__
