Revision a63be3ad
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
scripts/task_server.pl | ||
---|---|---|
21 | 21 |
use Data::Dumper; |
22 | 22 |
use DateTime; |
23 | 23 |
use English qw(-no_match_vars); |
24 |
use List::Util qw(first); |
|
24 | 25 |
use POSIX qw(setuid setgid); |
25 | 26 |
use SL::Auth; |
26 | 27 |
use SL::DB::BackgroundJob; |
... | ... | |
143 | 144 |
|
144 | 145 |
mkdir($pidbase) if !-d $pidbase; |
145 | 146 |
|
146 |
my $file = -f "${cwd}/config/lx_office.conf" ? "${cwd}/config/lx_office.conf" : "${cwd}/config/lx_office.conf.default";
|
|
147 |
my $file = first { -f } ("${cwd}/config/kivitendo.conf", "${cwd}/config/lx_office.conf", "${cwd}/config/kivitendo.conf.default");
|
|
147 | 148 |
newdaemon(configfile => $file, |
148 | 149 |
progname => 'kivitendo-task-server', |
149 | 150 |
pidbase => "${pidbase}/", |
Auch abrufbar als: Unified diff
Task-Server und -Control-Modul auf neue Konfigurationsdateinamen angepasst