equal
deleted
inserted
replaced
1 #!/usr/bin/python2.6 |
1 #!/usr/bin/python2.6 |
2 |
2 |
3 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
3 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
4 # |
4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may |
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may |
6 # not use this file except in compliance with the License. You may obtain |
6 # not use this file except in compliance with the License. You may obtain |
7 # a copy of the License at |
7 # a copy of the License at |
8 # |
8 # |
18 |
18 |
19 import smf_include |
19 import smf_include |
20 |
20 |
21 |
21 |
22 def start(): |
22 def start(): |
23 smf_include.smf_subprocess("/usr/lib/cinder/cinder-backup") |
23 smf_include.smf_subprocess("/usr/bin/pfexec /usr/lib/cinder/cinder-backup") |
24 |
24 |
25 if __name__ == "__main__": |
25 if __name__ == "__main__": |
26 os.putenv("LC_ALL", "C") |
26 os.putenv("LC_ALL", "C") |
27 smf_include.smf_main() |
27 smf_include.smf_main() |