Doing this as a oneshot means that on switch-ing configuration, the service never "comes up" (as it gets stuck in the --wait). It's far better to just have a standard service that is restarted by a timer when it exits rather than a oneshot here...
-2
packetmix/systems/teal/wiki.nix
-2
packetmix/systems/teal/wiki.nix
···
251
251
${config.services.phpfpm.pools.mediawiki.phpPackage}/bin/php ${config.services.mediawiki.finalPackage}/share/mediawiki/maintenance/run.php runJobs --memory-limit 1G --wait
252
252
'';
253
253
serviceConfig = {
254
-
RemainAfterExit = false;
255
-
Type = "oneshot";
256
254
User = "mediawiki";
257
255
Group = "nginx";
258
256
PrivateTmp = true;
History
2 rounds
0 comments
freshlybakedca.ke
submitted
#1
1 commit
expand
collapse
fix(pm/wiki): correct service configuration
Doing this as a oneshot means that on switch-ing configuration, the
service never "comes up" (as it gets stuck in the --wait). It's far
better to just have a standard service that is restarted by a timer when
it exits rather than a oneshot here...
expand 0 comments
pull request successfully merged
freshlybakedca.ke
submitted
#0
1 commit
expand
collapse
fix(pm/wiki): correct service configuration
Doing this as a oneshot means that on switch-ing configuration, the
service never "comes up" (as it gets stuck in the --wait). It's far
better to just have a standard service that is restarted by a timer when
it exits rather than a oneshot here...