~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/replication/slon_ctl.py

  • Committer: Stuart Bishop
  • Date: 2008-10-07 07:36:28 UTC
  • mto: This revision was merged to the branch mainline in revision 7148.
  • Revision ID: stuart.bishop@canonical.com-20081007073628-mb6l6l7vwbm27f0a
Delint replication scripts and fix trivial bug in report.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                "--start",
69
69
                "--background",
70
70
                "--pidfile", pidfile,
 
71
                "--oknodo",
71
72
                "--exec", "/usr/bin/slon",
72
73
                "--startas", "/bin/sh",
73
74
                "--", "-c",
84
85
            cmd = [
85
86
                "start-stop-daemon",
86
87
                "--stop",
87
 
                "--pidfile", pidfile]
 
88
                "--pidfile", pidfile,
 
89
                "--oknodo"]
88
90
        log.debug("Running %s" % repr(cmd))
89
91
        return_code = subprocess.call(cmd)
90
92
        if return_code != 0:
91
93
            log.fatal("Failed. Return code %s" % return_code)
92
94
            return return_code
93
95
 
 
96
    return 0
 
97
 
94
98
 
95
99
if __name__ == '__main__':
96
100
    sys.exit(main())