-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from bschmalhofer/issue-40-shebang
Issue #40 shebang
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |