--- layout: project title: queued short: queued commentIssueId: 4 description: Daemon for starting jobs to queue of calculations hasgui: false developers: - Evgeniy Alelseev license: GPLv3 links: ---
Daemon for starting jobs to queue of calculations. It was written as proof-of-concept.
$ queued --help Simple daemon written on BASH for starting jobs to queue of calculations Usage: queued [ -c /etc/queued.conf ] [ -v | --version ] [ -h | --help ] Parametrs: -c PATH - path to configuration file. Default is '/etc/queued.conf' -v --version - show version and exit -h --help - show this help and exit
$ add_queued --help add_queued [ -c /etc/queued.conf ] [ -p NUM ] [ -u USER ] [ -h | --help ] /path/to/script Parameters: -c PATH - path to configuration file. Default is '/etc/queued.conf' -p NUM - job priority -u USER - username -h --help - show this help and exit
Download an archive with latest version of source files.
Extract it and install the application:
./install.sh "/path/to/root/package"
If you want install it to /
you must run it as root, e.g.:
sudo ./install.sh "/path/to/root/package"
If no path is specified it will be installed to /
by default.
I want note that all were tested on latest version of dependencies.
If you want to start the daemon just run
systemctl start queued
If you want to enable daemon autoload run
systemctl enable queued
But you may change path to configuration file or change parameters. To do it just copy (recommended) the source configuration file to new path
cp /etc/queued.conf /path/to/new/queued.conf
and edit it. Then copy the source service file to /etc
:
cp /usr/lib/systemd/system/queued.service /etc/systemd/system/queued-my-profile.service
Replace following string in the file:
ExecStart=/usr/bin/queued
to
ExecStart=/usr/bin/queued -c /path/to/new/queued.conf
script.sh
)script.sh.pr
) with the job priority if it is neededscript.sh.user
) with the job username if it is needed$WORKDIR
Also you may use add_queued
.
All settings are stored in /etc/queued.conf
. After edit them you must restart daemon
systemctl restart queued
WORKDIR | Full path to directory with source jobs. Default is |
---|---|
JOBDIR | Full path to directory with running jobs. Default is |
QUEUEFILE | Full path to file with queue list. Default is |
PRIORITY | Default priority. Default is |
SLEEPTIME | Time interval in minutes. Default is |
STARTASUSER | Default user. Default is |