/lib/systemd/system/dirsrv-snmp.service is in 389-ds-base 1.3.7.10-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # do not edit this file in /lib/systemd/system - instead do the following:
# cp /lib/systemd/system/dirsrv-snmp.service /etc/systemd/system/
# edit /etc/systemd/system/dirsrv-snmp.service
# systemctl daemon-reload
# systemctl (re)start dirsrv-snmp.service
[Unit]
Description=389 Directory Server SNMP Subagent.
After=network.target
[Service]
Type=forking
PIDFile=/var/run/ldap-agent.pid
ExecStart=/usr/sbin/ldap-agent /etc/dirsrv/config/ldap-agent.conf
[Install]
WantedBy=multi-user.target
|