concordia-server/upstart/cmake_stubs/lemmagen.conf.in

24 lines
498 B
Plaintext

# lemmagen
#
# This service runs the LemmaGen lemmatizer
# via mono. The process starts listening on the port 11000
description LemmaGen
# When to start the service
start on started concordia-server
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Essentially lets upstart know the process will detach itself to the background
expect fork
# Start the process
script
exec mono @LEMMAGEN_BINARIES_PATH@/LemmaGenSockets.exe &
end script