LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File postgrey.service of Package postgrey (Project server:mail)

# This file is part of package postgrey.
#
# Copyright (c) 2012 Stefan Botter.
# Author: Stefan Botter
# Please send feedback to obs@botter.cc
#
# Description:
#
#  Used to start postgrey greylisting service
#

[Unit]
Description=Postgrey Greylisting Service
Requires=var-run.mount
Wants=nss-lookup.target network.target remote-fs.target time-sync.target
After=var-run.mount nss-lookup.target network.target remote-fs.target time-sync.target
Before=mail-transfer-agent.target

[Service]
Type=forking
ExecStartPre=-/bin/echo 'Starting greylisting service (Postgrey)'
EnvironmentFile=-/etc/sysconfig/postgrey
ExecStart=/usr/sbin/postgrey -d $POSTGREY_CONN_OPTIONS $POSTGREY_DBDIR $POSTGREY_EXTRA_OPTIONS
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target