===== 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