Configuring PC-lint Plus View Service

Linux

This section describes how you can create a service to start and stop PC-lint Plus View using the Systemd library for system and service management on Linux.

The example below assumes that:

  • Your PC-lint Plus View installation is located in /opt/pclpview/pclpview-server.

  • You have created a user called pclpview to run the service (optional).

To create the service, do the following:

  1. Create a PC-lint Plus View service description file in /etc/systemd/system/pclpview.service.

    [Unit]
    Description=PC-lint Plus View server Service
    After=network.target
    
    [Service]
    Type=forking
    User=pclpview
    ExecStart=/opt/pclpview/pclpview-server/bin/sqctl start
    ExecStop=/opt/pclpview/pclpview-server/bin/sqctl stop
    
    [Install]
    WantedBy=multi-user.target
  2. Enable the service, so that it is launched at boot (optional).

    systemctl enable pclpview.service

You can start and stop PC-lint Plus View service on your system by running the following commands:

sudo systemctl start pclpview.service
sudo systemctl stop pclpview.service