This repository contains some tooling for users wanting to run coda daemons as systemd services.
make user
sudo make install
sudo systemctl start coda-daemon
There are two config files in the directory which you might want to adjust:
coda-config
contains most settingscoda-config-snark-worker
contains any overrides for the snark-workers (eg. thread count)
There are two simple templates provided for generating systemd unit service files.
make user
builds the service files using the current username. (you may prefer to run the coda processes as another user)
The two generated service files are:
coda-daemon.service
[email protected]
sudo make install
will install the service files in to /lib/systemd/system
and the config files in to /etc/default
. (your OS may expect systemd files in other locations)
Now you have normal systemd managed processes. (they will be restarted if they crash, etc.)
Start up a coda-daemon.
sudo systemctl start coda-daemon
Start up the number of snark workers you want to run. (This will depend on how many CPU cores you want to dedicate.)
eg. to enable and start 9
sudo systemctl enable coda-snark-worker@{1..9}
sudo systemctl start coda-snark-worker@{1..9}
systemctl enable coda-daemon
- enable servicesystemctl start coda-daemon
- start servicesystemctl status coda-daemon
- check statussystemctl stop coda-daemon
- check statusjournalctl -u coda-daemon
- see logs from a service