Revision
5890 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 9 18:28:40 2023 UTC
(2 years ago)
by
dan
Diff to
previous 5886
When we're finished checking the queue, check again.
This avoids the race condition where more stuff is added to the queue and we
miss it because we are processing the queue already.
Revision
5883 -
Directory Listing
-
[select for diffs]
Modified
Sat Dec 24 19:53:14 2022 UTC
(2 years, 3 months ago)
by
dan
Diff to
previous 5818
Start using the spooling directory. This has been in use on dev since at
least Sep 17 2022. Time to spread it around.
Revision
5561 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 3 22:43:28 2021 UTC
(4 years, 2 months ago)
by
dan
Diff to
previous 5560
Convert from `echo ${INCOMING}/*` to $(echo ${INCOMING}/*)
Put the ls output all into one command so the files are properly aligned
Correct a logging statement from load_xml_into_db_git.pl to load_xml_into_db.pl
Revision
5530 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 6 20:31:01 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5529
Change the mv .txt file to a cp/rm to avoid:
mv: /var/db/freshports/message-queues/recent/2020.07.11.07.46.58.18048.txt: set owner/group (was: 10002/10001): Operation not permitted
Revision
5529 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 6 20:15:07 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5528
'with message queue directory permissions now 0775, move .txt file to ~freshports/message-queues/recent after creating .xml file'
Revision
5526 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 6 19:39:06 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5525
Start using these file names:
email: 2020.07.11.07.46.34.15635.txt
xml: 2020.07.11.07.46.34.15635.xml
errors: 2020.07.11.07.46.34.15635.errors
Other scripts will need updating for .loading, which will become .log
Revision
5522 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 6 17:00:58 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5521
Good to go for testing.
I got sidetracking creating fp-daemon on the git branch but then
re-discovered my work here.
Revision
5516 -
Directory Listing
-
[select for diffs]
Modified
Sat Dec 5 20:58:45 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5515
Create the git version of fp-daemon
Starting with the the FreshPorts for git daemon and use that.
The former takes XMl and laods it. The latter will take email and create XML
for the former.
Revision
5514 -
Directory Listing
-
[select for diffs]
Modified
Sat Dec 5 18:50:06 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5510
Start using the newly created load_xml_into_db.pl, not
load_xml_into_db_git.pl, because it will work with both git and subversion.
Also, rm -f
Revision
5413 -
Directory Listing
-
[select for diffs]
Modified
Sun Jul 19 15:20:15 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5412
Rename config.sh.sample to config/fp-freshports.sh
Yes, the script and the configuration file have the same name.
The config file should be installed to /usr/local/etc/freshports/fp-freshports.sh
Revision
5411 -
Directory Listing
-
[select for diffs]
Modified
Sun Jul 19 15:10:30 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5410
Stop using logger, use echo.
daemon(8) will direct that output to syslog and from there into the correct
log file.
Revision
5409 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 23:49:49 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5408
'Move configuration file:
-. /usr/local/etc/freshports/daemon-config.sh
+. /usr/local/etc/freshports/fp-ingress.sh
'
Revision
5408 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 23:49:24 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5407
'Move configuration file:
-. /usr/local/etc/freshports/daemon-config.sh
+. /usr/local/etc/freshports/fp-ingress.sh
'
Revision
5407 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 23:44:42 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5406
'Move configuration file:
-. /usr/local/etc/freshports/daemon-config.sh
+. /usr/local/etc/freshports/fp-ingress.sh
'
Revision
5405 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 23:37:33 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5404
'Move configuration file:
-. /usr/local/etc/freshports/daemon-config.sh
+. /usr/local/etc/freshports/fp-freshports.sh
'
Revision
5404 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 23:36:39 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5403
Move configuration file:
-. /usr/local/etc/freshports/daemon-config.sh
+. /usr/local/etc/freshports/fp-freshports.sh
Revision
5393 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 21:36:09 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5392
Change configuration file
from: config.sh
to: /usr/local/etc/freshports/daemon-config.sh
Start using FRESHPORTS_* variables
this daemon doesn't need a incoming directory any more
Revision
5391 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 19:53:45 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5389
I'm moving to two daemons:
fp-freshports - same function as fp-daemon had
fp-ingress - processing incoming commits into XML
this is partly the mailfilter script
and part of what fp-daemon.sh once did.
Revision
5386 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 14:20:02 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5385
Copy this over for use as an ingress daemon:
* receives notice of new commits via signals
* creates XML
* moves XMl into ~ingress/message-queues/incoming directory
Potential signals
* commits waiting
* which repo?
* commit hash?
* run single commt
* which repo?
* commit hash?
* hooks - I imagine hooks will be intercepted externally and signals raised
* email - If commit emails are implemented, that could also raise a signal
Revision
5384 -
Directory Listing
-
[select for diffs]
Modified
Sat Jul 18 14:14:18 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5376
removed INGRESSDIR
add MSGDIR
This may be reversed soon. I'll be creating a ingress.sh daemon and it will
also need a config.sh file.
Revision
5317 -
Directory Listing
-
[select for diffs]
Modified
Wed Apr 29 17:49:40 2020 UTC
(4 years, 11 months ago)
by
dan
Diff to
previous 5316
Change the signal name to match the others
I note that the listen_for table is not named great. The script_name isn't
necessarily the script which gets invoked, but it does help.
Revision
5316 -
Directory Listing
-
[select for diffs]
Modified
Wed Apr 29 17:43:16 2020 UTC
(4 years, 11 months ago)
by
dan
Diff to
previous 5314
Add ability to clear packages cache via zfs rollback
Add in the category cache which I'm sure is needed in prod
Convert all lingering print to syslog.
Remove commented out code
Revision
5225 -
Directory Listing
-
[select for diffs]
Modified
Mon Jul 15 18:56:56 2019 UTC
(5 years, 8 months ago)
by
dan
Diff to
previous 5106
Instead of using mv which caused:
/usr/local/bin/readproctitle service errors: ...message-queues/recent/2019.07.15.15.42.07.48391.txt.raw: set owner/group (was: 10002/10001): Operation not permitted\nmv: /var/db/freshports/message-queues/recent/2019.07.15.15.43.31.53460.txt.raw: set owner/group (was: 10002/10001): Operation not permitted\nmv: /var/db/freshports/message-queues/recent/2019.07.15.15.45.39.56551.txt.raw: set owner/group (was: 10002/10001): Operation not permitted\n
use cp and rm
even when using this example:
[dan@dev-ingress01:~] $ ls -l ~ingress/message-queues/ ~freshports/message-queues/
/var/db/freshports/message-queues/:
total 248
drwxr-xr-x 18 freshports freshports 18 Jul 2 03:16 archive
drwxr-xr-x 10 freshports freshports 18 Jun 10 22:03 retry
/var/db/ingress/message-queues/:
total 3
drwxr-xr-x 2 root ingress 10 Mar 20 13:53 DUPS
drwxrwxr-x 2 ingress freshports 2 Jul 15 15:29 incoming
Revision
4172 -
Directory Listing
-
[select for diffs]
Modified
Fri Oct 12 16:32:34 2007 UTC
(17 years, 5 months ago)
by
dan
Diff to
previous 4116
when processing a new category, fetch /www/en/ports/categories
Yes, we should use configuration items for these URLS...
Revision
3768 -
Directory Listing
-
[select for diffs]
Modified
Mon Sep 11 01:49:16 2006 UTC
(18 years, 6 months ago)
by
dan
Diff to
previous 3766
Add RCS ID.
Correctly specify the cache path
Better syslogging.
Move to deleting cache entries one by one, and deleting from
the cache needed table one by one. Commit after each. Sounds fair to me.