Bump version and update Changes
[app-remotegnokii.git] / rg-smsd
CommitLineData
832c594d
MG
1#!/usr/bin/perl
2use v5.14;
3use warnings;
4
5use App::RemoteGnokii;
6use File::Which;
7
8my $spool = App::RemoteGnokii::cfg 'spool';
9my $action = which 'rg-action' or die 'Cannot find rg-action in PATH';
10
11exec 'smsd', -m => 'file', -u => $action, -c => $spool, @ARGV;
12__END__
13
14=encoding utf-8
15
16=head1 NAME
17
18rg-smsd - Start smsd with RemoteGnokii arguments
19
20=head1 SYNOPSIS
21
22 rg-smsd
23 rg-smsd -i 5
24
25=head1 DESCRIPTION
26
27This convenience script starts gnokii-smsd with rg-action and the configured spool directory. Extra arguments are passed to smsd.
28
29=head1 ENVIRONMENT
30
31=over
32
33=item RGCONF
34
35The basename of the configuration file. For example, if the configuration file is '/srv/rg/config.yml', RGCONF should be set to '/srv/rg/config'. Defaults to '/etc/rg'.
36
37=back
38
39=head1 AUTHOR
40
41Marius Gavrilescu E<lt>marius@ieval.roE<gt>
42
43=head1 COPYRIGHT AND LICENSE
44
45Copyright (C) 2014 by Marius Gavrilescu
46
47This library is free software: you can redistribute it and/or modify
48it under the terms of the GNU General Public License as published by
49the Free Software Foundation, either version 3 of the License, or (at
50your option) any later version.
51
52
53=cut
This page took 0.012699 seconds and 4 git commands to generate.