creating a systemd script to handle the DLP services in newer versions of DLP.
rhel 8.x and above
vi /usr/local/bin/symantec-dlp-control.sh
#!/bin/bash
ACTION=$1
SERVICES=(
SymantecDLPDetectionServerControllerService
SymantecDLPIncidentPersisterService
# Add additional DLP services here
)
case "$ACTION" in
start)
echo "Starting Symantec DLP services..."
for svc in "${SERVICES[@]}"; do
systemctl start "$svc"
done
;;
stop)
echo "Stopping Symantec DLP services..."
for svc in $(printf "%s\n" "${SERVICES[@]}" | tac); do
systemctl stop "$svc"
done
;;
restart)
echo "Restarting Symantec DLP services..."
for svc in $(printf "%s\n" "${SERVICES[@]}" | tac); do
systemctl stop "$svc"
done
sleep 10
for svc in "${SERVICES[@]}"; do
systemctl start "$svc"
done
;;
status)
for svc in "${SERVICES[@]}"; do
systemctl status "$svc" --no-pager
done
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit 0Note: if you are doing the enforce services change the SERVICES=(
SymantecDLPDetectionServerControllerService
SymantecDLPIncidentPersisterService
SymantecDLPManagerService
SymantecDLPNotifierService
)
chmod +x /usr/local/bin/symantec-dlp-control.shCreate Systemd service:
vi /etc/systemd/system/restart-dlp.service
[Unit]
Description=Restart Symantec DLP Services
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/restart-dlp.sh
RemainAfterExit=no
[Install]
WantedBy=multi-user.targetReload systemd:
systemctl daemon-reload
systemctl enable symantec-dlp.serviceUsage:
Start
systemctl start symantec-dlpStop
systemctl stop symantec-dlpRestart
systemctl reload symantec-dlp
# or
/usr/local/bin/symantec-dlp-control.sh restartCheck Status:
systemctl status symantec-dlp
With different releases of DLP the service names has changed. Refer to the servicesnames and update the script as needed.