65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
# /****************************************************************************
|
|
# * <Novell-copyright>
|
|
# * Copyright (c) 2001 Novell, Inc. All Rights Reserved.
|
|
# *
|
|
# * This program is free software; you can redistribute it and/or
|
|
# * modify it under the terms of version 2 of the GNU General Public License
|
|
# * as published by the Free Software Foundation.
|
|
# *
|
|
# * This program is distributed in the hope that it will be useful,
|
|
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# * GNU General Public License for more details.
|
|
# *
|
|
# * You should have received a copy of the GNU General Public License
|
|
# * along with this program; if not, contact Novell, Inc.
|
|
# *
|
|
# * To contact Novell about this file by physical or electronic mail, you
|
|
# * may find current contact information at www.novell.com.
|
|
# * </Novell-copyright>
|
|
# ****************************************************************************/
|
|
|
|
[Unit]
|
|
Description=Bongo mail and calendar server
|
|
Documentation=https://gitea.disconnected-by-peer.at/geos_one/bongo
|
|
Wants=network-online.target
|
|
After=network-online.target nss-lookup.target local-fs.target systemd-tmpfiles-setup.service clamd.service clamav-daemon.service spamassassin.service spamd.service
|
|
RequiresMountsFor=@XPL_DEFAULT_STATE_DIR@ @XPL_DEFAULT_MAILDROP_DIR@ @XPL_DEFAULT_CONF_DIR@
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=@SBIN_INSTALL_DIR@/bongo-admin config check
|
|
ExecStart=@SBIN_INSTALL_DIR@/bongo-manager -k
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
TimeoutStartSec=60s
|
|
TimeoutStopSec=45s
|
|
KillMode=control-group
|
|
KillSignal=SIGTERM
|
|
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_SETGID CAP_SETUID CAP_NET_BIND_SERVICE
|
|
UMask=0077
|
|
LimitNOFILE=65536
|
|
TasksMax=4096
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ProtectClock=true
|
|
ProtectControlGroups=true
|
|
ProtectHostname=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
LockPersonality=true
|
|
RemoveIPC=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
ReadWritePaths=@XPL_DEFAULT_STATE_DIR@ @XPL_DEFAULT_MAILDROP_DIR@ @XPL_DEFAULT_RUNTIME_DIR@ @XPL_DEFAULT_SSL_DIR@ @XPL_DEFAULT_CONFIG_DIR@
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|