Last change
on this file since 210 was
171,
checked in by bas, 15 years ago
|
configure. configure.in, Makefile.in:
src/pxeconfigd.in:
- new daemon code, like client side
src/pxeconfigd.py:
- use the common function defined in pxe_global.py
- reformat the code
- added daemon hook script
setup.py:
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id URL
|
File size:
1.2 KB
|
Rev | Line | |
---|
[171] | 1 | #!@PYTHON@ |
---|
| 2 | # |
---|
| 3 | # set ts=4, sw=4 |
---|
| 4 | # |
---|
| 5 | # SVN INFO: |
---|
| 6 | # $Id: pxeconfigd.in 171 2009-08-19 08:53:16Z bas $ |
---|
| 7 | # $URL: trunk/src/pxeconfigd.in $ |
---|
| 8 | # |
---|
| 9 | # Author: Bas van der Vlies <basv@sara.nl> |
---|
| 10 | # Date : 16 February 2002 |
---|
| 11 | # |
---|
| 12 | # SVN info |
---|
| 13 | # $Id: pxeconfigd.in 171 2009-08-19 08:53:16Z bas $ |
---|
| 14 | # |
---|
| 15 | # Copyright (C) 2002 |
---|
| 16 | # |
---|
| 17 | # This file is part of the pxeconfig utils |
---|
| 18 | # |
---|
| 19 | # This program is free software; you can redistribute it and/or modify it |
---|
| 20 | # under the terms of the GNU General Public License as published by the |
---|
| 21 | # Free Software Foundation; either version 2, or (at your option) any |
---|
| 22 | # later version. |
---|
| 23 | # |
---|
| 24 | # This program is distributed in the hope that it will be useful, |
---|
| 25 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 26 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 27 | # GNU General Public License for more details. |
---|
| 28 | # |
---|
| 29 | # You should have received a copy of the GNU General Public License |
---|
| 30 | # along with this program; if not, write to the Free Software |
---|
| 31 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
---|
| 32 | # |
---|
| 33 | import sys |
---|
| 34 | |
---|
| 35 | try: |
---|
| 36 | import pxeconfigd |
---|
| 37 | except ImportError, detail: |
---|
| 38 | sys.path.append('@prefix@/lib/python@PYTHON_VERSION@/site-packages/pxeconfig') |
---|
| 39 | import pxeconfigd |
---|
| 40 | |
---|
| 41 | from pxe_global import * |
---|
| 42 | |
---|
| 43 | if __name__ == '__main__': |
---|
| 44 | try: |
---|
| 45 | pxeconfigd.server() |
---|
| 46 | except PxeConfig, detail: |
---|
| 47 | print detail |
---|
| 48 | sys.exit(1) |
---|
Note: See
TracBrowser
for help on using the repository browser.