Skip to content

Commit

Permalink
Merge pull request #50 from bschmalhofer/issue-40-shebang
Browse files Browse the repository at this point in the history
Issue #40 shebang
  • Loading branch information
Sven committed May 28, 2020
2 parents a1c7935 + 304f458 commit abfb731
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions bin/docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
#!/usr/bin/env bash

# no command line arguments are handled

# Start up OTOBO Daemon and the webserver
# Run a watchdog over the Daemon via Cron

# no command line arguments are handled

# start the Daemon and set up the Cron watchdog
# assume that we are in /opt/otobo
# TODO: this might not work when the database is not yet created and configured
mkdir var/tmp
mkdir -p var/tmp

# set up the cronjobs as they are declared in var/cron
./bin/Cron.sh start
perl ./bin/otobo.Daemon.pl start

# Start the Daemon.
# The Daemon will exit immediately when SecureMode = 0.
# But this is OK, as Cron will restart it and it will run when SecureMode = 1.
./bin/otobo.Daemon.pl start

# maintainance jobs
# TODO: this might not work when the database is not yet created and configured
# TODO: decide whether it makes sense to run these jobs on startup
#perl ./bin/otobo.Console.pl Maint::Config::Rebuild
#perl ./bin/otobo.Console.pl Maint::Cache::Delete

# Start the webserver
plackup --server Gazelle -R Kernel,bin/psgi-bin/otobo.psgi --port 5000 bin/psgi-bin/otobo.psgi

0 comments on commit abfb731

Please sign in to comment.