summaryrefslogtreecommitdiffstats
path: root/extensions/Push/bin/bugzilla-pushd.pl
blob: f048df1575e63ab911c71a3e5ecedde73622b778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/perl

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.

use strict;
use warnings;

use FindBin '$RealBin';
use lib "$RealBin/../../..";
use lib "$RealBin/../../../lib";
use lib "$RealBin/../lib";

BEGIN {
    use Bugzilla;
    Bugzilla->extensions;
}

use Bugzilla::Extension::Push::Daemon;
Bugzilla::Extension::Push::Daemon->start();

=head1 NAME

bugzilla-push.pl - Pushes changes queued by the Push extension to connectors.

=head1 SYNOPSIS

  bugzilla-push.pl [OPTIONS] COMMAND

    OPTIONS:
      -f        Run in the foreground (don't detach)
      -d        Output a lot of debugging information
      -p file   Specify the file where bugzilla-push.pl should store its current
                process id. Defaults to F<data/bugzilla-push.pl.pid>.
      -n name   What should this process call itself in the system log?
                Defaults to the full path you used to invoke the script.

    COMMANDS:
      start     Starts a new bugzilla-push daemon if there isn't one running already
      stop      Stops a running bugzilla-push daemon
      restart   Stops a running bugzilla-push if one is running, and then
                starts a new one.
      check     Report the current status of the daemon.
      install   On some *nix systems, this automatically installs and
                configures bugzilla-push.pl as a system service so that it will
                start every time the machine boots.
      uninstall Removes the system service for bugzilla-push.pl.
      help      Display this usage info