nixos/taskserver: Remove options for log/pidFile

We're aiming for a proper integration into systemd/journald, so we
really don't want zillions of separate log files flying around in our
system.

Same as with the pidFile. The latter is only needed for taskdctl, which
is a SysV-style initscript and all of its functionality plus a lot more
is handled by systemd already.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-09-27 19:25:06 +02:00
parent 5060ee456c
commit 8081c791e9
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -73,23 +73,6 @@ in {
type = types.bool;
};
log = mkOption {
default = "/tmp/taskd.log";
description = ''
Fully-qualified path name to the Taskserver log file.
'';
type = types.string;
};
pidFile = mkOption {
default = "/tmp/taskd.pid";
description = ''
Fully-qualified path name to the Taskserver PID file. This is used
by the 'taskdctl' script to start/stop the daemon.
'';
type = types.string;
};
queueSize = mkOption {
default = 10;
description = ''
@ -221,8 +204,6 @@ in {
$file "${cfg.dataDir}/$file.pem"
done
${pkgs.taskserver}/bin/taskd config --force log "${cfg.log}"
${pkgs.taskserver}/bin/taskd config --force pid.file "${cfg.pidFile}"
${pkgs.taskserver}/bin/taskd config --force server ${cfg.server.host}:${toString cfg.server.port}
touch "${cfg.dataDir}/.is_initialized"