Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
UCC Snack Machine Server Code
Commits
fc542240
Commit
fc542240
authored
Mar 07, 2015
by
Mark Tearle
Browse files
Add entrypoint to setup.py for vendserver
parent
2a6c4f6e
Changes
3
Show whitespace changes
Inline
Side-by-side
VendServer/VendServer.py
View file @
fc542240
...
...
@@ -1186,7 +1186,8 @@ def do_vend_server(options, config_opts):
logging
.
info
(
"Trying again in 5 seconds."
)
sleep
(
5
)
if
__name__
==
'__main__'
:
def
main
(
argv
=
None
):
options
,
config_opts
=
set_stuff_up
()
while
True
:
try
:
...
...
@@ -1216,3 +1217,5 @@ if __name__ == '__main__':
sleep
(
10
)
logging
.
warning
(
"Trying again anyway (might not help, but hey...)"
)
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
bin/init.d/vendserver
View file @
fc542240
...
...
@@ -14,7 +14,7 @@
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games
DESC
=
"VendServer"
NAME
=
vendserver
DAEMON
=
"/usr/local/uccvend-vendserver/
VendServer/V
end
S
erver
.py
"
DAEMON
=
"/usr/local/uccvend-vendserver/
v
end
s
erver"
PIDFILE
=
/var/run/
$NAME
.pid
SCRIPTNAME
=
/etc/init.d/
$NAME
DAEMON_ARGS
=
""
...
...
setup.py
View file @
fc542240
...
...
@@ -40,6 +40,11 @@ setup(
]
)
],
entry_points
=
{
"console_scripts"
:
[
"vendserver = VendServer.VendServer:main"
]
},
include_package_data
=
True
,
install_requires
=
requirements
,
license
=
"BSD"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment