Service Manager
Start, Stop, Status
The preferred way to manage the LogCraft service is with systemctl
:
bash
systemctl status logcraft
systemctl start logcraft
systemctl stop logcraft
systemctl restart logcraft
TIP
Logs are located under LOGCRAFT_HOME/var/log
. See Troubleshooting for details.
Enable LogCraft at boot
During installation, LogCraft installs its systemd service file and enables it by default.
If this step was skipped, you can manually enable LogCraft to start at boot by following the procedure below.
First, copy the service file to the systemd directory:
bash
cp /opt/logcraft/etc/systemd/logcraft.service /etc/systemd/system/logcraft.service
Then, reload the systemd manager configuration
bash
systemctl daemon-reload
Finally, enable the service to start automatically at boot:
bash
systemctl enable logcraft
Manually
Although systemctl is recommended, there may be cases where running LogCraft manually is useful, for example for troubleshooting.
bash
/opt/logcraft/bin/logcraft start
If the bin directory has been added to the system PATH, just run:
bash
logcraft start