Trace: kanboard_worker

Kanboard worker with Systemd

In our example we used beanstalk plugin to allow the use of beanstalkd work queue.

The installation of our Kanboard instance is placed in /var/www/html/kanboard-dev/

So, create a new service in Systemd:

$ sudo vim /etc/systemd/system/kanboard_worker.service

The file must contain:

[Unit]
Description=Kanboard Worker
After=network.target

[Service]
User=www-data
Group=www-data
WorkingDirectory=/var/www/html/kanboard-dev
ExecStart=/var/www/html/kanboard-dev/cli worker
ExecStop=/bin/kill -s TERM $MAINPID
Restart=no
Type=simple

[Install]
WantedBy=multi-user.target

Enable the service, reload the systemd daemon and start the worker:

$ sudo systemctl enable kanboard_worker
$ sudo systemctl daemon-reload
$ sudo systemctl start kanboard_worker
kanboard_worker.txt · Last modified: 2017/03/13 13:59
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain