-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transfers: add config file for log/db/pid file paths
- Get log/db/pid file information from a config file specified in the command line - Add six as dependency (for configparser) - Provide example config files in etc/ directory - Script needs to be called as a module due to relative import - Update README
- Loading branch information
Showing
7 changed files
with
158 additions
and
78 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# transfer script example | ||
# /etc/archivematica/automation-tools/transfer-script.sh | ||
cd /usr/lib/archivematica/automation-tools/ | ||
/usr/share/python/automation-tools/bin/python -m transfers.transfer --user <user> --api-key <apikey> --transfer-source <transfer_source_uuid> --config-file <config_file> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# automation-tools:transfers configuration file example | ||
# /etc/archivematica/automation-tools/transfers-2.conf | ||
|
||
[transfers] | ||
logfile = /var/log/archivematica/automation-tools/transfers-2.log | ||
databasefile = /var/archivematica/automation-tools/transfers-2.db | ||
pidfile = /var/archivematica/automation-tools/transfers-2-pid.lck |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# automation-tools:transfers configuration file example | ||
# /etc/archivematica/automation-tools/transfers.conf | ||
|
||
[transfers] | ||
logfile = /var/log/archivematica/automation-tools/transfers.log | ||
databasefile = /var/archivematica/automation-tools/transfers.db | ||
pidfile = /var/archivematica/automation-tools/transfers-pid.lck |
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,2 +1,3 @@ | ||
requests<3.0 | ||
sqlalchemy | ||
six |
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
Oops, something went wrong.