Skip to content

Commit

Permalink
servlet.py → apy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
unhammer committed Aug 15, 2024
1 parent 9ce2b5c commit 715a000
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ RUN cd apertium-apy && make -j4
# Run APy

EXPOSE 2737
ENTRYPOINT ["python3", "/root/apertium-apy/servlet.py", "--lang-names", "/root/apertium-apy/langNames.db"]
ENTRYPOINT ["python3", "/root/apertium-apy/apy.py", "--lang-names", "/root/apertium-apy/langNames.db"]
CMD ["/usr/share/apertium/modes", "--port", "2737"]
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include COPYING
include langNames.db
include servlet.py
include apy.py
include language_names/*
recursive-include tools *
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setUpModule(): # noqa: N802
for _ in range(3):
time.sleep(1)
print('.')
server_handle = subprocess.Popen(coverage_cli_args + [os.path.join(base_path, 'servlet.py')] + cli_args) # TODO: print only on error?
server_handle = subprocess.Popen(coverage_cli_args + [os.path.join(base_path, 'apy.py')] + cli_args) # TODO: print only on error?

started = False
waited = 0
Expand Down
2 changes: 1 addition & 1 deletion tools/systemd/apy.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ After=network.target
# Change this to your username and edit to how you start apy:
User=apertium
WorkingDirectory=/usr/share/apertium-apy
ExecStart=/usr/bin/python3 servlet.py /usr/share/apertium/modes
ExecStart=/usr/bin/python3 apy.py /usr/share/apertium/modes

# Increase the ulimit -n from the default 1024 – you may get the error
# "Too many open files" with a lot of pipelines open.
Expand Down
2 changes: 1 addition & 1 deletion tools/sysvinit/apy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export PKG_CONFIG_PATH=/traductors/lib/pkgconfig
export PATH=/traductors/bin:/usr/bin:/bin:$PATH
export LD_LIBRARY_PATH=/traductors/lib:$LD_LIBRARY_PATH

SERVLET="servlet.py"
SERVLET="apy.py"
EXEC="/traductors/apertium-apy/"
ARGS="-l tools/apertiumlangs.db ../pairs -d -P /var/log"
USER="www-data"
Expand Down
2 changes: 1 addition & 1 deletion tools/upstart/apertium-apy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env CONFIG=/etc/default/apertium

script
. $CONFIG
python3 $APYPATH/servlet.py $APERTIUMPATH
python3 $APYPATH/apy.py $APERTIUMPATH
end script

pre-start script
Expand Down

0 comments on commit 715a000

Please sign in to comment.