certego / fw1-loggrabber

FW1-Loggrabber is a command-line tool to grab logfiles from remote Checkpoint devices using OPSEC LEA (Log Export API)
GNU General Public License v2.0
52 stars 35 forks source link

Make install deploys systemd service file #53

Open nzrst opened 5 years ago

nzrst commented 5 years ago

This update will do two things: 1) If possible deploy library install path to ldconfig directory (/etc/ld.so.conf.d/) instead of using LD_LIBRARY_PATH. 2) If possible deploy fw1-loggrabber.service file to /etc/systemd/service/.

So long as systemd is the active init system then this service will be installed and loaded, once the configuration files are written the service can simply be started with systemctl start fw1-loggrabber.

The service file is configured so that systemd will automatically restart fw1-loggrabber upon any type of failure and configures the current working directory to be /user/local/fw1-loggrabber.

If deploying a systemd service is not possible then the end of make install will display the same message as would have otherwise been seen.