# Put this into /lib/systemd/system # Then create symlinks, e.g.: # /lib/systemd/system/nswl@adc1.service -> nswl@.service # /lib/systemd/system/nswl@adc2.service -> nswl@.service # Make sure that the config files /etc/netscaler/adc1.conf and adc2.conf exist # Also, create directories where logs will be saved: # /var/log/netscaler/adc1 # /var/log/netscaler/adc2 # Optionally, if adc2 is on another version than adc1, you have to install and # use the matching nswl version. For the latter, create a directory named # /lib/systemd/system/nswl@adc2.service.d and create a *.conf file in that # directory, e.g. execstart.conf containing this override: # [Service] # ExecStart=/usr/local/nswl/nswl-13.0-52.24 -start -f /etc/netscaler/%i.conf # For reference: # https://docs.netscaler.com/en-us/citrix-adc/current-release/system/web-server-logging # https://www.freedesktop.org/software/systemd/man/systemd.syntax.html # [Unit] Description=NetScaler Web Logging Service Documentation=https://docs.netscaler.com/en-us/citrix-adc/current-release/system/web-server-logging Requires=local-fs.target ConditionFileNotEmpty=/etc/netscaler/%i.conf Conflicts=shutdown.target [Install] WantedBy=multi-user.target [Service] WorkingDirectory=/var/log/netscaler/%i ExecStart=/usr/local/nswl/nswl-12.0-53.13 -start -f /etc/netscaler/%i.conf Restart=on-success # CPUQuota=50%