| |
@@ -1,77 +0,0 @@
|
| |
- # you usually do not want to edit this file - instead, edit the
|
| |
- # @initconfigdir@/@package_name@.systemd file instead - otherwise,
|
| |
- # do not edit this file in /lib/systemd/system - instead, do the following:
|
| |
- # cp /lib/systemd/system/dirsrv\@.service /etc/systemd/system/dirsrv\@.service
|
| |
- # mkdir -p /etc/systemd/system/@systemdgroupname@.wants
|
| |
- # edit /etc/systemd/system/dirsrv\@.service - uncomment the LimitNOFILE=8192 line
|
| |
- # where %i is the name of the instance
|
| |
- # you may already have a symlink in
|
| |
- # /etc/systemd/system/@systemdgroupname@.wants/dirsrv@%i.service pointing to
|
| |
- # /lib/systemd/system/dirsrv\@.service - you will have to change it to link
|
| |
- # to /etc/systemd/system/dirsrv\@.service instead
|
| |
- # ln -s /etc/systemd/system/dirsrv\@.service /etc/systemd/system/@systemdgroupname@.wants/dirsrv@%i.service
|
| |
- # systemctl daemon-reload
|
| |
- # systemctl (re)start @systemdgroupname@
|
| |
- [Unit]
|
| |
- Description=@capbrand@ Directory Server with @SANITIZER@ %i.
|
| |
- PartOf=@systemdgroupname@
|
| |
- After=chronyd.service ntpd.service network-online.target syslog.target
|
| |
- Before=radiusd.service
|
| |
-
|
| |
- [Service]
|
| |
- Type=notify
|
| |
- NotifyAccess=all
|
| |
- TimeoutStartSec=0
|
| |
- TimeoutStopSec=600
|
| |
- EnvironmentFile=@initconfigdir@/@package_name@
|
| |
- EnvironmentFile=@initconfigdir@/@package_name@-%i
|
| |
- PIDFile=@localstatedir@/run/@package_name@/slapd-%i.pid
|
| |
- # We can't symbolize here, as llvm symbolize crashes when it goes near systemd.
|
| |
- Environment=ASAN_OPTIONS=log_path=@localstatedir@/run/@package_name@/ns-slapd-%i.asan:print_stacktrace=1
|
| |
- Environment=TSAN_OPTIONS=log_path=@localstatedir@/run/@package_name@/ns-slapd-%i.tsan:print_stacktrace=1:second_deadlock_stack=1:history_size=7
|
| |
- Environment=MSAN_OPTIONS=log_path=@localstatedir@/run/@package_name@/ns-slapd-%i.msan:print_stacktrace=1
|
| |
- Environment=UBSAN_OPTIONS=log_path=@localstatedir@/run/@package_name@/ns-slapd-%i.ubsan:print_stacktrace=1
|
| |
- LimitCORE=infinity
|
| |
- ExecStartPre=@libexecdir@/ds_systemd_ask_password_acl @instconfigdir@/slapd-%i/dse.ldif
|
| |
- ExecStart=@sbindir@/ns-slapd -D @instconfigdir@/slapd-%i -i @localstatedir@/run/@package_name@/slapd-%i.pid
|
| |
-
|
| |
- #### To change any of these values or directives, you should use a drop in file
|
| |
- # such as: /etc/systemd/system/dirsrv@<instance>.d/custom.conf
|
| |
-
|
| |
- # These are from man systemd.exec and man systemd.resource-control
|
| |
-
|
| |
- # This controls the resources to the direct child of systemd, in
|
| |
- # this case ns-slapd. Because we are type notify we recieve these
|
| |
- # limits correctly.
|
| |
-
|
| |
- # This controls the number of file handles avaliable. File handles
|
| |
- # correlate to sockets for the process, and our access to logs and
|
| |
- # databases.
|
| |
- LimitNOFILE=16384
|
| |
-
|
| |
- # You can limit the memory in the cgroup with these, and ns-slapd
|
| |
- # will account for them in it's autotuning.
|
| |
- # Memory account may be controlled by DefaultMemoryAccounting= in systemd-system.conf
|
| |
- # MemoryAccounting=true
|
| |
- # MemoryLimit=bytes
|
| |
-
|
| |
- # Limits on the size of coredump that may be produced by the process. It's not
|
| |
- # specified how this interacts with coredumpd.
|
| |
- # 0 means not to produce cores.
|
| |
- # This value is 64G
|
| |
- LimitCORE=68719476736
|
| |
-
|
| |
- # Limit number of processes (threads) we may spawn. We don't advise you change
|
| |
- # this as DS will autodetect your threads / cpus and adjust as needed.
|
| |
- # LimitNPROC=
|
| |
-
|
| |
- # Hardening options:
|
| |
- # PrivateDevices=true
|
| |
- # ProtectSystem=true
|
| |
- # ProtectHome=true
|
| |
- # PrivateTmp=true
|
| |
-
|
| |
-
|
| |
- [Install]
|
| |
- WantedBy=multi-user.target
|
| |
-
|
| |
Is it possible to show an "example" drop in, or link to the systemd.template.service.custom.conf.in somehow to guide admins to the "how" to achivee this?